You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
when rtk(also some others) wifi/bt combo chips suspend, it disconnect from bt-remote control unit(RCU). when RCU's powerkey pressed, it will send ble broadcast to rtk bt chip. As the rtk chips receive the broadcast, it should wake up the host, but it can't send bt-hid powerkey to host because it had lost communication with host. So,it just send a IRQ pulse to host. The host should resume from suspend. Because the RCU just send a IRQ pulse, so rk chips just resume by IRQ and then go to sleep again for no power-key event. this is not expected. we expect to power up system wholly. With this path, we try to power up the system. so we add a power-up key event when BT IRQ received. We also can control the "/proc/bluetooth/sleep/powerupkey" node to enable or disable this function. Change-Id: Ie59b4a2c4cd2f91820d31835df86565003126465 Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
45 lines
999 B
Plaintext
45 lines
999 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# RF switch subsystem configuration
|
|
#
|
|
menuconfig RFKILL
|
|
tristate "RF switch subsystem support"
|
|
help
|
|
Say Y here if you want to have control over RF switches
|
|
found on many WiFi and Bluetooth cards.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called rfkill.
|
|
|
|
# LED trigger support
|
|
config RFKILL_LEDS
|
|
bool
|
|
depends on RFKILL
|
|
depends on LEDS_TRIGGERS = y || RFKILL = LEDS_TRIGGERS
|
|
default y
|
|
|
|
config RFKILL_INPUT
|
|
bool "RF switch input support" if EXPERT
|
|
depends on RFKILL
|
|
depends on INPUT = y || RFKILL = INPUT
|
|
default y if !EXPERT
|
|
|
|
config RFKILL_GPIO
|
|
tristate "GPIO RFKILL driver"
|
|
depends on RFKILL
|
|
depends on GPIOLIB || COMPILE_TEST
|
|
default n
|
|
help
|
|
If you say yes here you get support of a generic gpio RFKILL
|
|
driver.
|
|
|
|
config RFKILL_RK
|
|
tristate "Rockchip RFKILL driver"
|
|
select INPUT
|
|
depends on RFKILL
|
|
depends on MMC
|
|
depends on ARCH_ROCKCHIP
|
|
default n
|
|
help
|
|
Rockchip rfkill driver for rk29/rk3X
|