#include "hci_uart.h"
-#ifdef CONFIG_BT_AUTOSLEEP
-extern int rfkill_rk_sleep_bt(bool bSleep);
-#endif
-
#define VERSION "2.2"
static int reset = 0;
restart:
clear_bit(HCI_UART_TX_WAKEUP, &hu->tx_state);
/*added by Barry,for broadcom 4325*/
-#ifdef CONFIG_BT_AUTOSLEEP
- rfkill_rk_sleep_bt(false);
+#ifdef CONFIG_BT_AUTOSLEEP
+#ifdef CONFIG_RFKILL_RK
+ extern int rfkill_rk_sleep_bt(bool bSleep);
+ rfkill_rk_sleep_bt(false);
+#else
+ extern void bcm4325_sleep(unsigned long bSleep);
+ bcm4325_sleep(0);
+#endif
#endif
while ((skb = hci_uart_dequeue(hu))) {
int len;
default n
config RFKILL_RK
- tristate "Rockchips RFKILL driver"
+ bool "Rockchips RFKILL driver"
depends on RFKILL
- default y
help
rockchips rfkill driver for rk29/rk30
// RK29+BCM4329, ÆäwifiÓëbtµÄpower¿ØÖƽÅÊǽÓÔÚÒ»ÆðµÄ
// ÔÚ¸øbtϵçʱ£¬ÐèÒªÏÈÅжÏwifi״̬
-#if defined(CONFIG_ARCH_RK29) && defined(CONFIG_BCM4329)
+#if defined(CONFIG_BCM4329)
#define WIFI_BT_POWER_TOGGLE 1
extern int rk29sdk_bt_power_state;
extern int rk29sdk_wifi_power_state;