diff options
author | Ilya Yanok <yanok@emcraft.com> | 2009-06-08 04:12:49 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-08-09 23:47:38 +0200 |
commit | ba3dbaf281130029ecb970a922551902c1d80b50 (patch) | |
tree | ca8741a8a948a84cb62ab86cfadabdcb26c99f7e /cpu/arm926ejs/mx27 | |
parent | 642d7b63c343633dcafc4e23a20e32604a05ff13 (diff) | |
download | u-boot-imx-ba3dbaf281130029ecb970a922551902c1d80b50.zip u-boot-imx-ba3dbaf281130029ecb970a922551902c1d80b50.tar.gz u-boot-imx-ba3dbaf281130029ecb970a922551902c1d80b50.tar.bz2 |
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 <yanok@emcraft.com>
Diffstat (limited to 'cpu/arm926ejs/mx27')
-rw-r--r-- | cpu/arm926ejs/mx27/generic.c | 16 |
1 files changed, 16 insertions, 0 deletions
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 <netdev.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> +#ifdef CONFIG_MXC_MMC +#include <asm/arch/mxcmmc.h> +#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; |