Stephan Gerhold | 43d2885 | 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 | 03585d5 | 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 | 43d2885 | 2020-01-04 18:45:19 +0100 | [diff] [blame] | 16 | |
Stephan Gerhold | 43d2885 | 2020-01-04 18:45:19 +0100 | [diff] [blame] | 17 | /* FIXME: This should be loaded from device tree... */ |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 18 | #define CFG_SYS_PL310_BASE 0xa0412000 |
Stephan Gerhold | 43d2885 | 2020-01-04 18:45:19 +0100 | [diff] [blame] | 19 | |
Stephan Gerhold | f64011e | 2021-08-07 15:07:22 +0200 | [diff] [blame] | 20 | /* Linux does not boot if FDT / initrd is loaded to end of RAM */ |
| 21 | #define BOOT_ENV \ |
| 22 | "fdt_high=0x6000000\0" \ |
| 23 | "initrd_high=0x6000000\0" |
| 24 | |
| 25 | #define CONSOLE_ENV \ |
| 26 | "stdin=serial\0" \ |
| 27 | "stdout=serial,vidconsole\0" \ |
| 28 | "stderr=serial,vidconsole\0" |
| 29 | |
| 30 | #define FASTBOOT_ENV \ |
| 31 | "fastboot_partition_alias_boot=Kernel\0" \ |
| 32 | "fastboot_partition_alias_recovery=Kernel2\0" \ |
| 33 | "fastboot_partition_alias_system=SYSTEM\0" \ |
| 34 | "fastboot_partition_alias_cache=CACHEFS\0" \ |
| 35 | "fastboot_partition_alias_hidden=HIDDEN\0" \ |
| 36 | "fastboot_partition_alias_userdata=DATAFS\0" |
| 37 | |
| 38 | #define BOOTCMD_ENV \ |
| 39 | "fastbootcmd=echo '*** FASTBOOT MODE ***'; fastboot usb 0\0" |
| 40 | |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 41 | #define CFG_EXTRA_ENV_SETTINGS \ |
Stephan Gerhold | f64011e | 2021-08-07 15:07:22 +0200 | [diff] [blame] | 42 | BOOT_ENV \ |
| 43 | CONSOLE_ENV \ |
| 44 | FASTBOOT_ENV \ |
| 45 | BOOTCMD_ENV |
| 46 | |
Stephan Gerhold | 43d2885 | 2020-01-04 18:45:19 +0100 | [diff] [blame] | 47 | #endif |