summaryrefslogtreecommitdiffstats
path: root/libbt/src/hardware.c
diff options
context:
space:
mode:
authorYK Jeffrey Chao <jechao@broadcom.com>2012-10-17 21:31:07 -0700
committerMatthew Xie <mattx@google.com>2012-10-22 23:59:52 -0700
commit105961ebfd8349e3789d23086b84640b5100e43e (patch)
tree3fac87d6a638e786b95b21e387e9e599a638b865 /libbt/src/hardware.c
parent5bbc94767d1a11f8b3b1ffeaddf98f91ee38bc04 (diff)
downloaddevice_common-105961ebfd8349e3789d23086b84640b5100e43e.zip
device_common-105961ebfd8349e3789d23086b84640b5100e43e.tar.gz
device_common-105961ebfd8349e3789d23086b84640b5100e43e.tar.bz2
Add new user-to-kernel interface for Bluetooth low power mode control (1/2)
The bluesleep kernel module was used in Tegra3 platform to perform Bluetooth low power wakelock and interrup control. Add new user-to-kernel interface through proc fs nodes for Bluedroid to feed bluesleep with the HCI_DEV events which bluesleep was monitoring on. bug 7347413 Change-Id: I791be1042d5573e5207aa81e3d59fa418134f9fe Conflicts: libbt/include/vnd_manta.txt
Diffstat (limited to 'libbt/src/hardware.c')
-rw-r--r--libbt/src/hardware.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbt/src/hardware.c b/libbt/src/hardware.c
index 397507d..45008ef 100644
--- a/libbt/src/hardware.c
+++ b/libbt/src/hardware.c
@@ -1045,10 +1045,12 @@ uint8_t hw_lpm_enable(uint8_t turn_on)
if (turn_on)
{
memcpy(p, &lpm_param, LPM_CMD_PARAM_SIZE);
+ upio_set(UPIO_LPM_MODE, UPIO_ASSERT, 0);
}
else
{
memset(p, 0, LPM_CMD_PARAM_SIZE);
+ upio_set(UPIO_LPM_MODE, UPIO_DEASSERT, 0);
}
if ((ret = bt_vendor_cbacks->xmit_cb(HCI_VSC_WRITE_SLEEP_MODE, p_buf, \