aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/30pin_con.h
blob: 9e3a4c136f9d234e132145585e5a82c1664a4b14 (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
/*
 * 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);
	void (*register_cb)(struct sec_keyboard_callbacks *cb);
};
#endif

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);
	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_SAMSUNG_MHL_9290
int acc_register_notifier(struct notifier_block *nb);
#endif
#endif