cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

serial.h (2009B)


      1/*
      2 * Copyright (C) 2009 Texas Instruments
      3 * Added OMAP4 support- Santosh Shilimkar <santosh.shilimkar@ti.com>
      4 *
      5 * This program is distributed in the hope that it will be useful,
      6 * but WITHOUT ANY WARRANTY; without even the implied warranty of
      7 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
      8 * GNU General Public License for more details.
      9 */
     10
     11/* OMAP2 serial ports */
     12#define OMAP2_UART1_BASE	0x4806a000
     13#define OMAP2_UART2_BASE	0x4806c000
     14#define OMAP2_UART3_BASE	0x4806e000
     15
     16/* OMAP3 serial ports */
     17#define OMAP3_UART1_BASE	OMAP2_UART1_BASE
     18#define OMAP3_UART2_BASE	OMAP2_UART2_BASE
     19#define OMAP3_UART3_BASE	0x49020000
     20#define OMAP3_UART4_BASE	0x49042000	/* Only on 36xx */
     21#define OMAP3_UART4_AM35XX_BASE	0x4809E000	/* Only on AM35xx */
     22
     23/* OMAP4 serial ports */
     24#define OMAP4_UART1_BASE	OMAP2_UART1_BASE
     25#define OMAP4_UART2_BASE	OMAP2_UART2_BASE
     26#define OMAP4_UART3_BASE	0x48020000
     27#define OMAP4_UART4_BASE	0x4806e000
     28
     29/* TI81XX serial ports */
     30#define TI81XX_UART1_BASE	0x48020000
     31#define TI81XX_UART2_BASE	0x48022000
     32#define TI81XX_UART3_BASE	0x48024000
     33
     34/* AM3505/3517 UART4 */
     35#define AM35XX_UART4_BASE	0x4809E000	/* Only on AM3505/3517 */
     36
     37/* AM33XX serial port */
     38#define AM33XX_UART1_BASE	0x44E09000
     39
     40/* OMAP5 serial ports */
     41#define OMAP5_UART1_BASE	OMAP2_UART1_BASE
     42#define OMAP5_UART2_BASE	OMAP2_UART2_BASE
     43#define OMAP5_UART3_BASE	OMAP4_UART3_BASE
     44#define OMAP5_UART4_BASE	OMAP4_UART4_BASE
     45#define OMAP5_UART5_BASE	0x48066000
     46#define OMAP5_UART6_BASE	0x48068000
     47
     48/* External port on Zoom2/3 */
     49#define ZOOM_UART_BASE		0x10000000
     50#define ZOOM_UART_VIRT		0xfa400000
     51
     52#define OMAP_PORT_SHIFT		2
     53#define ZOOM_PORT_SHIFT		1
     54
     55#define OMAP24XX_BASE_BAUD	(48000000/16)
     56
     57#ifndef __ASSEMBLER__
     58
     59struct omap_board_data;
     60struct omap_uart_port_info;
     61
     62extern void omap_serial_init(void);
     63extern void omap_serial_board_init(struct omap_uart_port_info *platform_data);
     64extern void omap_serial_init_port(struct omap_board_data *bdata,
     65		struct omap_uart_port_info *platform_data);
     66#endif