summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-whistler.c
diff options
context:
space:
mode:
authorrgoyal <rgoyal@nvidia.com>2010-12-28 13:26:05 +0530
committerBharat Nihalani <bnihalani@nvidia.com>2011-01-03 23:59:22 -0800
commit7eda11ed34d820ef3079da2030a07bac07955599 (patch)
treecff3e08a954130a7d8c7c0db9e73182383f15e3a /arch/arm/mach-tegra/board-whistler.c
parentbcb6efa0d0101c2192ca9e3a583268595b24c049 (diff)
[arm/tegra] enabling bt on whistler
Enabling bt on whistler board. creating rfkill platform device (whistler_bcm4329_rfkill_device) BUG 773549 Change-Id: Ib64786f36c63121e16ffd64fd2ac0621f19f5137 Reviewed-on: http://git-master/r/14453 Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com> Tested-by: Rakesh Goyal <rgoyal@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-whistler.c')
-rw-r--r--arch/arm/mach-tegra/board-whistler.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-whistler.c b/arch/arm/mach-tegra/board-whistler.c
index 57b33921eaad..b92eebfda9e9 100644
--- a/arch/arm/mach-tegra/board-whistler.c
+++ b/arch/arm/mach-tegra/board-whistler.c
@@ -75,9 +75,37 @@ static struct platform_device debug_uart = {
},
};
+#ifdef CONFIG_BCM4329_RFKILL
+
+static struct resource whistler_bcm4329_rfkill_resources[] = {
+ {
+ .name = "bcm4329_nshutdown_gpio",
+ .start = TEGRA_GPIO_PU0,
+ .end = TEGRA_GPIO_PU0,
+ .flags = IORESOURCE_IO,
+ },
+};
+
+static struct platform_device whistler_bcm4329_rfkill_device = {
+ .name = "bcm4329_rfkill",
+ .id = -1,
+ .num_resources = ARRAY_SIZE(whistler_bcm4329_rfkill_resources),
+ .resource = whistler_bcm4329_rfkill_resources,
+};
+
+static noinline void __init whistler_bt_rfkill(void)
+{
+ platform_device_register(&whistler_bcm4329_rfkill_device);
+ return;
+}
+#else
+static inline void whistler_bt_rfkill(void) { }
+#endif
+
static __initdata struct tegra_clk_init_table whistler_clk_init_table[] = {
/* name parent rate enabled */
{ "uarta", "pll_p", 216000000, true},
+ { "uartc", "pll_m", 600000000, false},
{ "pwm", "clk_32k", 32768, false},
{ "kbc", "clk_32k", 32768, true},
{ NULL, NULL, 0, 0},
@@ -191,6 +219,7 @@ static struct platform_device *whistler_devices[] __initdata = {
&tegra_otg_device,
&androidusb_device,
&debug_uart,
+ &tegra_uartc_device,
&pmu_device,
&tegra_udc_device,
&tegra_gart_device,
@@ -247,6 +276,7 @@ static void __init tegra_whistler_init(void)
whistler_panel_init();
whistler_touch_init();
whistler_kbc_init();
+ whistler_bt_rfkill();
whistler_scroll_init();
}