> -----Original Message----- > From: u-boot-boun...@lists.denx.de [mailto:u-boot- > boun...@lists.denx.de] On Behalf Of DrEagle > Sent: 22 September 2012 12:47 > To: DrEagle > Cc: Lior Amsalem; u-boot@lists.denx.de; ub...@doukki.net > Subject: [U-Boot] [PATCH v2 3/5] Add SDIO/MMC support for Sheevaplug > board > > > Add SDIO/MMC support for Sheevaplug board > > Signed-off-by: drEagle <drea...@doukki.net> > --- > board/Marvell/sheevaplug/sheevaplug.c | 11 +++++++++++ > include/configs/sheevaplug.h | 12 ++++++++++++ > 2 files changed, 23 insertions(+) > > diff --git a/board/Marvell/sheevaplug/sheevaplug.c > b/board/Marvell/sheevaplug/sheevaplug.c > index 688d308..db64a05 100644 > --- a/board/Marvell/sheevaplug/sheevaplug.c > +++ b/board/Marvell/sheevaplug/sheevaplug.c > @@ -28,6 +28,9 @@ > #include <asm/arch/kirkwood.h> > #include <asm/arch/mpp.h> > #include "sheevaplug.h" > +#ifdef CONFIG_MRVL_MMC > +#include <mrvl_mmc.h> > +#endif /* CONFIG_MRVL_MMC */ > > DECLARE_GLOBAL_DATA_PTR; > > @@ -147,3 +150,11 @@ void reset_phy(void) > printf("88E1116 Initialized on %s\n", name); > } > #endif /* CONFIG_RESET_PHY_R */ > + > +#ifdef CONFIG_MRVL_MMC > +int board_mmc_init(bd_t *bis) > +{ > + mrvl_mmc_initialize(bis); > + return 0; > +} > +#endif /* CONFIG_MRVL_MMC */ > diff --git a/include/configs/sheevaplug.h > b/include/configs/sheevaplug.h > index 83dd8ff..7d710bf 100644 > --- a/include/configs/sheevaplug.h > +++ b/include/configs/sheevaplug.h > @@ -47,6 +47,7 @@ > #define CONFIG_CMD_DHCP > #define CONFIG_CMD_ENV > #define CONFIG_CMD_MII > +#define CONFIG_CMD_MMC > #define CONFIG_CMD_NAND > #define CONFIG_CMD_PING > #define CONFIG_CMD_USB > @@ -98,6 +99,17 @@ > #endif /* CONFIG_CMD_NET */ > > /* > + * SDIO/MMC Card Configuration > + */ > +#ifdef CONFIG_CMD_MMC > +#define CONFIG_MMC > +#define CONFIG_GENERIC_MMC > +#define CONFIG_MRVL_MMC > +#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE > +#endif /* CONFIG_CMD_MMC */
This should go in mv-common.h so that it can be shared across multiple boards Regards... Prafulla . . . > + > + > +/* > * File system > */ > #define CONFIG_CMD_EXT2 > -- > 1.7.10.4 > > _______________________________________________ > U-Boot mailing list > U-Boot@lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot