diff options
Diffstat (limited to 'arch/arm/mach-omap1/board-voiceblue.c')
-rw-r--r-- | arch/arm/mach-omap1/board-voiceblue.c | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/arch/arm/mach-omap1/board-voiceblue.c b/arch/arm/mach-omap1/board-voiceblue.c index 07b07522d5bf..87b9436fe7c0 100644 --- a/arch/arm/mach-omap1/board-voiceblue.c +++ b/arch/arm/mach-omap1/board-voiceblue.c | |||
@@ -18,22 +18,24 @@ | |||
18 | #include <linux/irq.h> | 18 | #include <linux/irq.h> |
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | #include <linux/kernel.h> | 20 | #include <linux/kernel.h> |
21 | #include <linux/mtd/physmap.h> | ||
21 | #include <linux/notifier.h> | 22 | #include <linux/notifier.h> |
22 | #include <linux/reboot.h> | 23 | #include <linux/reboot.h> |
23 | #include <linux/serial_8250.h> | 24 | #include <linux/serial_8250.h> |
24 | #include <linux/serial_reg.h> | 25 | #include <linux/serial_reg.h> |
26 | #include <linux/smc91x.h> | ||
25 | 27 | ||
26 | #include <mach/hardware.h> | 28 | #include <mach/hardware.h> |
27 | #include <asm/mach-types.h> | 29 | #include <asm/mach-types.h> |
28 | #include <asm/mach/arch.h> | 30 | #include <asm/mach/arch.h> |
29 | #include <asm/mach/flash.h> | ||
30 | #include <asm/mach/map.h> | 31 | #include <asm/mach/map.h> |
31 | 32 | ||
32 | #include <mach/common.h> | 33 | #include <plat/common.h> |
33 | #include <mach/gpio.h> | 34 | #include <mach/gpio.h> |
34 | #include <mach/mux.h> | 35 | #include <plat/flash.h> |
35 | #include <mach/tc.h> | 36 | #include <plat/mux.h> |
36 | #include <mach/usb.h> | 37 | #include <plat/tc.h> |
38 | #include <plat/usb.h> | ||
37 | 39 | ||
38 | static struct plat_serial8250_port voiceblue_ports[] = { | 40 | static struct plat_serial8250_port voiceblue_ports[] = { |
39 | { | 41 | { |
@@ -85,9 +87,9 @@ static int __init ext_uart_init(void) | |||
85 | } | 87 | } |
86 | arch_initcall(ext_uart_init); | 88 | arch_initcall(ext_uart_init); |
87 | 89 | ||
88 | static struct flash_platform_data voiceblue_flash_data = { | 90 | static struct physmap_flash_data voiceblue_flash_data = { |
89 | .map_name = "cfi_probe", | ||
90 | .width = 2, | 91 | .width = 2, |
92 | .set_vpp = omap1_set_vpp, | ||
91 | }; | 93 | }; |
92 | 94 | ||
93 | static struct resource voiceblue_flash_resource = { | 95 | static struct resource voiceblue_flash_resource = { |
@@ -97,7 +99,7 @@ static struct resource voiceblue_flash_resource = { | |||
97 | }; | 99 | }; |
98 | 100 | ||
99 | static struct platform_device voiceblue_flash_device = { | 101 | static struct platform_device voiceblue_flash_device = { |
100 | .name = "omapflash", | 102 | .name = "physmap-flash", |
101 | .id = 0, | 103 | .id = 0, |
102 | .dev = { | 104 | .dev = { |
103 | .platform_data = &voiceblue_flash_data, | 105 | .platform_data = &voiceblue_flash_data, |
@@ -106,6 +108,12 @@ static struct platform_device voiceblue_flash_device = { | |||
106 | .resource = &voiceblue_flash_resource, | 108 | .resource = &voiceblue_flash_resource, |
107 | }; | 109 | }; |
108 | 110 | ||
111 | static struct smc91x_platdata voiceblue_smc91x_info = { | ||
112 | .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT, | ||
113 | .leda = RPC_LED_100_10, | ||
114 | .ledb = RPC_LED_TX_RX, | ||
115 | }; | ||
116 | |||
109 | static struct resource voiceblue_smc91x_resources[] = { | 117 | static struct resource voiceblue_smc91x_resources[] = { |
110 | [0] = { | 118 | [0] = { |
111 | .start = OMAP_CS2_PHYS + 0x300, | 119 | .start = OMAP_CS2_PHYS + 0x300, |
@@ -122,6 +130,9 @@ static struct resource voiceblue_smc91x_resources[] = { | |||
122 | static struct platform_device voiceblue_smc91x_device = { | 130 | static struct platform_device voiceblue_smc91x_device = { |
123 | .name = "smc91x", | 131 | .name = "smc91x", |
124 | .id = 0, | 132 | .id = 0, |
133 | .dev = { | ||
134 | .platform_data = &voiceblue_smc91x_info, | ||
135 | }, | ||
125 | .num_resources = ARRAY_SIZE(voiceblue_smc91x_resources), | 136 | .num_resources = ARRAY_SIZE(voiceblue_smc91x_resources), |
126 | .resource = voiceblue_smc91x_resources, | 137 | .resource = voiceblue_smc91x_resources, |
127 | }; | 138 | }; |