[U-Boot] [PATCH] AT91: Add SD/MMC controller support
Sami Kantoluoto
sami.kantoluoto at embedtronics.fi
Tue Sep 1 14:04:24 CEST 2009
On Tue, Sep 01, 2009 at 02:57:46PM +0300, Sami Kantoluoto wrote:
> On Tue, Sep 01, 2009 at 10:37:21AM +0200, Albin Tonnerre wrote:
> > This patch allows to use the atmel_mci SD/MMC driver on the at91 architecture.
> > It contains:
> > - initialization code for the MCI controller for all the supported AT91. It
> > allows the use of only one controller even if a SoC has two controllers
> > (anyway there's no support for it in atmel_mci as of now)
> > - the necessary get_mci_clk_rate function
> > - definition of MMCI_BASE for use in atmel_mci
> > - the cpu_mmc_init function. As of now this is not used, but will be required
> > when atmel_mci is ported to the new generic mmc API.
> >
> > Signed-off-by: Albin Tonnerre <albin.tonnerre at free-electrons.com>
> > ---
> > cpu/arm926ejs/at91/at91cap9_devices.c | 36 ++++++++++++++++++
> > cpu/arm926ejs/at91/at91sam9260_devices.c | 27 +++++++++++++
> > cpu/arm926ejs/at91/at91sam9261_devices.c | 18 +++++++++
> > cpu/arm926ejs/at91/at91sam9263_devices.c | 54 +++++++++++++++++++++++++++
> > cpu/arm926ejs/at91/at91sam9m10g45_devices.c | 54 +++++++++++++++++++++++++++
> > cpu/arm926ejs/at91/at91sam9rl_devices.c | 22 +++++++++++
> > cpu/arm926ejs/at91/cpu.c | 7 +++
> > include/asm-arm/arch-at91/at91_common.h | 2 +
> > include/asm-arm/arch-at91/clk.h | 5 ++
> > include/asm-arm/arch-at91/hardware.h | 18 +++++++++
> > include/asm-arm/arch-at91/memory-map.h | 1 +
> > 11 files changed, 244 insertions(+), 0 deletions(-)
>
> [snip]
>
> > diff --git a/cpu/arm926ejs/at91/at91sam9260_devices.c b/cpu/arm926ejs/at91/at91sam9260_devices.c
>
> For some reason this doesn't apply cleanly. I patched the file manually and
> it worked.
Ok, it's because of this hasn't been committed (at91sam9260_devices.c):
#if defined(CONFIG_HAS_DATAFLASH) || defined(CONFIG_ATMEL_SPI)
void at91_spi0_hw_init(unsigned long cs_mask)
{
Have you sent patch about this (CONFIG_ATMEL_SPI is not checked in committed
file)?
-sk
More information about the U-Boot
mailing list