Héllo, On 10/07/2014 21:30, Vagrant Cascadian wrote: > On Thu, Jul 10, 2014 at 09:04:49AM +0200, drEagle wrote: >> My patch was taken by Debian (thanks for this) the only MMC enabled uboot >> for SheevaPlugs. >> >> Mainline u-boot had (again) change the initialization process for MMC [1] so >> I had made some quick revisions of the MVSDIO driver. >> >>>> I have a revised version of the Marvel Kirkwood MMC/SDIO, attached with >>>> this message. >>>> >>>> I'll give some tries on Sheevaplugs against u-boot.git from collab-maint >>>> as soon as possible. >>>> If anyone can verify and give some tests. >>>> >>>> Take care that this MMC driver is a completly rewrote code. >>> >>> I'll get some tests and will give antoher .diff updated. >> >> For now, here is a working version, quickly tested. [2] > > Thanks, that gets the sheevaplug target to build! > > openrd_ultimate still fails to build:
You need to add #define CONFIG_GENERIC_MMC inside the MMC block of the config file. Here is a compiling .diff for openrd Enjoy, G
diff --git a/board/Marvell/openrd/openrd.c b/board/Marvell/openrd/openrd.c index a005a2f..07a65d7 100644 --- a/board/Marvell/openrd/openrd.c +++ b/board/Marvell/openrd/openrd.c @@ -17,6 +17,9 @@ #include <asm/arch/kirkwood.h> #include <asm/arch/mpp.h> #include "openrd.h" +#ifdef CONFIG_MRVL_MMC +#include <mrvl_mmc.h> +#endif /* CONFIG_MRVL_MMC */ DECLARE_GLOBAL_DATA_PTR; @@ -159,3 +162,11 @@ void reset_phy(void) #endif } #endif /* CONFIG_RESET_PHY_R */ + +#ifdef CONFIG_MRVL_MMC +int board_mmc_init(bd_t *bis) +{ + mrvl_mmc_init(bis); + return 0; +} +#endif /* CONFIG_MRVL_MMC */ diff --git a/include/configs/openrd.h b/include/configs/openrd.h index 8fab6e6..c4249d2 100644 --- a/include/configs/openrd.h +++ b/include/configs/openrd.h @@ -49,6 +49,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 @@ -123,4 +124,11 @@ #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET #endif /*CONFIG_MVSATA_IDE*/ +#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 */ + #endif /* _CONFIG_OPENRD_BASE_H */
signature.asc
Description: OpenPGP digital signature