summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSungjun Park <sjpark@codeaurora.org>2016-06-15 14:40:56 -0700
committerKyle Yan <kyan@codeaurora.org>2016-07-05 15:28:53 -0700
commitd17e102e1d043393388d4a2cbe56280717623882 (patch)
tree99bd57764ed5364001b2f8d88eb28ffec7280146 /include/linux
parentc0494b3e298787547e4d0bad41bcd91802a91baa (diff)
bluetooth: Add support for clocks
On some platforms, clock needs to be controlled by Bluetooth driver. Add support for that by obtaining it through a device tree property and use it for voting when required. Change-Id: I42a16f6dc8d5c11963713ae489ca6d8c9bf927e5 Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/bluetooth-power.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/bluetooth-power.h b/include/linux/bluetooth-power.h
index d2dfc1477c9d..7be94d298b88 100644
--- a/include/linux/bluetooth-power.h
+++ b/include/linux/bluetooth-power.h
@@ -44,6 +44,15 @@ struct bt_power_vreg_data {
bool is_enabled;
};
+struct bt_power_clk_data {
+ /* clock regulator handle */
+ struct clk *clk;
+ /* clock name */
+ const char *name;
+ /* is this clock enabled? */
+ bool is_enabled;
+};
+
/*
* Platform data for the bluetooth power driver.
*/
@@ -67,6 +76,8 @@ struct bluetooth_power_platform_data {
* shares a common gpio to bring chip out of reset.
*/
struct bt_power_vreg_data *bt_chip_pwd;
+ /* bluetooth reference clock */
+ struct bt_power_clk_data *bt_chip_clk;
/* Optional: Bluetooth power setup function */
int (*bt_power_setup)(int);
};