]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: freescale: p1_p2_rdb_pc: Enable TDM function only for P1010
authorPali Rohár <pali@kernel.org>
Sun, 1 May 2022 12:20:48 +0000 (14:20 +0200)
committerPeng Fan <peng.fan@nxp.com>
Mon, 20 Jun 2022 01:18:26 +0000 (09:18 +0800)
TDM function is supported only on P1010. P2020 does not have PMUXCR_TDM_ENA
register, so do not enable it.

Signed-off-by: Pali Rohár <pali@kernel.org>
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c

index 6665aa4ba94e8c5c6e07820a82e816b46a435b8b..fc676eb31fe5afe0dd1b5c2f67b85b22a9b294b4 100644 (file)
@@ -154,7 +154,9 @@ int board_early_init_f(void)
        clrbits_be32(&gur->sdhcdcr, SDHCDCR_CD_INV);
 
        clrbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_SD_DATA);
+#if defined(CONFIG_TARGET_P1020RDB_PD) || defined(CONFIG_TARGET_P1020RDB_PC)
        setbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_TDM_ENA);
+#endif
 
        board_gpio_init();
        board_cpld_init();