hardware.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright 2004-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_HARDWARE_H__
  10. #define __ASM_ARCH_MXC_HARDWARE_H__
  11. #include <asm/sizes.h>
  12. #include <asm/arch/mx31.h>
  13. #include <asm/arch/mxc.h>
  14. #define MXC_MAX_GPIO_LINES (GPIO_NUM_PIN * GPIO_PORT_NUM)
  15. /*
  16. * ---------------------------------------------------------------------------
  17. * Board specific defines
  18. * ---------------------------------------------------------------------------
  19. */
  20. #define MXC_EXP_IO_BASE (MXC_GPIO_INT_BASE + MXC_MAX_GPIO_LINES)
  21. #include <asm/arch/board-mx31ads.h>
  22. #ifndef MXC_MAX_EXP_IO_LINES
  23. #define MXC_MAX_EXP_IO_LINES 0
  24. #endif
  25. #define MXC_MAX_VIRTUAL_INTS 16
  26. #define MXC_VIRTUAL_INTS_BASE (MXC_EXP_IO_BASE + MXC_MAX_EXP_IO_LINES)
  27. #define MXC_SDIO1_CARD_IRQ MXC_VIRTUAL_INTS_BASE
  28. #define MXC_SDIO2_CARD_IRQ (MXC_VIRTUAL_INTS_BASE + 1)
  29. #define MXC_SDIO3_CARD_IRQ (MXC_VIRTUAL_INTS_BASE + 2)
  30. #define MXC_MAX_INTS (MXC_MAX_INT_LINES + \
  31. MXC_MAX_GPIO_LINES + \
  32. MXC_MAX_EXP_IO_LINES + \
  33. MXC_MAX_VIRTUAL_INTS)
  34. #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */