Quinn Jensen | 52c543f | 2007-07-09 22:06:53 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. |
| 3 | */ |
| 4 | |
| 5 | /* |
| 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. |
| 9 | */ |
| 10 | |
Quinn Jensen | 52c543f | 2007-07-09 22:06:53 +0100 | [diff] [blame] | 11 | #ifndef __ASM_ARCH_MXC_HARDWARE_H__ |
| 12 | #define __ASM_ARCH_MXC_HARDWARE_H__ |
| 13 | |
| 14 | #include <asm/sizes.h> |
| 15 | |
| 16 | #include <asm/arch/mx31.h> |
| 17 | |
| 18 | #include <asm/arch/mxc.h> |
| 19 | |
| 20 | #define MXC_MAX_GPIO_LINES (GPIO_NUM_PIN * GPIO_PORT_NUM) |
| 21 | |
| 22 | /* |
| 23 | * --------------------------------------------------------------------------- |
| 24 | * Board specific defines |
| 25 | * --------------------------------------------------------------------------- |
| 26 | */ |
| 27 | #define MXC_EXP_IO_BASE (MXC_GPIO_INT_BASE + MXC_MAX_GPIO_LINES) |
| 28 | |
| 29 | #include <asm/arch/board-mx31ads.h> |
| 30 | |
| 31 | #ifndef MXC_MAX_EXP_IO_LINES |
| 32 | #define MXC_MAX_EXP_IO_LINES 0 |
| 33 | #endif |
| 34 | |
| 35 | #define MXC_MAX_VIRTUAL_INTS 16 |
| 36 | #define MXC_VIRTUAL_INTS_BASE (MXC_EXP_IO_BASE + MXC_MAX_EXP_IO_LINES) |
| 37 | #define MXC_SDIO1_CARD_IRQ MXC_VIRTUAL_INTS_BASE |
| 38 | #define MXC_SDIO2_CARD_IRQ (MXC_VIRTUAL_INTS_BASE + 1) |
| 39 | #define MXC_SDIO3_CARD_IRQ (MXC_VIRTUAL_INTS_BASE + 2) |
| 40 | |
| 41 | #define MXC_MAX_INTS (MXC_MAX_INT_LINES + \ |
| 42 | MXC_MAX_GPIO_LINES + \ |
| 43 | MXC_MAX_EXP_IO_LINES + \ |
| 44 | MXC_MAX_VIRTUAL_INTS) |
| 45 | |
Robert Schwebel | f304fc4 | 2008-03-28 10:59:08 +0100 | [diff] [blame^] | 46 | #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */ |