summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTrent Piepho <tpiepho@kymetacorp.com>2015-11-18 21:11:49 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2015-11-19 08:52:10 +0100
commit5537d653d2a7d742f29ba31a9c9932bbbe3e6774 (patch)
tree3c5bf849d24a245fe76ecb5c685886053feebee1 /arch
parente11f5908d73540005e1aca804c167dbbeb61a6a8 (diff)
downloadbarebox-5537d653d2a7d742f29ba31a9c9932bbbe3e6774.tar.gz
barebox-5537d653d2a7d742f29ba31a9c9932bbbe3e6774.tar.xz
mci: dw_mmc: socfpga: Supply bus-width in platform_data
Since there is no OF support in the xloader on socfpga it uses the platform_data system. There needs to be a way to supply the equivalent of the DT property bus-width this way to support devices that need to use a smaller bus. So that we don't need to put every flag that might get added to the MMC_CAP list into platform_data, just put the bus width ones into platform_data. The socfpga dts sources specify a bus-width of 4 so use that in the platform_data for socfpga. Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-socfpga/xload.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/xload.c b/arch/arm/mach-socfpga/xload.c
index 272896b6bd..cf05ff374b 100644
--- a/arch/arm/mach-socfpga/xload.c
+++ b/arch/arm/mach-socfpga/xload.c
@@ -10,6 +10,7 @@
#include <linux/sizes.h>
#include <fs.h>
#include <io.h>
+#include <mci.h>
#include <linux/clkdev.h>
#include <linux/stat.h>
@@ -33,6 +34,7 @@ enum socfpga_clks {
static struct clk *clks[clk_max];
static struct dw_mmc_platform_data mmc_pdata = {
+ .bus_width_caps = MMC_CAP_4_BIT_DATA,
.ciu_div = 3,
};