diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2019-01-02 21:26:09 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-07 08:28:49 +0100 |
commit | 5feabc1e6737742f1cf6a1c41921f68b4dbb5c10 (patch) | |
tree | c8c1fffa82c6839a4a01c987bd146d8224fed5fa /arch/arm/mach-at91 | |
parent | 23ea88c5e5f47df6beedc8f80ce03703d134e4fa (diff) | |
download | barebox-5feabc1e6737742f1cf6a1c41921f68b4dbb5c10.tar.gz barebox-5feabc1e6737742f1cf6a1c41921f68b4dbb5c10.tar.xz |
arm: at91: fix clock to mci1 for at91sam9263
at91_add_device_mci() was missing configuration of PIOA6
when configuring mci1.
With this fix we can read data from SD card with at91sam9263ek,
when built without DT.
Building without a DT is required when we do a bootstrap build.
The other at91samxxx_devices was checked - only the 9263 was
missing the CLK configuration for mci1.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/at91sam9263_devices.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/at91sam9263_devices.c b/arch/arm/mach-at91/at91sam9263_devices.c index a67345f05d..c7e4962a93 100644 --- a/arch/arm/mach-at91/at91sam9263_devices.c +++ b/arch/arm/mach-at91/at91sam9263_devices.c @@ -396,6 +396,9 @@ void at91_add_device_mci(short mmc_id, struct atmel_mci_platform_data *data) } else { /* MCI1 */ start = AT91SAM9263_BASE_MCI1; + /* CLK */ + at91_set_A_periph(AT91_PIN_PA6, 0); + if (data->slot_b) { /* CMD */ at91_set_A_periph(AT91_PIN_PA21, 1); |