diff options
author | codeworkx <daniel.hillenbrand@codeworkx.de> | 2012-06-02 13:09:29 +0200 |
---|---|---|
committer | codeworkx <daniel.hillenbrand@codeworkx.de> | 2012-06-02 13:09:29 +0200 |
commit | c6da2cfeb05178a11c6d062a06f8078150ee492f (patch) | |
tree | f3b4021d252c52d6463a9b3c1bb7245e399b009c /include/linux/sii9234.h | |
parent | c6d7c4dbff353eac7919342ae6b3299a378160a6 (diff) | |
download | kernel_samsung_smdk4412-c6da2cfeb05178a11c6d062a06f8078150ee492f.zip kernel_samsung_smdk4412-c6da2cfeb05178a11c6d062a06f8078150ee492f.tar.gz kernel_samsung_smdk4412-c6da2cfeb05178a11c6d062a06f8078150ee492f.tar.bz2 |
samsung update 1
Diffstat (limited to 'include/linux/sii9234.h')
-rwxr-xr-x | include/linux/sii9234.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/include/linux/sii9234.h b/include/linux/sii9234.h new file mode 100755 index 0000000..f15bfa3 --- /dev/null +++ b/include/linux/sii9234.h @@ -0,0 +1,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_ */ |