21 #include <mach/common.h>
22 #include <mach/hardware.h>
34 #define MX21ADS_MMIO_BASE_ADDR 0xf5000000
35 #define MX21ADS_MMIO_SIZE 0xc00000
37 #define MX21ADS_REG_ADDR(offset) (void __force __iomem *) \
38 (MX21ADS_MMIO_BASE_ADDR + (offset))
40 #define MX21ADS_CS8900A_MMIO_SIZE 0x200000
41 #define MX21ADS_CS8900A_IRQ_GPIO IMX_GPIO_NR(5, 11)
42 #define MX21ADS_ST16C255_IOBASE_REG MX21ADS_REG_ADDR(0x200000)
43 #define MX21ADS_VERSION_REG MX21ADS_REG_ADDR(0x400000)
44 #define MX21ADS_IO_REG MX21ADS_REG_ADDR(0x800000)
47 #define MX21ADS_IO_SD_WP 0x0001
48 #define MX21ADS_IO_TP6 0x0001
49 #define MX21ADS_IO_SW_SEL 0x0002
50 #define MX21ADS_IO_TP7 0x0002
51 #define MX21ADS_IO_RESET_E_UART 0x0004
52 #define MX21ADS_IO_RESET_BASE 0x0008
53 #define MX21ADS_IO_CSI_CTL2 0x0010
54 #define MX21ADS_IO_CSI_CTL1 0x0020
55 #define MX21ADS_IO_CSI_CTL0 0x0040
56 #define MX21ADS_IO_UART1_EN 0x0080
57 #define MX21ADS_IO_UART4_EN 0x0100
58 #define MX21ADS_IO_LCDON 0x0200
59 #define MX21ADS_IO_IRDA_EN 0x0400
60 #define MX21ADS_IO_IRDA_FIR_SEL 0x0800
61 #define MX21ADS_IO_IRDA_MD0_B 0x1000
62 #define MX21ADS_IO_IRDA_MD1 0x2000
63 #define MX21ADS_IO_LED4_ON 0x4000
64 #define MX21ADS_IO_LED3_ON 0x8000
146 static struct resource mx21ads_flash_resource = {
153 .
name =
"physmap-flash",
156 .platform_data = &mx21ads_flash_data,
159 .resource = &mx21ads_flash_resource,
162 static struct resource mx21ads_cs8900_resources[] __initdata = {
171 .res = mx21ads_cs8900_resources,
172 .num_res =
ARRAY_SIZE(mx21ads_cs8900_resources),
208 .name =
"Sharp-LQ035Q7",
226 .
mode = mx21ads_modes,
233 .init = mx21ads_fb_init,
234 .exit = mx21ads_fb_exit,
237 static int mx21ads_sdhc_get_ro(
struct device *
dev)
249 static void mx21ads_sdhc_exit(
struct device *dev,
void *data)
256 .get_ro = mx21ads_sdhc_get_ro,
257 .init = mx21ads_sdhc_init,
258 .exit = mx21ads_sdhc_exit,
262 mx21ads_nand_board_info __initconst = {
267 static struct map_desc mx21ads_io_desc[] __initdata = {
283 static void __init mx21ads_map_io(
void)
290 &mx21ads_nor_mtd_device,
293 static void __init mx21ads_board_init(
void)
309 mx21ads_cs8900_resources[1].
start =
311 mx21ads_cs8900_resources[1].
end =
316 static void __init mx21ads_timer_init(
void)
321 static struct sys_timer mx21ads_timer = {
322 .
init = mx21ads_timer_init,
327 .atag_offset = 0x100,
328 .map_io = mx21ads_map_io,
332 .timer = &mx21ads_timer,
333 .init_machine = mx21ads_board_init,