Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: OMAP: WiLink platform data for the PandaBoard

The "uim" deamon requires sysfs entries that are filled in using
this platform data.

Signed-off-by: Mircea Gherzan <mgherzan@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Mircea Gherzan and committed by
Tony Lindgren
9624f615 a78a4cbd

+14 -2
+12 -2
arch/arm/mach-omap2/board-omap4panda.c
··· 28 28 #include <linux/mfd/twl6040.h> 29 29 #include <linux/regulator/machine.h> 30 30 #include <linux/regulator/fixed.h> 31 + #include <linux/ti_wilink_st.h> 31 32 #include <linux/wl12xx.h> 32 33 #include <linux/platform_data/omap-abe-twl6040.h> 33 34 ··· 59 58 #define HDMI_GPIO_HPD 63 /* Hotplug detect */ 60 59 61 60 /* wl127x BT, FM, GPS connectivity chip */ 62 - static int wl1271_gpios[] = {46, -1, -1}; 61 + static struct ti_st_plat_data wilink_platform_data = { 62 + .nshutdown_gpio = 46, 63 + .dev_name = "/dev/ttyO1", 64 + .flow_cntrl = 1, 65 + .baud_rate = 3000000, 66 + .chip_enable = NULL, 67 + .suspend = NULL, 68 + .resume = NULL, 69 + }; 70 + 63 71 static struct platform_device wl1271_device = { 64 72 .name = "kim", 65 73 .id = -1, 66 74 .dev = { 67 - .platform_data = &wl1271_gpios, 75 + .platform_data = &wilink_platform_data, 68 76 }, 69 77 }; 70 78