Commit | Line | Data |
---|---|---|
635baf6b SH |
1 | #include <linux/types.h> |
2 | #include <linux/init.h> | |
3 | #include <linux/clk.h> | |
4 | #include <linux/irq.h> | |
5 | #include <linux/gpio.h> | |
6 | #include <linux/smsc911x.h> | |
7 | #include <linux/platform_device.h> | |
8 | ||
9 | #include <mach/hardware.h> | |
10 | #include <asm/mach-types.h> | |
11 | #include <asm/mach/arch.h> | |
12 | #include <asm/mach/time.h> | |
13 | #include <asm/memory.h> | |
14 | #include <asm/mach/map.h> | |
15 | #include <mach/common.h> | |
16 | #include <mach/imx-uart.h> | |
17 | #include <mach/mx25.h> | |
18 | #include <mach/mxc_nand.h> | |
19 | #include "devices.h" | |
20 | #include <mach/iomux-v3.h> | |
21 | ||
22 | static struct imxuart_platform_data uart_pdata = { | |
23 | .flags = IMXUART_HAVE_RTSCTS, | |
24 | }; | |
25 | ||
635baf6b SH |
26 | static void __init mx25pdk_init(void) |
27 | { | |
28 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | |
29 | mxc_register_device(&mxc_usbh2, NULL); | |
635baf6b SH |
30 | } |
31 | ||
635baf6b SH |
32 | static void __init mx25pdk_timer_init(void) |
33 | { | |
34 | mx25_clocks_init(26000000); | |
35 | } | |
36 | ||
37 | static struct sys_timer mx25pdk_timer = { | |
38 | .init = mx25pdk_timer_init, | |
39 | }; | |
40 | ||
41 | MACHINE_START(MX25_3DS, "Freescale MX25PDK (3DS)") | |
42 | /* Maintainer: Freescale Semiconductor, Inc. */ | |
43 | .phys_io = MX25_AIPS1_BASE_ADDR, | |
44 | .io_pg_offst = ((MX25_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | |
45 | .boot_params = PHYS_OFFSET + 0x100, | |
46 | .map_io = mx25_map_io, | |
47 | .init_irq = mx25_init_irq, | |
48 | .init_machine = mx25pdk_init, | |
49 | .timer = &mx25pdk_timer, | |
50 | MACHINE_END | |
51 |