summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2013-04-19 03:41:58 +0000
committerStefano Babic <sbabic@denx.de>2013-04-25 21:32:45 +0200
commitf07e286c7cf877f83de4889f6df0e24c0a481bc6 (patch)
tree9c11dc53b47880cbbf3936a43014d634b41fef90 /board/freescale
parent810d6df0e26399a2971b775836d8ed579e548764 (diff)
downloadu-boot-imx-f07e286c7cf877f83de4889f6df0e24c0a481bc6.zip
u-boot-imx-f07e286c7cf877f83de4889f6df0e24c0a481bc6.tar.gz
u-boot-imx-f07e286c7cf877f83de4889f6df0e24c0a481bc6.tar.bz2
mx6qsabresd: Return status when initializing MMC
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/mx6qsabresd/mx6qsabresd.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/board/freescale/mx6qsabresd/mx6qsabresd.c b/board/freescale/mx6qsabresd/mx6qsabresd.c
index 0d7cb9e..bf9beef 100644
--- a/board/freescale/mx6qsabresd/mx6qsabresd.c
+++ b/board/freescale/mx6qsabresd/mx6qsabresd.c
@@ -166,6 +166,7 @@ int board_mmc_getcd(struct mmc *mmc)
int board_mmc_init(bd_t *bis)
{
+ s32 status = 0;
int i;
/*
@@ -196,15 +197,15 @@ int board_mmc_init(bd_t *bis)
break;
default:
printf("Warning: you configured more USDHC controllers"
- "(%d) than supported by the board\n", i + 1);
- return 0;
- }
+ "(%d) then supported by the board (%d)\n",
+ i + 1, CONFIG_SYS_FSL_USDHC_NUM);
+ return status;
+ }
- if (fsl_esdhc_initialize(bis, &usdhc_cfg[i]))
- printf("Warning: failed to initialize mmc dev %d\n", i);
+ status |= fsl_esdhc_initialize(bis, &usdhc_cfg[i]);
}
- return 0;
+ return status;
}
#endif