diff options
| author | Jonas Karlman <[email protected]> | 2023-07-28 11:38:34 +0000 |
|---|---|---|
| committer | Kever Yang <[email protected]> | 2023-07-31 17:34:43 +0800 |
| commit | ada63287386e618190c644b25961dae15d4e79f5 (patch) | |
| tree | 67157f48c8acb0eb94e5c91a028e33a268a3a1ed /include/linux/zstd_errors.h | |
| parent | f40dcc7d1e74ff5aa5f709918e26cb31277dcea0 (diff) | |
rockchip: rk3399-rockpro64: Fix SPL max size and SPI flash payload offset
TPL max size is limited to 184 KB, SPL is loaded to 0x0 and TF-A is
loaded to 0x40000, this limit SPL max size to 256 KB. With BootRom only
reading first 2 KB per 4 KB page of SPI flash, 880 KB may be needed for
TPL+SPL in a worst-case scenario. (184 KB + 256 KB) x 2 = 880 KB
Use 0xE0000 (896 KB) as the payload offset in SPI flash, this allows
for a payload of 3168 KB before env offset start to overlap.
Also remove CONFIG_LTO=y now that there is sufficient space for SPL in
SPI flash, and to fix a build issue reported by Peter Robinson.
Fixes: 5713135ecc75 ("rockchip: rockpro64: Build u-boot-rockchip-spi.bin")
Reported-by: Peter Robinson <[email protected]>
Signed-off-by: Jonas Karlman <[email protected]>
Reviewed-by: Quentin Schulz <[email protected]>
Reviewed-by: Kever Yang <[email protected]>
Diffstat (limited to 'include/linux/zstd_errors.h')
0 files changed, 0 insertions, 0 deletions
