aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/samsung/tvout/hw_if/hw_if.h
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.com>2012-09-17 17:53:57 +0200
committercodeworkx <codeworkx@cyanogenmod.com>2012-09-18 16:31:59 +0200
commitc28265764ec6ad9995eb0c761a376ffc9f141fcd (patch)
tree3ad899757480d47deb2be6011509a4243e8e0dc2 /drivers/media/video/samsung/tvout/hw_if/hw_if.h
parent0ddbcb39c0dc0318f68d858f25a96a074142af2f (diff)
downloadkernel_samsung_smdk4412-c28265764ec6ad9995eb0c761a376ffc9f141fcd.zip
kernel_samsung_smdk4412-c28265764ec6ad9995eb0c761a376ffc9f141fcd.tar.gz
kernel_samsung_smdk4412-c28265764ec6ad9995eb0c761a376ffc9f141fcd.tar.bz2
applied patches from i9305 jb sources, updated mali to r3p0
Change-Id: Iec4bc4e2fb59e2cf5b4d25568a644d4e3719565e
Diffstat (limited to 'drivers/media/video/samsung/tvout/hw_if/hw_if.h')
-rw-r--r--drivers/media/video/samsung/tvout/hw_if/hw_if.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/media/video/samsung/tvout/hw_if/hw_if.h b/drivers/media/video/samsung/tvout/hw_if/hw_if.h
index 11bda99..e437b0a 100644
--- a/drivers/media/video/samsung/tvout/hw_if/hw_if.h
+++ b/drivers/media/video/samsung/tvout/hw_if/hw_if.h
@@ -364,6 +364,27 @@ struct s5p_hdmi_v_format {
u8 mhl_vsync;
};
+#ifdef CONFIG_HDMI_TX_STRENGTH
+#define HDMI_PHY_I2C_REG10 0x10
+#define HDMI_PHY_I2C_REG0F 0x0F
+#define HDMI_PHY_I2C_REG04 0x04
+#define HDMI_PHY_I2C_REG13 0x13
+#define HDMI_PHY_I2C_REG17 0x17
+
+#define TX_EMP_LVL 0x10
+#define TX_AMP_LVL 0x08
+#define TX_LVL_CH0 0x04
+#define TX_LVL_CH1 0x02
+#define TX_LVL_CH2 0x01
+
+#define TX_EMP_LVL_VAL 0
+#define TX_AMP_LVL_VAL 1
+#define TX_LVL_CH0_VAL 2
+#define TX_LVL_CH1_VAL 3
+#define TX_LVL_CH2_VAL 4
+
+extern int s5p_hdmi_phy_set_tx_strength(u8 ch, u8 *value);
+#endif
extern int s5p_hdmi_phy_power(bool on);
extern s32 s5p_hdmi_phy_config(
enum phy_freq freq, enum s5p_hdmi_color_depth cd);
@@ -750,6 +771,7 @@ extern int s5p_hdcp_encrypt_stop(bool on);
extern int __init s5p_hdcp_init(void);
extern int s5p_hdcp_start(void);
extern int s5p_hdcp_stop(void);
+extern void s5p_hdcp_flush_work(void);
/****************************************
* Definitions for sdo ctrl class
@@ -1000,6 +1022,10 @@ struct s5p_tvif_ctrl_private_data {
struct device *bus_dev; /* for BusFreq with Opp */
#endif
struct device *dev; /* hpd device pointer */
+#ifdef CONFIG_HDMI_TX_STRENGTH
+ u8 tx_ch;
+ u8 *tx_val;
+#endif
};
#endif /* _SAMSUNG_TVOUT_HW_IF_H_ */