]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: gateworks: venice: dynamically determine U-Boot raw sector
authorTim Harvey <tharvey@gateworks.com>
Wed, 3 May 2023 00:05:53 +0000 (17:05 -0700)
committerStefano Babic <sbabic@denx.de>
Tue, 11 Jul 2023 12:40:03 +0000 (14:40 +0200)
commit8236c05ddb2a86080a1748c333764dd50013774b
tree8f274edfbca64417456d5899e2e74f6e3703c9bc
parentc226f84256e6c8c917f253a98ca444439bf605cf
board: gateworks: venice: dynamically determine U-Boot raw sector

CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR needs to adjust for
IMX8MN and IMX8MP when booting from an eMMC boot partition due
to IMX BOOTROM v2 using an SPL offset of 0 for boot partitions
and 32K for the user partition.

In order to allow the same firmware to run on both user and boot
hardware partitions adjust raw_sect dynamically at runtime.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/venice/spl.c