serial.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. /* OMAP2 serial ports */
  11. #define OMAP2_UART1_BASE 0x4806a000
  12. #define OMAP2_UART2_BASE 0x4806c000
  13. #define OMAP2_UART3_BASE 0x4806e000
  14. /* OMAP3 serial ports */
  15. #define OMAP3_UART1_BASE OMAP2_UART1_BASE
  16. #define OMAP3_UART2_BASE OMAP2_UART2_BASE
  17. #define OMAP3_UART3_BASE 0x49020000
  18. #define OMAP3_UART4_BASE 0x49042000 /* Only on 36xx */
  19. #define OMAP3_UART4_AM35XX_BASE 0x4809E000 /* Only on AM35xx */
  20. /* OMAP4 serial ports */
  21. #define OMAP4_UART1_BASE OMAP2_UART1_BASE
  22. #define OMAP4_UART2_BASE OMAP2_UART2_BASE
  23. #define OMAP4_UART3_BASE 0x48020000
  24. #define OMAP4_UART4_BASE 0x4806e000
  25. /* TI81XX serial ports */
  26. #define TI81XX_UART1_BASE 0x48020000
  27. #define TI81XX_UART2_BASE 0x48022000
  28. #define TI81XX_UART3_BASE 0x48024000
  29. /* AM3505/3517 UART4 */
  30. #define AM35XX_UART4_BASE 0x4809E000 /* Only on AM3505/3517 */
  31. /* AM33XX serial port */
  32. #define AM33XX_UART1_BASE 0x44E09000
  33. /* OMAP5 serial ports */
  34. #define OMAP5_UART1_BASE OMAP2_UART1_BASE
  35. #define OMAP5_UART2_BASE OMAP2_UART2_BASE
  36. #define OMAP5_UART3_BASE OMAP4_UART3_BASE
  37. #define OMAP5_UART4_BASE OMAP4_UART4_BASE
  38. #define OMAP5_UART5_BASE 0x48066000
  39. #define OMAP5_UART6_BASE 0x48068000
  40. /* External port on Zoom2/3 */
  41. #define ZOOM_UART_BASE 0x10000000
  42. #define ZOOM_UART_VIRT 0xfa400000
  43. #define OMAP_PORT_SHIFT 2
  44. #define ZOOM_PORT_SHIFT 1
  45. #define OMAP24XX_BASE_BAUD (48000000/16)
  46. #ifndef __ASSEMBLER__
  47. struct omap_board_data;
  48. struct omap_uart_port_info;
  49. extern void omap_serial_init(void);
  50. extern void omap_serial_board_init(struct omap_uart_port_info *platform_data);
  51. extern void omap_serial_init_port(struct omap_board_data *bdata,
  52. struct omap_uart_port_info *platform_data);
  53. #endif