board-mx31pdk.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright 2008 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_MX31PDK_H__
  10. #define __ASM_ARCH_MXC_BOARD_MX31PDK_H__
  11. /* mandatory for CONFIG_DEBUG_LL */
  12. #define MXC_LL_UART_PADDR UART1_BASE_ADDR
  13. #define MXC_LL_UART_VADDR AIPS1_IO_ADDRESS(UART1_BASE_ADDR)
  14. /* Definitions for components on the Debug board */
  15. /* Base address of CPLD controller on the Debug board */
  16. #define DEBUG_BASE_ADDRESS CS5_IO_ADDRESS(CS5_BASE_ADDR)
  17. /* LAN9217 ethernet base address */
  18. #define LAN9217_BASE_ADDR CS5_BASE_ADDR
  19. /* CPLD config and interrupt base address */
  20. #define CPLD_ADDR (DEBUG_BASE_ADDRESS + 0x20000)
  21. /* LED switchs */
  22. #define CPLD_LED_REG (CPLD_ADDR + 0x00)
  23. /* buttons */
  24. #define CPLD_SWITCH_BUTTONS_REG (EXPIO_ADDR + 0x08)
  25. /* status, interrupt */
  26. #define CPLD_INT_STATUS_REG (CPLD_ADDR + 0x10)
  27. #define CPLD_INT_MASK_REG (CPLD_ADDR + 0x38)
  28. #define CPLD_INT_RESET_REG (CPLD_ADDR + 0x20)
  29. /* magic word for debug CPLD */
  30. #define CPLD_MAGIC_NUMBER1_REG (CPLD_ADDR + 0x40)
  31. #define CPLD_MAGIC_NUMBER2_REG (CPLD_ADDR + 0x48)
  32. /* CPLD code version */
  33. #define CPLD_CODE_VER_REG (CPLD_ADDR + 0x50)
  34. /* magic word for debug CPLD */
  35. #define CPLD_MAGIC_NUMBER3_REG (CPLD_ADDR + 0x58)
  36. /* module reset register */
  37. #define CPLD_MODULE_RESET_REG (CPLD_ADDR + 0x60)
  38. /* CPU ID and Personality ID */
  39. #define CPLD_MCU_BOARD_ID_REG (CPLD_ADDR + 0x68)
  40. /* CPLD IRQ line for external uart, external ethernet etc */
  41. #define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_1)
  42. #define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START)
  43. #define MXC_IRQ_TO_EXPIO(irq) ((irq) - MXC_EXP_IO_BASE)
  44. #define EXPIO_INT_ENET (MXC_EXP_IO_BASE + 0)
  45. #define EXPIO_INT_XUART_A (MXC_EXP_IO_BASE + 1)
  46. #define EXPIO_INT_XUART_B (MXC_EXP_IO_BASE + 2)
  47. #define EXPIO_INT_BUTTON_A (MXC_EXP_IO_BASE + 3)
  48. #define EXPIO_INT_BUTTON_B (MXC_EXP_IO_BASE + 4)
  49. #define MXC_MAX_EXP_IO_LINES 16
  50. #endif /* __ASM_ARCH_MXC_BOARD_MX31PDK_H__ */