aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-omap4panda.c
diff options
context:
space:
mode:
authorMircea Gherzan <mgherzan@gmail.com>2012-05-09 17:19:13 -0400
committerTony Lindgren <tony@atomide.com>2012-05-09 17:19:13 -0400
commit9624f615520696ffa845da2de56277197155b48c (patch)
tree3ad794894830294e4f92ff65d57c297598f59274 /arch/arm/mach-omap2/board-omap4panda.c
parenta78a4cbd41fbe63be1a6763579a4bf452483cf91 (diff)
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>
Diffstat (limited to 'arch/arm/mach-omap2/board-omap4panda.c')
-rw-r--r--arch/arm/mach-omap2/board-omap4panda.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
index 1b782ba5343..1b2eb289b8b 100644
--- a/arch/arm/mach-omap2/board-omap4panda.c
+++ b/arch/arm/mach-omap2/board-omap4panda.c
@@ -28,6 +28,7 @@
28#include <linux/mfd/twl6040.h> 28#include <linux/mfd/twl6040.h>
29#include <linux/regulator/machine.h> 29#include <linux/regulator/machine.h>
30#include <linux/regulator/fixed.h> 30#include <linux/regulator/fixed.h>
31#include <linux/ti_wilink_st.h>
31#include <linux/wl12xx.h> 32#include <linux/wl12xx.h>
32#include <linux/platform_data/omap-abe-twl6040.h> 33#include <linux/platform_data/omap-abe-twl6040.h>
33 34
@@ -58,12 +59,21 @@
58#define HDMI_GPIO_HPD 63 /* Hotplug detect */ 59#define HDMI_GPIO_HPD 63 /* Hotplug detect */
59 60
60/* wl127x BT, FM, GPS connectivity chip */ 61/* wl127x BT, FM, GPS connectivity chip */
61static int wl1271_gpios[] = {46, -1, -1}; 62static struct ti_st_plat_data wilink_platform_data = {
63 .nshutdown_gpio = 46,
64 .dev_name = "/dev/ttyO1",
65 .flow_cntrl = 1,
66 .baud_rate = 3000000,
67 .chip_enable = NULL,
68 .suspend = NULL,
69 .resume = NULL,
70};
71
62static struct platform_device wl1271_device = { 72static struct platform_device wl1271_device = {
63 .name = "kim", 73 .name = "kim",
64 .id = -1, 74 .id = -1,
65 .dev = { 75 .dev = {
66 .platform_data = &wl1271_gpios, 76 .platform_data = &wilink_platform_data,
67 }, 77 },
68}; 78};
69 79