diff options
Diffstat (limited to 'arch/arm/mach-msm/board-halibut.c')
-rw-r--r-- | arch/arm/mach-msm/board-halibut.c | 43 |
1 files changed, 10 insertions, 33 deletions
diff --git a/arch/arm/mach-msm/board-halibut.c b/arch/arm/mach-msm/board-halibut.c index 995afc4ade4b..c2a96e3965a6 100644 --- a/arch/arm/mach-msm/board-halibut.c +++ b/arch/arm/mach-msm/board-halibut.c | |||
@@ -18,6 +18,8 @@ | |||
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
20 | #include <linux/input.h> | 20 | #include <linux/input.h> |
21 | #include <linux/io.h> | ||
22 | #include <linux/delay.h> | ||
21 | 23 | ||
22 | #include <mach/hardware.h> | 24 | #include <mach/hardware.h> |
23 | #include <asm/mach-types.h> | 25 | #include <asm/mach-types.h> |
@@ -28,12 +30,11 @@ | |||
28 | #include <mach/board.h> | 30 | #include <mach/board.h> |
29 | #include <mach/msm_iomap.h> | 31 | #include <mach/msm_iomap.h> |
30 | 32 | ||
31 | #include <asm/io.h> | ||
32 | #include <asm/delay.h> | ||
33 | |||
34 | #include <linux/mtd/nand.h> | 33 | #include <linux/mtd/nand.h> |
35 | #include <linux/mtd/partitions.h> | 34 | #include <linux/mtd/partitions.h> |
36 | 35 | ||
36 | #include "devices.h" | ||
37 | |||
37 | static struct resource smc91x_resources[] = { | 38 | static struct resource smc91x_resources[] = { |
38 | [0] = { | 39 | [0] = { |
39 | .start = 0x9C004300, | 40 | .start = 0x9C004300, |
@@ -54,31 +55,12 @@ static struct platform_device smc91x_device = { | |||
54 | .resource = smc91x_resources, | 55 | .resource = smc91x_resources, |
55 | }; | 56 | }; |
56 | 57 | ||
57 | static void mddi0_panel_power(int on) | ||
58 | { | ||
59 | } | ||
60 | |||
61 | static struct msm_mddi_platform_data msm_mddi0_pdata = { | ||
62 | .panel_power = mddi0_panel_power, | ||
63 | .has_vsync_irq = 0, | ||
64 | }; | ||
65 | |||
66 | static struct platform_device msm_mddi0_device = { | ||
67 | .name = "msm_mddi", | ||
68 | .id = 0, | ||
69 | .dev = { | ||
70 | .platform_data = &msm_mddi0_pdata | ||
71 | }, | ||
72 | }; | ||
73 | |||
74 | static struct platform_device msm_serial0_device = { | ||
75 | .name = "msm_serial", | ||
76 | .id = 0, | ||
77 | }; | ||
78 | |||
79 | static struct platform_device *devices[] __initdata = { | 58 | static struct platform_device *devices[] __initdata = { |
80 | &msm_serial0_device, | 59 | &msm_device_uart3, |
81 | &msm_mddi0_device, | 60 | &msm_device_smd, |
61 | &msm_device_nand, | ||
62 | &msm_device_hsusb, | ||
63 | &msm_device_i2c, | ||
82 | &smc91x_device, | 64 | &smc91x_device, |
83 | }; | 65 | }; |
84 | 66 | ||
@@ -92,20 +74,15 @@ static void __init halibut_init_irq(void) | |||
92 | static void __init halibut_init(void) | 74 | static void __init halibut_init(void) |
93 | { | 75 | { |
94 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 76 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
95 | msm_add_devices(); | ||
96 | } | 77 | } |
97 | 78 | ||
98 | static void __init halibut_map_io(void) | 79 | static void __init halibut_map_io(void) |
99 | { | 80 | { |
100 | msm_map_common_io(); | 81 | msm_map_common_io(); |
82 | msm_clock_init(); | ||
101 | } | 83 | } |
102 | 84 | ||
103 | MACHINE_START(HALIBUT, "Halibut Board (QCT SURF7200A)") | 85 | MACHINE_START(HALIBUT, "Halibut Board (QCT SURF7200A)") |
104 | |||
105 | /* UART for LL DEBUG */ | ||
106 | .phys_io = MSM_UART1_PHYS, | ||
107 | .io_pg_offst = ((MSM_UART1_BASE) >> 18) & 0xfffc, | ||
108 | |||
109 | .boot_params = 0x10000100, | 86 | .boot_params = 0x10000100, |
110 | .map_io = halibut_map_io, | 87 | .map_io = halibut_map_io, |
111 | .init_irq = halibut_init_irq, | 88 | .init_irq = halibut_init_irq, |