hardware.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. /*!
  10. * @file hardware.h
  11. * @brief This file contains the hardware definitions of the board.
  12. *
  13. * @ingroup System
  14. */
  15. #ifndef __ASM_ARCH_MXC_HARDWARE_H__
  16. #define __ASM_ARCH_MXC_HARDWARE_H__
  17. #include <asm/sizes.h>
  18. #include <asm/arch/mx31.h>
  19. #include <asm/arch/mxc.h>
  20. #define MXC_MAX_GPIO_LINES (GPIO_NUM_PIN * GPIO_PORT_NUM)
  21. /*
  22. * ---------------------------------------------------------------------------
  23. * Board specific defines
  24. * ---------------------------------------------------------------------------
  25. */
  26. #define MXC_EXP_IO_BASE (MXC_GPIO_INT_BASE + MXC_MAX_GPIO_LINES)
  27. #include <asm/arch/board-mx31ads.h>
  28. #ifndef MXC_MAX_EXP_IO_LINES
  29. #define MXC_MAX_EXP_IO_LINES 0
  30. #endif
  31. #define MXC_MAX_VIRTUAL_INTS 16
  32. #define MXC_VIRTUAL_INTS_BASE (MXC_EXP_IO_BASE + MXC_MAX_EXP_IO_LINES)
  33. #define MXC_SDIO1_CARD_IRQ MXC_VIRTUAL_INTS_BASE
  34. #define MXC_SDIO2_CARD_IRQ (MXC_VIRTUAL_INTS_BASE + 1)
  35. #define MXC_SDIO3_CARD_IRQ (MXC_VIRTUAL_INTS_BASE + 2)
  36. #define MXC_MAX_INTS (MXC_MAX_INT_LINES + \
  37. MXC_MAX_GPIO_LINES + \
  38. MXC_MAX_EXP_IO_LINES + \
  39. MXC_MAX_VIRTUAL_INTS)
  40. #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */