需要修改的内容:
1./include/configs/smdk6410.h
增加:
#define CONFIG_GENERIC_MMC1
#define CONFIG_MMC1
#define CONFIG_S3C64X0_MMC1
#define CONFIG_CMD_MMC/* MMC support*/
2./board/samsuang/smdk6410/smdk6410.c
增加:
#ifdef CONFIG_GENERIC_MMC
int board_mmc_init(bd_t *bis)
{
return s3c64x0_mmc_init(0);
}
#endif
3./drivers/mmc/makefile
增加:
COBJS-$(CONFIG_S3C64X0_MMC) = s3c64x0_mmc.o
4./arch/arm/asm/arch_s3c64xx/s3c64x0.h
增加:
//zxd -->
struct s3c64x0_mmc {
unsigned intsysad;
unsigned shortblksize;
unsigned shortblkcnt;
unsigned intargument;
unsigned shorttrnmod;
unsigned shortcmdreg;
unsigned intrspreg0;
unsigned intrspreg1;
unsigned intrspreg2;