diff options
Diffstat (limited to 'arch/arm/mach-mx3/mach-mx31ads.c')
-rw-r--r-- | arch/arm/mach-mx3/mach-mx31ads.c | 43 |
1 files changed, 36 insertions, 7 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31ads.c b/arch/arm/mach-mx3/mach-mx31ads.c index b3d1a1895c20..ed34b61b52f7 100644 --- a/arch/arm/mach-mx3/mach-mx31ads.c +++ b/arch/arm/mach-mx3/mach-mx31ads.c | |||
@@ -33,7 +33,6 @@ | |||
33 | #include <asm/memory.h> | 33 | #include <asm/memory.h> |
34 | #include <asm/mach/map.h> | 34 | #include <asm/mach/map.h> |
35 | #include <mach/common.h> | 35 | #include <mach/common.h> |
36 | #include <mach/board-mx31ads.h> | ||
37 | #include <mach/imx-uart.h> | 36 | #include <mach/imx-uart.h> |
38 | #include <mach/iomux-mx3.h> | 37 | #include <mach/iomux-mx3.h> |
39 | 38 | ||
@@ -45,12 +44,42 @@ | |||
45 | 44 | ||
46 | #include "devices.h" | 45 | #include "devices.h" |
47 | 46 | ||
48 | /*! | 47 | /* Base address of PBC controller */ |
49 | * @file mx31ads.c | 48 | #define PBC_BASE_ADDRESS MX31_CS4_BASE_ADDR_VIRT |
50 | * | 49 | /* Offsets for the PBC Controller register */ |
51 | * @brief This file contains the board-specific initialization routines. | 50 | |
52 | * | 51 | /* PBC Board interrupt status register */ |
53 | * @ingroup System | 52 | #define PBC_INTSTATUS 0x000016 |
53 | |||
54 | /* PBC Board interrupt current status register */ | ||
55 | #define PBC_INTCURR_STATUS 0x000018 | ||
56 | |||
57 | /* PBC Interrupt mask register set address */ | ||
58 | #define PBC_INTMASK_SET 0x00001A | ||
59 | |||
60 | /* PBC Interrupt mask register clear address */ | ||
61 | #define PBC_INTMASK_CLEAR 0x00001C | ||
62 | |||
63 | /* External UART A */ | ||
64 | #define PBC_SC16C652_UARTA 0x010000 | ||
65 | |||
66 | /* External UART B */ | ||
67 | #define PBC_SC16C652_UARTB 0x010010 | ||
68 | |||
69 | #define PBC_INTSTATUS_REG (PBC_INTSTATUS + PBC_BASE_ADDRESS) | ||
70 | #define PBC_INTMASK_SET_REG (PBC_INTMASK_SET + PBC_BASE_ADDRESS) | ||
71 | #define PBC_INTMASK_CLEAR_REG (PBC_INTMASK_CLEAR + PBC_BASE_ADDRESS) | ||
72 | #define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_4) | ||
73 | |||
74 | #define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START) | ||
75 | #define MXC_IRQ_TO_EXPIO(irq) ((irq) - MXC_EXP_IO_BASE) | ||
76 | |||
77 | #define EXPIO_INT_XUART_INTA (MXC_EXP_IO_BASE + 10) | ||
78 | #define EXPIO_INT_XUART_INTB (MXC_EXP_IO_BASE + 11) | ||
79 | |||
80 | #define MXC_MAX_EXP_IO_LINES 16 | ||
81 | /* | ||
82 | * This file contains the board-specific initialization routines. | ||
54 | */ | 83 | */ |
55 | 84 | ||
56 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) | 85 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) |