2 * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
13 * @brief This file contains the hardware definitions of the board.
17 #ifndef __ASM_ARCH_MXC_HARDWARE_H__
18 #define __ASM_ARCH_MXC_HARDWARE_H__
20 #include <asm/sizes.h>
22 #include <asm/arch/mx31.h>
24 #include <asm/arch/mxc.h>
26 #define MXC_MAX_GPIO_LINES (GPIO_NUM_PIN * GPIO_PORT_NUM)
29 * ---------------------------------------------------------------------------
30 * Board specific defines
31 * ---------------------------------------------------------------------------
33 #define MXC_EXP_IO_BASE (MXC_GPIO_INT_BASE + MXC_MAX_GPIO_LINES)
35 #include <asm/arch/board-mx31ads.h>
37 #ifndef MXC_MAX_EXP_IO_LINES
38 #define MXC_MAX_EXP_IO_LINES 0
41 #define MXC_MAX_VIRTUAL_INTS 16
42 #define MXC_VIRTUAL_INTS_BASE (MXC_EXP_IO_BASE + MXC_MAX_EXP_IO_LINES)
43 #define MXC_SDIO1_CARD_IRQ MXC_VIRTUAL_INTS_BASE
44 #define MXC_SDIO2_CARD_IRQ (MXC_VIRTUAL_INTS_BASE + 1)
45 #define MXC_SDIO3_CARD_IRQ (MXC_VIRTUAL_INTS_BASE + 2)
47 #define MXC_MAX_INTS (MXC_MAX_INT_LINES + \
48 MXC_MAX_GPIO_LINES + \
49 MXC_MAX_EXP_IO_LINES + \
52 #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */