diff options
author | Pali Rohár <pali@kernel.org> | 2022-05-01 14:20:48 +0200 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2022-06-20 09:18:26 +0800 |
commit | ae0e7ee88658bf9226a29453664e7b5c26d2c0a0 (patch) | |
tree | b00432cd06ae6e63437deefbacd84fc8c1b4aa38 /board/freescale | |
parent | 549bb6b2376b81f30b9492afeff5d6cdf7523eeb (diff) | |
download | u-boot-ae0e7ee88658bf9226a29453664e7b5c26d2c0a0.zip u-boot-ae0e7ee88658bf9226a29453664e7b5c26d2c0a0.tar.gz u-boot-ae0e7ee88658bf9226a29453664e7b5c26d2c0a0.tar.bz2 |
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.
Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c index 6665aa4..fc676eb 100644 --- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c +++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c @@ -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(); |