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 | */ |
| 16 | #define CONFIG_SKIP_LOWLEVEL_INIT |
| 17 | #define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_TEXT_BASE |
| 18 | #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_TEXT_BASE |
Stephan Gerhold | 3f1d3e4 | 2020-01-04 18:45:19 +0100 | [diff] [blame] | 19 | |
Stephan Gerhold | aee9df3 | 2021-07-07 12:58:54 +0200 | [diff] [blame] | 20 | #define CONFIG_SYS_MALLOC_LEN SZ_2M |
Stephan Gerhold | 3f1d3e4 | 2020-01-04 18:45:19 +0100 | [diff] [blame] | 21 | |
| 22 | /* FIXME: This should be loaded from device tree... */ |
| 23 | #define CONFIG_SYS_L2_PL310 |
| 24 | #define CONFIG_SYS_PL310_BASE 0xa0412000 |
| 25 | |
Stephan Gerhold | fa30762 | 2021-07-07 12:58:55 +0200 | [diff] [blame] | 26 | /* Generate initrd atag for downstream kernel (others are copied in stemmy.c) */ |
| 27 | #define CONFIG_INITRD_TAG |
| 28 | |
Stephan Gerhold | 3f1d3e4 | 2020-01-04 18:45:19 +0100 | [diff] [blame] | 29 | #endif |