From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sami Kantoluoto Date: Tue, 1 Sep 2009 15:04:24 +0300 Subject: [U-Boot] [PATCH] AT91: Add SD/MMC controller support In-Reply-To: <20090901115746.GM16004@embedtronics.fi> References: <1251794241-13397-1-git-send-email-albin.tonnerre@free-electrons.com> <20090901115746.GM16004@embedtronics.fi> Message-ID: <20090901120424.GN16004@embedtronics.fi> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > > --- > > 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