diff options
author | Xavier Boudet <x-boudet@ti.com> | 2011-10-19 16:50:55 +0200 |
---|---|---|
committer | Xavier Boudet <x-boudet@ti.com> | 2011-10-19 17:59:13 +0200 |
commit | 15f0e8f16fb7c6c36e19373b708a842d52f188f5 (patch) | |
tree | 7b68108e3fb9fd020e4137bacb23b3893c7d0289 | |
parent | adfb39e92a611c12fa261cd600dd78afbefa36f8 (diff) |
omap: blaze: Add TI-ST driver support
Signed-off-by: Xavier Boudet <x-boudet@ti.com>
-rw-r--r-- | arch/arm/mach-omap2/board-4430sdp.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index 469a27f2b459..b681bece4c09 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c @@ -26,6 +26,9 @@ #include <linux/leds.h> #include <linux/leds_pwm.h> #include <linux/wl12xx.h> +#include <linux/netdevice.h> +#include <linux/if_ether.h> +#include <linux/ti_wilink_st.h> #include <mach/hardware.h> #include <mach/omap4-common.h> @@ -151,6 +154,42 @@ static struct omap4_keypad_platform_data sdp4430_keypad_data = { .rows = 8, .cols = 8, }; + +static int +sdp4430_kim_suspend(struct platform_device *pdev, pm_message_t msg) +{ + return 0; +} + +static int +sdp4430_kim_resume(struct platform_device *pdev) +{ + return 0; +} + +struct ti_st_plat_data sdp4430_bt_platform_data = { + .nshutdown_gpio = 55, + .dev_name = "/dev/ttyO1", + .flow_cntrl = 1, + .baud_rate = 3000000, + .suspend = sdp4430_kim_suspend, + .resume = sdp4430_kim_resume, + +}; + +static struct platform_device wl128x_device = { + .name = "kim", + .id = -1, + .dev = { + .platform_data = &sdp4430_bt_platform_data, + }, +}; + +static struct platform_device btwilink_device = { + .name = "btwilink", + .id = -1, +}; + static struct gpio_led sdp4430_gpio_leds[] = { { .name = "omap4:green:debug0", @@ -310,6 +349,8 @@ static struct platform_device *sdp4430_devices[] __initdata = { &sdp4430_gpio_keys_device, &sdp4430_leds_gpio, &sdp4430_leds_pwm, + &wl128x_device, + &btwilink_device, &omap4_hdmi_audio_device, }; |