mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-03 19:33:20 +09:00
mx35: Add cpu_mmc_init()
Add cpu_mmc_init() function to make it easy to init a single eSDHC instance. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Cc: Stefano Babic <sbabic@denx.de> Acked-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
ecb0f31755
commit
09bc3d04d9
@ -30,6 +30,9 @@
|
|||||||
#include <asm/arch/crm_regs.h>
|
#include <asm/arch/crm_regs.h>
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
|
#ifdef CONFIG_FSL_ESDHC
|
||||||
|
#include <fsl_esdhc.h>
|
||||||
|
#endif
|
||||||
#include <netdev.h>
|
#include <netdev.h>
|
||||||
|
|
||||||
#define CLK_CODE(arm, ahb, sel) (((arm) << 16) + ((ahb) << 8) + (sel))
|
#define CLK_CODE(arm, ahb, sel) (((arm) << 16) + ((ahb) << 8) + (sel))
|
||||||
@ -463,7 +466,6 @@ int print_cpuinfo(void)
|
|||||||
* Initializes on-chip ethernet controllers.
|
* Initializes on-chip ethernet controllers.
|
||||||
* to override, implement board_eth_init()
|
* to override, implement board_eth_init()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int cpu_eth_init(bd_t *bis)
|
int cpu_eth_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
int rc = -ENODEV;
|
int rc = -ENODEV;
|
||||||
@ -475,6 +477,17 @@ int cpu_eth_init(bd_t *bis)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_FSL_ESDHC
|
||||||
|
/*
|
||||||
|
* Initializes on-chip MMC controllers.
|
||||||
|
* to override, implement board_mmc_init()
|
||||||
|
*/
|
||||||
|
int cpu_mmc_init(bd_t *bis)
|
||||||
|
{
|
||||||
|
return fsl_esdhc_mmc_init(bis);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int get_clocks(void)
|
int get_clocks(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_FSL_ESDHC
|
#ifdef CONFIG_FSL_ESDHC
|
||||||
|
Loading…
Reference in New Issue
Block a user