]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00213014-2 MX6x Sabreauto: IOMUX setting for HDMI HDCP function
authorSandor Yu <R01008@freescale.com>
Tue, 26 Jun 2012 09:42:55 +0000 (17:42 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:56 +0000 (08:34 +0200)
Added enable_pins/disable_pins functions for Mx6q/dl sabreauto HDMI.
Added HDMI DDC IOMUX setting.

Signed-off-by: Sandor Yu <R01008@freescale.com>
arch/arm/mach-mx6/board-mx6q_sabreauto.c
arch/arm/mach-mx6/board-mx6q_sabreauto.h
arch/arm/mach-mx6/board-mx6solo_sabreauto.h

index 85ee8ac963b0634d71dfcb3d368f8551aef0d667..f49e99a17c5b47b0c2e82b0b67e736e1a9ca218c 100644 (file)
@@ -912,8 +912,34 @@ static void hdmi_init(int ipu_id, int disp_id)
        mxc_iomux_set_gpr_register(3, 2, 2, hdmi_mux_setting);
 }
 
+/* On mx6x sabreauto board i2c2 iomux with hdmi ddc,
+ * the pins default work at i2c2 function,
+ when hdcp enable, the pins should work at ddc function */
+
+static void hdmi_enable_ddc_pin(void)
+{
+       if (cpu_is_mx6dl())
+               mxc_iomux_v3_setup_multiple_pads(mx6dl_sabreauto_hdmi_ddc_pads,
+                       ARRAY_SIZE(mx6dl_sabreauto_hdmi_ddc_pads));
+       else
+               mxc_iomux_v3_setup_multiple_pads(mx6q_sabreauto_hdmi_ddc_pads,
+                       ARRAY_SIZE(mx6q_sabreauto_hdmi_ddc_pads));
+}
+
+static void hdmi_disable_ddc_pin(void)
+{
+       if (cpu_is_mx6dl())
+               mxc_iomux_v3_setup_multiple_pads(mx6dl_sabreauto_i2c2_pads,
+                       ARRAY_SIZE(mx6dl_sabreauto_i2c2_pads));
+       else
+               mxc_iomux_v3_setup_multiple_pads(mx6q_sabreauto_i2c2_pads,
+                       ARRAY_SIZE(mx6q_sabreauto_i2c2_pads));
+}
+
 static struct fsl_mxc_hdmi_platform_data hdmi_data = {
        .init = hdmi_init,
+       .enable_pins = hdmi_enable_ddc_pin,
+       .disable_pins = hdmi_disable_ddc_pin,
 };
 
 static struct fsl_mxc_hdmi_core_platform_data hdmi_core_data = {
index f3763a0bf38b5926687ec374cb2f0759ab816130..e7f66e16516a7357fcb365d19256614c2cb6508d 100644 (file)
@@ -359,3 +359,13 @@ static iomux_v3_cfg_t mx6q_weimnor_pads[] __initdata = {
        MX6Q_PAD_EIM_DA1__WEIM_WEIM_DA_A_1,
        MX6Q_PAD_EIM_DA0__WEIM_WEIM_DA_A_0,
 };
+
+static iomux_v3_cfg_t mx6q_sabreauto_hdmi_ddc_pads[] = {
+       MX6Q_PAD_KEY_COL3__HDMI_TX_DDC_SCL, /* HDMI DDC SCL */
+       MX6Q_PAD_KEY_ROW3__HDMI_TX_DDC_SDA, /* HDMI DDC SDA */
+};
+
+static iomux_v3_cfg_t mx6q_sabreauto_i2c2_pads[] = {
+       MX6Q_PAD_KEY_COL3__I2C2_SCL,    /* I2C2 SCL */
+       MX6Q_PAD_KEY_ROW3__I2C2_SDA,    /* I2C2 SDA */
+};
index 3b2e247b37358aaf4eac9c9b5c010a8abc3fb18c..f51925bee9fa823c485396be9fd0e12e27bfe2be 100644 (file)
@@ -359,3 +359,13 @@ static iomux_v3_cfg_t mx6dl_weimnor_pads[] __initdata = {
        MX6DL_PAD_EIM_DA1__WEIM_WEIM_DA_A_1,
        MX6DL_PAD_EIM_DA0__WEIM_WEIM_DA_A_0,
 };
+
+static iomux_v3_cfg_t mx6dl_sabreauto_hdmi_ddc_pads[] = {
+       MX6DL_PAD_KEY_COL3__HDMI_TX_DDC_SCL, /* HDMI DDC SCL */
+       MX6DL_PAD_KEY_ROW3__HDMI_TX_DDC_SDA, /* HDMI DDC SDA */
+};
+
+static iomux_v3_cfg_t mx6dl_sabreauto_i2c2_pads[] = {
+       MX6DL_PAD_KEY_COL3__I2C2_SCL,   /* I2C2 SCL */
+       MX6DL_PAD_KEY_ROW3__I2C2_SDA,   /* I2C2 SDA */
+};