From 272cc70b211e945e4413122aa73868f6ada732a5 Mon Sep 17 00:00:00 2001 From: Andy Fleming Date: Thu, 30 Oct 2008 16:41:01 -0500 Subject: Add MMC Framework Here's a new framework (based roughly off the linux one) for managing MMC controllers. It handles all of the standard SD/MMC transactions, leaving the host drivers to implement only what is necessary to deal with their specific hardware. This also hooks the infrastructure into the PowerPC board code (similar to how the ethernet infrastructure now hooks in) Some of this code was contributed by Dave Liu Signed-off-by: Andy Fleming --- lib_ppc/board.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib_ppc') diff --git a/lib_ppc/board.c b/lib_ppc/board.c index d90607d02..3bcfb4531 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -48,6 +48,9 @@ #include #endif #include +#ifdef CONFIG_GENERIC_MMC +#include +#endif #include #ifdef CONFIG_SYS_ALLOC_DPRAM #if !defined(CONFIG_CPM2) @@ -1075,6 +1078,12 @@ void board_init_r (gd_t *id, ulong dest_addr) scsi_init (); #endif +#ifdef CONFIG_GENERIC_MMC + WATCHDOG_RESET (); + puts ("MMC: "); + mmc_initialize (bd); +#endif + #if defined(CONFIG_CMD_DOC) WATCHDOG_RESET (); puts ("DOC: "); -- cgit v1.2.3