Commit 4520a2f2 authored by Priyanka Jain's avatar Priyanka Jain Committed by Pantelis Antoniou
Browse files

powerpc: mmc: Add corenet devices support in esdhc spl

Existing eSDHC SPL framework assumes booting from sd-image
with boot_format header which contains final u-boot Image
offset and size. No such header is present in case of
corenet devices like T1040 as corenet deivces use PBI-RCW
based intialization.

So, for corenet deives, SPL bootloader use values provided
at compilation time. These values can be defined in board
specific config file.
Signed-off-by: default avatarPriyanka Jain <>
Acked-by: default avatarPantelis Antoniou <>
parent 9108b315
......@@ -42,6 +42,10 @@ void __noreturn mmc_boot(void)
blklen = mmc->read_bl_len;
tmp_buf = malloc(blklen);
if (!tmp_buf) {
......@@ -91,6 +95,7 @@ void __noreturn mmc_boot(void)
* Load U-Boot image from mmc into RAM
blk_start = ALIGN(offset, mmc->read_bl_len) / mmc->read_bl_len;
blk_cnt = ALIGN(code_len, mmc->read_bl_len) / mmc->read_bl_len;
err = mmc->block_dev.block_read(0, blk_start, blk_cnt,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment