board-am335xevm: changes for working with catalog wl1271 com6m module
authorEyal Reizer <eyalr@ti.com>
Mon, 14 Nov 2011 07:44:10 +0000 (09:44 +0200)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:36 +0000 (00:44 +0530)
* The catalog COM6M module is using a 38.4Mhz crystal

* Do not activate the BT enable pin during boot. this is done from the
  appliaction when BT is brought up.

Signed-off-by: Eyal Reizer <eyalr@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
arch/arm/mach-omap2/board-am335xevm.c

index 4d2812be4b7f3a6ec9f939c9b28acd4a1b8681a5..844eccabe717e961b3bd295b3f6341564f7d648e 100644 (file)
@@ -663,8 +663,7 @@ static int backlight_enable;
 
 struct wl12xx_platform_data am335xevm_wlan_data = {
        .irq = OMAP_GPIO_IRQ(AM335XEVM_WLAN_IRQ_GPIO),
-       .board_ref_clock = WL12XX_REFCLOCK_26, /* 26 MHz */
-       .board_tcxo_clock = WL12XX_REFCLOCK_26, /* 26 MHz */
+       .board_ref_clock = WL12XX_REFCLOCK_38_XTAL, /* 38.4Mhz */
 };
 
 /* Module pin mux for wlan and bluetooth */
@@ -989,10 +988,8 @@ static void wl12xx_bluetooth_enable(void)
        if (status < 0)
                pr_err("Failed to request gpio for bt_enable");
 
-       pr_info("Enable bluetooth...\n");
+       pr_info("Configure Bluetooth Enable pin...\n");
        gpio_direction_output(AM335XEVM_BT_ENABLE_GPIO, 0);
-       msleep(1);
-       gpio_set_value(AM335XEVM_BT_ENABLE_GPIO, 1);
 }
 
 static int wl12xx_set_power(struct device *dev, int slot, int on, int vdd)