Stephan Gerhold | 3f1d3e4 | 2020-01-04 18:45:19 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | /* |
| 3 | * Copyright (C) 2019 Stephan Gerhold <stephan@gerhold.net> |
| 4 | */ |
| 5 | #ifndef __CONFIGS_STEMMY_H |
| 6 | #define __CONFIGS_STEMMY_H |
| 7 | |
| 8 | #include <linux/sizes.h> |
| 9 | |
Stephan Gerhold | aee9df3 | 2021-07-07 12:58:54 +0200 | [diff] [blame] | 10 | /* |
| 11 | * The "stemmy" U-Boot port is designed to be chainloaded by the Samsung |
| 12 | * bootloader on devices based on ST-Ericsson Ux500. Therefore, we skip most |
| 13 | * low-level initialization and rely on configuration provided by the Samsung |
| 14 | * bootloader. New images are loaded at the same address for compatibility. |
| 15 | */ |
Stephan Gerhold | aee9df3 | 2021-07-07 12:58:54 +0200 | [diff] [blame] | 16 | #define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_TEXT_BASE |
Linus Walleij | 82f5c54 | 2021-11-20 23:55:42 +0100 | [diff] [blame] | 17 | #define CONFIG_SYS_BOOTM_LEN SZ_64M |
Stephan Gerhold | 3f1d3e4 | 2020-01-04 18:45:19 +0100 | [diff] [blame] | 18 | |
Stephan Gerhold | 3f1d3e4 | 2020-01-04 18:45:19 +0100 | [diff] [blame] | 19 | /* FIXME: This should be loaded from device tree... */ |
| 20 | #define CONFIG_SYS_L2_PL310 |
| 21 | #define CONFIG_SYS_PL310_BASE 0xa0412000 |
| 22 | |
Stephan Gerhold | 8e4386c | 2021-08-07 15:07:22 +0200 | [diff] [blame] | 23 | /* Linux does not boot if FDT / initrd is loaded to end of RAM */ |
| 24 | #define BOOT_ENV \ |
| 25 | "fdt_high=0x6000000\0" \ |
| 26 | "initrd_high=0x6000000\0" |
| 27 | |
| 28 | #define CONSOLE_ENV \ |
| 29 | "stdin=serial\0" \ |
| 30 | "stdout=serial,vidconsole\0" \ |
| 31 | "stderr=serial,vidconsole\0" |
| 32 | |
| 33 | #define FASTBOOT_ENV \ |
| 34 | "fastboot_partition_alias_boot=Kernel\0" \ |
| 35 | "fastboot_partition_alias_recovery=Kernel2\0" \ |
| 36 | "fastboot_partition_alias_system=SYSTEM\0" \ |
| 37 | "fastboot_partition_alias_cache=CACHEFS\0" \ |
| 38 | "fastboot_partition_alias_hidden=HIDDEN\0" \ |
| 39 | "fastboot_partition_alias_userdata=DATAFS\0" |
| 40 | |
| 41 | #define BOOTCMD_ENV \ |
| 42 | "fastbootcmd=echo '*** FASTBOOT MODE ***'; fastboot usb 0\0" |
| 43 | |
| 44 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 45 | BOOT_ENV \ |
| 46 | CONSOLE_ENV \ |
| 47 | FASTBOOT_ENV \ |
| 48 | BOOTCMD_ENV |
| 49 | |
Stephan Gerhold | 3f1d3e4 | 2020-01-04 18:45:19 +0100 | [diff] [blame] | 50 | #endif |