diff options
author | Tom Rini <trini@ti.com> | 2012-10-26 15:44:31 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-10-26 15:44:31 -0700 |
commit | 5bb3505fa867ded03cbee83f7722ab5182930637 (patch) | |
tree | 1830ce86f88d280eb1a004d3f954f684c548cdce /arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c | |
parent | 8440f18a4818d52ba51bb9f0b07ce6439f1b6a57 (diff) | |
parent | b68d6712c379735e886ef9c01b946bc36f295273 (diff) | |
download | u-boot-imx-5bb3505fa867ded03cbee83f7722ab5182930637.zip u-boot-imx-5bb3505fa867ded03cbee83f7722ab5182930637.tar.gz u-boot-imx-5bb3505fa867ded03cbee83f7722ab5182930637.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-arm
Diffstat (limited to 'arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c')
-rw-r--r-- | arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c b/arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c index 6d77219..9348552 100644 --- a/arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c +++ b/arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c @@ -118,6 +118,21 @@ void at91_serial2_hw_init(void) writel(1 << ATMEL_ID_USART2, &pmc->pcer); } +void at91_mci_hw_init(void) +{ + /* Initialize the MCI0 */ + at91_set_a_periph(AT91_PIO_PORTA, 17, 1); /* MCCK */ + at91_set_a_periph(AT91_PIO_PORTA, 16, 1); /* MCCDA */ + at91_set_a_periph(AT91_PIO_PORTA, 15, 1); /* MCDA0 */ + at91_set_a_periph(AT91_PIO_PORTA, 18, 1); /* MCDA1 */ + at91_set_a_periph(AT91_PIO_PORTA, 19, 1); /* MCDA2 */ + at91_set_a_periph(AT91_PIO_PORTA, 20, 1); /* MCDA3 */ + + /* Enable clock for MCI0 */ + struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; + writel(1 << ATMEL_ID_HSMCI0, &pmc->pcer); +} + #ifdef CONFIG_ATMEL_SPI void at91_spi0_hw_init(unsigned long cs_mask) { |