Lines Matching full:mmc

8 #include <mmc.h>
27 struct mmc *mmc = find_mmc_device(0); in mmc_spl_load_image() local
28 if (!mmc) { in mmc_spl_load_image()
29 puts("spl: mmc device not found!!\n"); in mmc_spl_load_image()
33 if (mmc_init(mmc)) { in mmc_spl_load_image()
34 puts("MMC init failed\n"); in mmc_spl_load_image()
38 blk_start = ALIGN(offs, mmc->read_bl_len) / mmc->read_bl_len; in mmc_spl_load_image()
39 blk_cnt = ALIGN(size, mmc->read_bl_len) / mmc->read_bl_len; in mmc_spl_load_image()
41 err = mmc->block_dev.block_read(&mmc->block_dev, blk_start, blk_cnt, in mmc_spl_load_image()
44 puts("spl: mmc read failed!!\n"); in mmc_spl_load_image()
50 * The main entry for mmc booting. It's necessary that SDRAM is already
52 * from mmc into SDRAM and starts it from there.
66 struct mmc *mmc; in mmc_boot() local
68 mmc = find_mmc_device(0); in mmc_boot()
69 if (!mmc) { in mmc_boot()
70 puts("spl: mmc device not found!!\n"); in mmc_boot()
78 blklen = mmc->read_bl_len; in mmc_boot()
89 err = mmc->block_dev.block_read(&mmc->block_dev, in mmc_boot()
92 puts("spl: mmc read failed!!\n"); in mmc_boot()
99 puts("spl: mmc signature is not valid!!\n"); in mmc_boot()
105 puts("spl: mmc signature is not valid!!\n"); in mmc_boot()
126 * Load U-Boot image from mmc into RAM in mmc_boot()
129 blk_start = ALIGN(offset, mmc->read_bl_len) / mmc->read_bl_len; in mmc_boot()
130 blk_cnt = ALIGN(code_len, mmc->read_bl_len) / mmc->read_bl_len; in mmc_boot()
131 err = mmc->block_dev.block_read(&mmc->block_dev, blk_start, blk_cnt, in mmc_boot()
134 puts("spl: mmc read failed!!\n"); in mmc_boot()