aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/30pin_con.h
blob: b356155780070163f1d2f8b67b1682dc38ddd62e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
 * Copyright (C) 2008 Samsung Electronics, Inc.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */

#ifndef __ASM_ARCH_ACC_CONN_H
#define __ASM_ARCH_ACC_CONN_H

#ifdef CONFIG_SEC_KEYBOARD_DOCK
struct sec_keyboard_callbacks {
	int (*check_keyboard_dock)(struct sec_keyboard_callbacks *cb,
		bool attached);
};

struct sec_keyboard_platform_data {
	int accessory_irq_gpio;
	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);
	void (*usb_ldo_en) (int active);
	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;
	int hdmi_hpd_gpio;
};

#if defined(CONFIG_STMPE811_ADC)
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
#endif