Skip to contentSkip to conversation

board: freescale: p1_p2_rdb_pc: Enable TDM function only for P1010

PATCH New Pali Rohár 1 participant 1 message May 1, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: freescale: p1_p2_rdb_pc: Enable TDM function only for P1010

TDM function is supported only on P1010. P2020 does not have PMUXCR_TDM_ENA register, so do not enable it.

---
 board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 2 ++
 1 file changed, 2 insertions(+)
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c +2 -0
index e559a77b2dac..2e1aff59b15b 100644
@@ -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();
Signature · 1 line
2.20.1