summaryrefslogtreecommitdiff
path: root/drivers/firmware/psci.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2024-05-10 00:13:16 +0100
committerAndre Przywara <andre.przywara@arm.com>2024-07-15 22:18:16 +0100
commita7766911bc2fc40df351564d71e6b93999c97b03 (patch)
tree7380e0a581f7af0d40b4ea8a2dd5a2ddb5a3e8cf /drivers/firmware/psci.c
parent41b766eb0b4f1b0bd7ead609fde88bc7753b8cab (diff)
sunxi: spl: h616: fix booting from high MMC offset
The BootROM in the Allwinner H616 tries to load the initial boot code from sector 16 (8KB) of an SD card or eMMC device, but also looks at sector 512 (256KB). This helps with GPT formatted cards. A "high" boot offset is also used on previous SoCs, but it's sector 256 (128KB) there instead. Extend the existing offset calculation code to consider the different sector offset when running on an H616 SoC. This allows to load U-Boot on any H616 device when the SPL is not located at 8KB. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Chen-Yu Tsai <wens@csie.org> Tested-by: Ryan Walklin <ryan@testtoast.com>
Diffstat (limited to 'drivers/firmware/psci.c')
0 files changed, 0 insertions, 0 deletions