board-mx31ads.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /*
  2. * Copyright 2005-2007 Freescale Semiconductor, Inc. All Rights Reserved.
  3. */
  4. /*
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #ifndef __ASM_ARCH_MXC_BOARD_MX31ADS_H__
  10. #define __ASM_ARCH_MXC_BOARD_MX31ADS_H__
  11. #include <mach/hardware.h>
  12. /* Base address of PBC controller */
  13. #define PBC_BASE_ADDRESS IO_ADDRESS(CS4_BASE_ADDR)
  14. /* Offsets for the PBC Controller register */
  15. /* PBC Board status register offset */
  16. #define PBC_BSTAT 0x000002
  17. /* PBC Board control register 1 set address */
  18. #define PBC_BCTRL1_SET 0x000004
  19. /* PBC Board control register 1 clear address */
  20. #define PBC_BCTRL1_CLEAR 0x000006
  21. /* PBC Board control register 2 set address */
  22. #define PBC_BCTRL2_SET 0x000008
  23. /* PBC Board control register 2 clear address */
  24. #define PBC_BCTRL2_CLEAR 0x00000A
  25. /* PBC Board control register 3 set address */
  26. #define PBC_BCTRL3_SET 0x00000C
  27. /* PBC Board control register 3 clear address */
  28. #define PBC_BCTRL3_CLEAR 0x00000E
  29. /* PBC Board control register 4 set address */
  30. #define PBC_BCTRL4_SET 0x000010
  31. /* PBC Board control register 4 clear address */
  32. #define PBC_BCTRL4_CLEAR 0x000012
  33. /* PBC Board status register 1 */
  34. #define PBC_BSTAT1 0x000014
  35. /* PBC Board interrupt status register */
  36. #define PBC_INTSTATUS 0x000016
  37. /* PBC Board interrupt current status register */
  38. #define PBC_INTCURR_STATUS 0x000018
  39. /* PBC Interrupt mask register set address */
  40. #define PBC_INTMASK_SET 0x00001A
  41. /* PBC Interrupt mask register clear address */
  42. #define PBC_INTMASK_CLEAR 0x00001C
  43. /* External UART A */
  44. #define PBC_SC16C652_UARTA 0x010000
  45. /* External UART B */
  46. #define PBC_SC16C652_UARTB 0x010010
  47. /* Ethernet Controller IO base address */
  48. #define PBC_CS8900A_IOBASE 0x020000
  49. /* Ethernet Controller Memory base address */
  50. #define PBC_CS8900A_MEMBASE 0x021000
  51. /* Ethernet Controller DMA base address */
  52. #define PBC_CS8900A_DMABASE 0x022000
  53. /* External chip select 0 */
  54. #define PBC_XCS0 0x040000
  55. /* LCD Display enable */
  56. #define PBC_LCD_EN_B 0x060000
  57. /* Code test debug enable */
  58. #define PBC_CODE_B 0x070000
  59. /* PSRAM memory select */
  60. #define PBC_PSRAM_B 0x5000000
  61. #define PBC_INTSTATUS_REG (PBC_INTSTATUS + PBC_BASE_ADDRESS)
  62. #define PBC_INTCURR_STATUS_REG (PBC_INTCURR_STATUS + PBC_BASE_ADDRESS)
  63. #define PBC_INTMASK_SET_REG (PBC_INTMASK_SET + PBC_BASE_ADDRESS)
  64. #define PBC_INTMASK_CLEAR_REG (PBC_INTMASK_CLEAR + PBC_BASE_ADDRESS)
  65. #define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_4)
  66. #define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START)
  67. #define MXC_IRQ_TO_EXPIO(irq) ((irq) - MXC_EXP_IO_BASE)
  68. #define EXPIO_INT_LOW_BAT (MXC_EXP_IO_BASE + 0)
  69. #define EXPIO_INT_PB_IRQ (MXC_EXP_IO_BASE + 1)
  70. #define EXPIO_INT_OTG_FS_OVR (MXC_EXP_IO_BASE + 2)
  71. #define EXPIO_INT_FSH_OVR (MXC_EXP_IO_BASE + 3)
  72. #define EXPIO_INT_RES4 (MXC_EXP_IO_BASE + 4)
  73. #define EXPIO_INT_RES5 (MXC_EXP_IO_BASE + 5)
  74. #define EXPIO_INT_RES6 (MXC_EXP_IO_BASE + 6)
  75. #define EXPIO_INT_RES7 (MXC_EXP_IO_BASE + 7)
  76. #define EXPIO_INT_ENET_INT (MXC_EXP_IO_BASE + 8)
  77. #define EXPIO_INT_OTG_FS_INT (MXC_EXP_IO_BASE + 9)
  78. #define EXPIO_INT_XUART_INTA (MXC_EXP_IO_BASE + 10)
  79. #define EXPIO_INT_XUART_INTB (MXC_EXP_IO_BASE + 11)
  80. #define EXPIO_INT_SYNTH_IRQ (MXC_EXP_IO_BASE + 12)
  81. #define EXPIO_INT_CE_INT1 (MXC_EXP_IO_BASE + 13)
  82. #define EXPIO_INT_CE_INT2 (MXC_EXP_IO_BASE + 14)
  83. #define EXPIO_INT_RES15 (MXC_EXP_IO_BASE + 15)
  84. #define MXC_MAX_EXP_IO_LINES 16
  85. /* mandatory for CONFIG_LL_DEBUG */
  86. #define MXC_LL_UART_PADDR UART1_BASE_ADDR
  87. #define MXC_LL_UART_VADDR AIPS1_IO_ADDRESS(UART1_BASE_ADDR)
  88. #endif /* __ASM_ARCH_MXC_BOARD_MX31ADS_H__ */