projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5ec1f56
)
dm: imx: cm_fx6: Add MMC support for CONFIG_BLK
author
Simon Glass
<sjg@chromium.org>
Sat, 29 Jul 2017 17:35:27 +0000
(11:35 -0600)
committer
Jaehoon Chung
<jh80.chung@samsung.com>
Thu, 17 Aug 2017 07:44:17 +0000
(16:44 +0900)
When CONFIG_BLK is enabled our weak board_mmc_init() will not be called.
Since there is no clock driver for MX6 yet, we must manually enable the
clocks.
Signed-off-by: Simon Glass <sjg@chromium.org>
board/compulab/cm_fx6/cm_fx6.c
patch
|
blob
|
history
diff --git
a/board/compulab/cm_fx6/cm_fx6.c
b/board/compulab/cm_fx6/cm_fx6.c
index ecefe394f1addf1bc9ba170a68d8f49a9e4e9ed9..ff3bab788945918ba836d6ce23d58e9f97cb3b8c 100644
(file)
--- a/
board/compulab/cm_fx6/cm_fx6.c
+++ b/
board/compulab/cm_fx6/cm_fx6.c
@@
-678,6
+678,17
@@
int board_init(void)
cm_fx6_setup_display();
cm_fx6_setup_display();
+ /* This should be done in the MMC driver when MX6 has a clock driver */
+#ifdef CONFIG_FSL_ESDHC
+ if (IS_ENABLED(CONFIG_BLK)) {
+ int i;
+
+ cm_fx6_set_usdhc_iomux();
+ for (i = 0; i < CONFIG_SYS_FSL_USDHC_NUM; i++)
+ enable_usdhc_clk(1, i);
+ }
+#endif
+
return 0;
}
return 0;
}