]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv8: ls1028ardb: enable DisplayPort Power support
authorWen He <wen.he_1@nxp.com>
Mon, 18 Nov 2019 05:26:09 +0000 (13:26 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 26 Dec 2019 10:30:20 +0000 (16:00 +0530)
Enable DP_PWR signal to power the DP to HDMI converter cable.

Signed-off-by: Wen He <wen.he_1@nxp.com>
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/ls1028a/ls1028a.c
include/configs/ls1028a_common.h

index a9606b88655a4bacd46b41d85d6033942dbadb38..1151e775314db1a8420a1d977c12f69dd32e3959 100644 (file)
@@ -86,7 +86,19 @@ int board_init(void)
        if (!i2c_get_chip_for_busnum(0, I2C_MUX_PCA_ADDR_PRI, 1, &dev))
                dm_i2c_write(dev, 0x0b, &val, 1);
 #endif
+#endif
 
+#if defined(CONFIG_TARGET_LS1028ARDB)
+       u8 reg;
+
+       reg = QIXIS_READ(brdcfg[4]);
+       /*
+        * Field | Function
+        * 3     | DisplayPort Power Enable (net DP_PWR_EN):
+        * DPPWR | 0= DP_PWR is enabled.
+        */
+       reg &= ~(DP_PWD_EN_DEFAULT_MASK);
+       QIXIS_WRITE(brdcfg[4], reg);
 #endif
        return 0;
 }
index 4bd510d42eb0145715cf4da606167932f1ed3264..05b8cf00ee1f7eb7fb33c6b3835183be9c9e2768 100644 (file)
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  5
 
+/* DisplayPort */
+#define DP_PWD_EN_DEFAULT_MASK          0x8
+
 #ifdef CONFIG_NXP_ESBC
 #include <asm/fsl_secure_boot.h>
 #endif