RK-RFKILL fix bug: build failure if use other board config

This commit is contained in:
CMY
2012-06-08 16:46:16 +08:00
parent 0d6d4275dc
commit 0c704d2093
5 changed files with 12 additions and 9 deletions

View File

@@ -174,6 +174,7 @@ CONFIG_BT_HCIBCM4325=y
CONFIG_BT_AUTOSLEEP=y
CONFIG_RFKILL=y
# CONFIG_RFKILL_PM is not set
CONFIG_RFKILL_RK=y
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
# CONFIG_FIRMWARE_IN_KERNEL is not set

View File

@@ -177,6 +177,7 @@ CONFIG_BT_HCIUART_LL=y
CONFIG_BT_HCIBCM4325=y
CONFIG_BT_AUTOSLEEP=y
CONFIG_RFKILL=y
CONFIG_RFKILL_RK=y
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
# CONFIG_FIRMWARE_IN_KERNEL is not set

View File

@@ -46,10 +46,6 @@
#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;
@@ -138,8 +134,14 @@ int hci_uart_tx_wakeup(struct hci_uart *hu)
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;

View File

@@ -54,9 +54,8 @@ config RFKILL_RESET
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

View File

@@ -75,7 +75,7 @@ enum {
// 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;