diff options
author | Mark Kettenis <kettenis@openbsd.org> | 2021-10-23 16:58:03 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-10-31 08:46:44 -0400 |
commit | 003b657edcdc7ee96b7df277a16480129a5260a7 (patch) | |
tree | 38c454ce830b7eedd8bf65bc260d6cf6e863b2e7 /include/configs | |
parent | fb5746243707d6b84dea02490a86868c3d7f534d (diff) | |
download | u-boot-003b657edcdc7ee96b7df277a16480129a5260a7.tar.gz u-boot-003b657edcdc7ee96b7df277a16480129a5260a7.tar.bz2 u-boot-003b657edcdc7ee96b7df277a16480129a5260a7.zip |
arm: apple: Add initial support for Apple's M1 SoC
Add support for Apple's M1 SoC that is used in "Apple Silicon"
Macs. This builds a basic U-Boot that can be used as a payload
for the m1n1 boot loader being developed by the Asahi Linux
project.
Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
[trini: Add MAINTAINERS entry]
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/apple.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/configs/apple.h b/include/configs/apple.h new file mode 100644 index 0000000000..b1f6043174 --- /dev/null +++ b/include/configs/apple.h @@ -0,0 +1,36 @@ +#ifndef __CONFIG_H +#define __CONFIG_H + +#include <linux/sizes.h> + +#define CONFIG_SYS_SDRAM_BASE 0x880000000 + +#define CONFIG_LNX_KRNL_IMG_TEXT_OFFSET_BASE CONFIG_SYS_TEXT_BASE + +/* Environment */ +#define ENV_DEVICE_SETTINGS \ + "stdin=serial,usbkbd\0" \ + "stdout=serial,vidconsole\0" \ + "stderr=serial,vidconsole\0" + +#define ENV_MEM_LAYOUT_SETTINGS \ + "fdt_addr_r=0x960100000\0" \ + "kernel_addr_r=0x960200000\0" + +#if CONFIG_IS_ENABLED(CMD_USB) + #define BOOT_TARGET_USB(func) func(USB, usb, 0) +#else + #define BOOT_TARGET_USB(func) +#endif + +#define BOOT_TARGET_DEVICES(func) \ + BOOT_TARGET_USB(func) + +#include <config_distro_bootcmd.h> + +#define CONFIG_EXTRA_ENV_SETTINGS \ + ENV_DEVICE_SETTINGS \ + ENV_MEM_LAYOUT_SETTINGS \ + BOOTENV + +#endif |