bluetooth: rfkill-bt: enalbe 32K for ap6356
[firefly-linux-kernel-4.4.55.git] / include / linux / rfkill-bt.h
index de81161ff3a14aa2f332276cd9619ee2b10e7cf7..c4174b15658004f2398f9d3f62f40d72a8cd4ae4 100755 (executable)
@@ -22,6 +22,7 @@
 
 #include <linux/types.h>
 #include <linux/rfkill.h>
+#include <linux/clk.h>
 
 #define RFKILL_RK_GPIO_NAME_SIZE   64
 
@@ -56,13 +57,17 @@ struct rfkill_rk_irq {
 struct rfkill_rk_platform_data {
     char                    *name;
     enum rfkill_type        type;
+    bool                    power_toggle;
     struct pinctrl          *pinctrl;
     struct rfkill_rk_gpio   poweron_gpio;
     struct rfkill_rk_gpio   reset_gpio;
     struct rfkill_rk_gpio   wake_gpio;      // Host wake or sleep BT
     struct rfkill_rk_irq    wake_host_irq;  // BT wakeup host
     struct rfkill_rk_gpio   rts_gpio;
+    struct clk              *ext_clk;
 };
 
+int rfkill_get_bt_power_state(int *power, bool *toggle);
+
 #endif /* __RFKILL_GPIO_H */