diff options
| -rw-r--r-- | arch/arm/mach-omap2/pdata-quirks.c | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index c95346c94829..e72f0fc91b02 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
| 14 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
| 15 | #include <linux/of_platform.h> | 15 | #include <linux/of_platform.h> |
| 16 | #include <linux/ti_wilink_st.h> | ||
| 16 | #include <linux/wl12xx.h> | 17 | #include <linux/wl12xx.h> |
| 17 | 18 | ||
| 18 | #include <linux/platform_data/pinctrl-single.h> | 19 | #include <linux/platform_data/pinctrl-single.h> |
| @@ -139,8 +140,38 @@ static void __init omap3_sbc_t3530_legacy_init(void) | |||
| 139 | omap_ads7846_init(1, 57, 0, NULL); | 140 | omap_ads7846_init(1, 57, 0, NULL); |
| 140 | } | 141 | } |
| 141 | 142 | ||
| 142 | static void __init omap3_igep0020_legacy_init(void) | 143 | struct ti_st_plat_data wilink_pdata = { |
| 144 | .nshutdown_gpio = 137, | ||
| 145 | .dev_name = "/dev/ttyO1", | ||
| 146 | .flow_cntrl = 1, | ||
| 147 | .baud_rate = 300000, | ||
| 148 | }; | ||
| 149 | |||
| 150 | static struct platform_device wl18xx_device = { | ||
| 151 | .name = "kim", | ||
| 152 | .id = -1, | ||
| 153 | .dev = { | ||
| 154 | .platform_data = &wilink_pdata, | ||
| 155 | } | ||
| 156 | }; | ||
| 157 | |||
| 158 | static struct platform_device btwilink_device = { | ||
| 159 | .name = "btwilink", | ||
| 160 | .id = -1, | ||
| 161 | }; | ||
| 162 | |||
| 163 | static void __init omap3_igep0020_rev_f_legacy_init(void) | ||
| 164 | { | ||
| 165 | legacy_init_wl12xx(0, 0, 177); | ||
| 166 | platform_device_register(&wl18xx_device); | ||
| 167 | platform_device_register(&btwilink_device); | ||
| 168 | } | ||
| 169 | |||
| 170 | static void __init omap3_igep0030_rev_g_legacy_init(void) | ||
| 143 | { | 171 | { |
| 172 | legacy_init_wl12xx(0, 0, 136); | ||
| 173 | platform_device_register(&wl18xx_device); | ||
| 174 | platform_device_register(&btwilink_device); | ||
| 144 | } | 175 | } |
| 145 | 176 | ||
| 146 | static void __init omap3_evm_legacy_init(void) | 177 | static void __init omap3_evm_legacy_init(void) |
| @@ -393,7 +424,8 @@ static struct pdata_init pdata_quirks[] __initdata = { | |||
| 393 | { "nokia,omap3-n900", nokia_n900_legacy_init, }, | 424 | { "nokia,omap3-n900", nokia_n900_legacy_init, }, |
| 394 | { "nokia,omap3-n9", hsmmc2_internal_input_clk, }, | 425 | { "nokia,omap3-n9", hsmmc2_internal_input_clk, }, |
| 395 | { "nokia,omap3-n950", hsmmc2_internal_input_clk, }, | 426 | { "nokia,omap3-n950", hsmmc2_internal_input_clk, }, |
| 396 | { "isee,omap3-igep0020", omap3_igep0020_legacy_init, }, | 427 | { "isee,omap3-igep0020-rev-f", omap3_igep0020_rev_f_legacy_init, }, |
| 428 | { "isee,omap3-igep0030-rev-g", omap3_igep0030_rev_g_legacy_init, }, | ||
| 397 | { "ti,omap3-evm-37xx", omap3_evm_legacy_init, }, | 429 | { "ti,omap3-evm-37xx", omap3_evm_legacy_init, }, |
| 398 | { "ti,omap3-zoom3", omap3_zoom_legacy_init, }, | 430 | { "ti,omap3-zoom3", omap3_zoom_legacy_init, }, |
| 399 | { "ti,am3517-evm", am3517_evm_legacy_init, }, | 431 | { "ti,am3517-evm", am3517_evm_legacy_init, }, |
