arm: apple: Switch to fully dynamic mem layout
authorJanne Grunau <j@jannau.net>
Sat, 19 Feb 2022 13:05:19 +0000 (14:05 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 28 Feb 2022 15:33:45 +0000 (10:33 -0500)
commit6fb4f7387e17664e2e6cea1217fe9e95cc0a1170
tree4816e6bc7b7599ef716bbb7a09556244e7535974
parent551f426011e31fad37fe66108ffdf05eb48e3176
arm: apple: Switch to fully dynamic mem layout

Support for Apple M1 Pro and Max will allow using a single binary for
all M1 SoCs. The M1 Pro/Max have a different memory layout. The RAM
start address is 0x100_0000_0000 instead of 0x8_0000_0000.
Replace the hardcoded memory layout with dynamic initialized
environment variables in board_late_init().

Tested on Mac Mini (2020) and Macbook Pro 14-inch (2021).

Signed-off-by: Janne Grunau <j@jannau.net>
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
arch/arm/mach-apple/board.c
configs/apple_m1_defconfig
include/configs/apple.h