diff options
author | Marek Vasut <marex@denx.de> | 2015-08-03 16:31:51 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-08-08 12:14:25 (GMT) |
commit | 03439e4064a9aff6185d081540a97e7afc32ac31 (patch) | |
tree | 42f6c58587d8b0c55f6540cf3cab9324c4263ee5 /arch/arm/mach-socfpga/misc.c | |
parent | 3de9622e9741a98d40e19b384acd6bb4e49d1107 (diff) | |
download | u-boot-03439e4064a9aff6185d081540a97e7afc32ac31.tar.xz |
arm: socfpga: Add temporary workaround for missing SD/MMC patches
Add a small workaround into the platform code which forces the SDMMC
into 8-bit mode (the default configuration for all socfpga platforms)
to work around breakage caused by missing patches in mainline which
switch the probing of SD/MMC to OF instead of static configuraiton.
The patches will hit mainline after the SPL series, so to avoid build
issues, add this small temporary workaround.
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'arch/arm/mach-socfpga/misc.c')
-rw-r--r-- | arch/arm/mach-socfpga/misc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/misc.c b/arch/arm/mach-socfpga/misc.c index 002e340..f617e88 100644 --- a/arch/arm/mach-socfpga/misc.c +++ b/arch/arm/mach-socfpga/misc.c @@ -123,6 +123,12 @@ int cpu_eth_init(bd_t *bis) */ int cpu_mmc_init(bd_t *bis) { +/* + * FIXME: Temporarily define CONFIG_HPS_SDMMC_BUSWIDTH to prevent breakage + * due to missing patches in u-boot/master . The upcoming patch will + * switch this to OF probing, so this whole block will go away. + */ +#define CONFIG_HPS_SDMMC_BUSWIDTH 8 return socfpga_dwmmc_init(SOCFPGA_SDMMC_ADDRESS, CONFIG_HPS_SDMMC_BUSWIDTH, 0); } |