mirror of
https://xff.cz/git/u-boot/
synced 2025-10-02 16:01:30 +02:00
board: freescale: p1_p2_rdb_pc: Do not set MPC85xx_PMUXCR_SDHC_WP bit when SDHC_WP is used as GPIO
When MPC85xx_PMUXCR_SDHC_WP is set then SDHC controller automatically makes inserted SD card readonly if GPIO[9] is active. In some design GPIO[9] pin does not have to be connected to SD card write-protect pin and can be used as GPIO. So do not set MPC85xx_PMUXCR_SDHC_WP bit when GPIO[9] is not used for SDHC_WP functionality. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
committed by
Priyanka Jain
parent
4aceaec585
commit
0992c2be77
@@ -147,8 +147,10 @@ int board_early_init_f(void)
|
||||
{
|
||||
ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
|
||||
|
||||
setbits_be32(&gur->pmuxcr,
|
||||
(MPC85xx_PMUXCR_SDHC_CD | MPC85xx_PMUXCR_SDHC_WP));
|
||||
setbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_SDHC_CD);
|
||||
#ifndef SDHC_WP_IS_GPIO
|
||||
setbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_SDHC_WP);
|
||||
#endif
|
||||
clrbits_be32(&gur->sdhcdcr, SDHCDCR_CD_INV);
|
||||
|
||||
clrbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_SD_DATA);
|
||||
|
Reference in New Issue
Block a user