blob: f15bfa3a47c9c49569a2fd149ea72766f1a0daed (
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
66
67
68
69
|
/*
* Copyright (C) 2011 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 _SII9234_H_
#define _SII9234_H_
#ifndef __MHL_NEW_CBUS_MSC_CMD__
#define __MHL_NEW_CBUS_MSC_CMD__
/*
* Read DCAP for distinguish TA and USB
*/
#endif
#ifdef __KERNEL__
struct sii9234_platform_data {
u8 power_state;
u8 swing_level;
int ddc_i2c_num;
void (*init)(void);
void (*mhl_sel)(bool enable);
void (*hw_onoff)(bool on);
void (*hw_reset)(void);
void (*enable_vbus)(bool enable);
#if defined(__MHL_NEW_CBUS_MSC_CMD__)
void (*vbus_present)(bool on, int value);
#else
void (*vbus_present)(bool on);
#endif
struct i2c_client *mhl_tx_client;
struct i2c_client *tpi_client;
struct i2c_client *hdmi_rx_client;
struct i2c_client *cbus_client;
#ifdef CONFIG_EXTCON
const char *extcon_name;
#endif
};
extern u8 mhl_onoff_ex(bool onoff);
#endif
#ifdef CONFIG_SAMSUNG_WORKAROUND_HPD_GLANCE
extern void mhl_hpd_handler(bool onoff);
#endif
#ifdef CONFIG_SAMSUNG_USE_11PIN_CONNECTOR
extern int max77693_muic_get_status1_adc1k_value(void);
#endif
#ifdef CONFIG_SAMSUNG_SMARTDOCK
extern int max77693_muic_get_status1_adc_value(void);
#endif
#ifdef CONFIG_MACH_MIDAS
extern void sii9234_wake_lock(void);
extern void sii9234_wake_unlock(void);
#endif
#endif /* _SII9234_H_ */
|