aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/30pin_con.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/30pin_con.h')
-rw-r--r--include/linux/30pin_con.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/30pin_con.h b/include/linux/30pin_con.h
index 9e3a4c1..b356155 100644
--- a/include/linux/30pin_con.h
+++ b/include/linux/30pin_con.h
@@ -26,10 +26,16 @@ struct sec_keyboard_platform_data {
int (*wakeup_key)(void);
void (*check_uart_path)(bool en);
void (*acc_power)(u8 token, bool active);
+ int (*noti_univ_kbd_dock)(unsigned int code);
void (*register_cb)(struct sec_keyboard_callbacks *cb);
};
#endif
+struct sec_30pin_callbacks {
+ int (*noti_univ_kdb_dock)(struct sec_30pin_callbacks *cb,
+ unsigned int code);
+};
+
struct acc_con_platform_data {
void (*otg_en) (int active);
void (*acc_power) (u8 token, bool active);
@@ -37,6 +43,7 @@ struct acc_con_platform_data {
int (*get_acc_state)(void);
int (*get_dock_state)(void);
int (*check_keyboard)(bool attached);
+ void (*register_cb)(struct sec_30pin_callbacks *cb);
int accessory_irq_gpio;
int dock_irq_gpio;
int mhl_irq_gpio;
@@ -48,6 +55,10 @@ u16 stmpe811_get_adc_data(u8 channel);
#endif
extern struct device *sec_switch_dev;
+#ifdef CONFIG_MACH_P4NOTE
+extern void host_notifier_enable_irq(void);
+extern void host_notifier_disable_irq(void);
+#endif
#ifdef CONFIG_SAMSUNG_MHL_9290
int acc_register_notifier(struct notifier_block *nb);
#endif