summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorWu, Josh <Josh.wu@atmel.com>2013-03-28 20:28:41 +0000
committerAndreas Bießmann <andreas.devel@googlemail.com>2013-05-12 16:42:24 +0200
commita73267a7ce8adea9d062a58db896ca4275333c68 (patch)
treeb56b06686790313e55ed7cabc8f659ba2427989a /arch/arm
parent9e336903891f1c28be04f0b5503ca54939b2976a (diff)
downloadu-boot-imx-a73267a7ce8adea9d062a58db896ca4275333c68.zip
u-boot-imx-a73267a7ce8adea9d062a58db896ca4275333c68.tar.gz
u-boot-imx-a73267a7ce8adea9d062a58db896ca4275333c68.tar.bz2
arm: at91: enable mci support for at91sam9g20ek.
Signed-off-by: Josh Wu <josh.wu@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
index 19ec615..5e995e1 100644
--- a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
+++ b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
@@ -203,6 +203,10 @@ void at91_macb_hw_init(void)
#if defined(CONFIG_GENERIC_ATMEL_MCI)
void at91_mci_hw_init(void)
{
+ /* Enable mci clock */
+ struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
+ writel(1 << ATMEL_ID_MCI, &pmc->pcer);
+
at91_set_a_periph(AT91_PIO_PORTA, 8, 1); /* MCCK */
#if defined(CONFIG_ATMEL_MCI_PORTB)
at91_set_b_periph(AT91_PIO_PORTA, 1, 1); /* MCCDB */