aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/board-osk.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap1/board-osk.c')
-rw-r--r--arch/arm/mach-omap1/board-osk.c29
1 files changed, 20 insertions, 9 deletions
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c
index ed891b8a6b15..80d862001def 100644
--- a/arch/arm/mach-omap1/board-osk.c
+++ b/arch/arm/mach-omap1/board-osk.c
@@ -33,9 +33,11 @@
33#include <linux/irq.h> 33#include <linux/irq.h>
34#include <linux/i2c.h> 34#include <linux/i2c.h>
35#include <linux/leds.h> 35#include <linux/leds.h>
36#include <linux/smc91x.h>
36 37
37#include <linux/mtd/mtd.h> 38#include <linux/mtd/mtd.h>
38#include <linux/mtd/partitions.h> 39#include <linux/mtd/partitions.h>
40#include <linux/mtd/physmap.h>
39 41
40#include <linux/i2c/tps65010.h> 42#include <linux/i2c/tps65010.h>
41 43
@@ -45,12 +47,12 @@
45#include <asm/mach-types.h> 47#include <asm/mach-types.h>
46#include <asm/mach/arch.h> 48#include <asm/mach/arch.h>
47#include <asm/mach/map.h> 49#include <asm/mach/map.h>
48#include <asm/mach/flash.h>
49 50
50#include <mach/usb.h> 51#include <plat/flash.h>
51#include <mach/mux.h> 52#include <plat/usb.h>
52#include <mach/tc.h> 53#include <plat/mux.h>
53#include <mach/common.h> 54#include <plat/tc.h>
55#include <plat/common.h>
54 56
55/* At OMAP5912 OSK the Ethernet is directly connected to CS1 */ 57/* At OMAP5912 OSK the Ethernet is directly connected to CS1 */
56#define OMAP_OSK_ETHR_START 0x04800300 58#define OMAP_OSK_ETHR_START 0x04800300
@@ -93,9 +95,9 @@ static struct mtd_partition osk_partitions[] = {
93 } 95 }
94}; 96};
95 97
96static struct flash_platform_data osk_flash_data = { 98static struct physmap_flash_data osk_flash_data = {
97 .map_name = "cfi_probe",
98 .width = 2, 99 .width = 2,
100 .set_vpp = omap1_set_vpp,
99 .parts = osk_partitions, 101 .parts = osk_partitions,
100 .nr_parts = ARRAY_SIZE(osk_partitions), 102 .nr_parts = ARRAY_SIZE(osk_partitions),
101}; 103};
@@ -106,7 +108,7 @@ static struct resource osk_flash_resource = {
106}; 108};
107 109
108static struct platform_device osk5912_flash_device = { 110static struct platform_device osk5912_flash_device = {
109 .name = "omapflash", 111 .name = "physmap-flash",
110 .id = 0, 112 .id = 0,
111 .dev = { 113 .dev = {
112 .platform_data = &osk_flash_data, 114 .platform_data = &osk_flash_data,
@@ -115,6 +117,12 @@ static struct platform_device osk5912_flash_device = {
115 .resource = &osk_flash_resource, 117 .resource = &osk_flash_resource,
116}; 118};
117 119
120static struct smc91x_platdata osk5912_smc91x_info = {
121 .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT,
122 .leda = RPC_LED_100_10,
123 .ledb = RPC_LED_TX_RX,
124};
125
118static struct resource osk5912_smc91x_resources[] = { 126static struct resource osk5912_smc91x_resources[] = {
119 [0] = { 127 [0] = {
120 .start = OMAP_OSK_ETHR_START, /* Physical */ 128 .start = OMAP_OSK_ETHR_START, /* Physical */
@@ -131,6 +139,9 @@ static struct resource osk5912_smc91x_resources[] = {
131static struct platform_device osk5912_smc91x_device = { 139static struct platform_device osk5912_smc91x_device = {
132 .name = "smc91x", 140 .name = "smc91x",
133 .id = -1, 141 .id = -1,
142 .dev = {
143 .platform_data = &osk5912_smc91x_info,
144 },
134 .num_resources = ARRAY_SIZE(osk5912_smc91x_resources), 145 .num_resources = ARRAY_SIZE(osk5912_smc91x_resources),
135 .resource = osk5912_smc91x_resources, 146 .resource = osk5912_smc91x_resources,
136}; 147};
@@ -312,7 +323,7 @@ static struct omap_board_config_kernel osk_config[] __initdata = {
312#include <linux/spi/spi.h> 323#include <linux/spi/spi.h>
313#include <linux/spi/ads7846.h> 324#include <linux/spi/ads7846.h>
314 325
315#include <mach/keypad.h> 326#include <plat/keypad.h>
316 327
317static struct at24_platform_data at24c04 = { 328static struct at24_platform_data at24c04 = {
318 .byte_len = SZ_4K / 8, 329 .byte_len = SZ_4K / 8,