[U-Boot] [PATCH] AT91: Add SD/MMC controller support
Albin Tonnerre
albin.tonnerre at free-electrons.com
Tue Sep 1 14:13:33 CEST 2009
On Tue, Sep 01, 2009 at 03:04:24PM +0300, Sami Kantoluoto wrote :
> 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)
> {
Oh, sorry. Yes, that's part of both the TNY-A9G20 and SBC35-A9G20 boards support
patches, which are both still pending review/inclusion. Jean-Christophe: ping?
Regards,
--
Albin Tonnerre, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090901/57cf17c2/attachment.pgp
More information about the U-Boot
mailing list