From ba3dbaf281130029ecb970a922551902c1d80b50 Mon Sep 17 00:00:00 2001 From: Ilya Yanok Date: Mon, 8 Jun 2009 04:12:49 +0400 Subject: mxc-mmc: sdhc host driver for MX2 and MX3 proccessor This is a port of Linux driver for SDHC host controller hardware found on Freescale's MX2 and MX3 processors. Uses new generic MMC framework (CONFIG_GENERIC_MMC) and it looks like there are some problems with a framework (at least on LE cpus). Some of these problems are addressed in the following patches. Signed-off-by: Ilya Yanok --- cpu/arm926ejs/mx27/generic.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'cpu/arm926ejs') diff --git a/cpu/arm926ejs/mx27/generic.c b/cpu/arm926ejs/mx27/generic.c index 47fa4b4..9b4ff02 100644 --- a/cpu/arm926ejs/mx27/generic.c +++ b/cpu/arm926ejs/mx27/generic.c @@ -23,6 +23,9 @@ #include #include #include +#ifdef CONFIG_MXC_MMC +#include +#endif /* * get the system pll clock in Hz @@ -169,6 +172,19 @@ int cpu_eth_init(bd_t *bis) #endif } +/* + * Initializes on-chip MMC controllers. + * to override, implement board_mmc_init() + */ +int cpu_mmc_init(bd_t *bis) +{ +#ifdef CONFIG_MXC_MMC + return mxc_mmc_init(bis); +#else + return 0; +#endif +} + void imx_gpio_mode(int gpio_mode) { struct gpio_regs *regs = (struct gpio_regs *)IMX_GPIO_BASE; -- cgit v1.1