blob: b250a53e6028bd9c38f95af2afce406f9fec50a0 [file] [log] [blame]
Stephan Gerhold3f1d3e42020-01-04 18:45:19 +01001/* 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 Gerholdaee9df32021-07-07 12:58:54 +020010/*
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 Gerholdaee9df32021-07-07 12:58:54 +020016#define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_TEXT_BASE
Stephan Gerhold3f1d3e42020-01-04 18:45:19 +010017
Stephan Gerhold3f1d3e42020-01-04 18:45:19 +010018/* FIXME: This should be loaded from device tree... */
19#define CONFIG_SYS_L2_PL310
20#define CONFIG_SYS_PL310_BASE 0xa0412000
21
Stephan Gerholdfa307622021-07-07 12:58:55 +020022/* Generate initrd atag for downstream kernel (others are copied in stemmy.c) */
23#define CONFIG_INITRD_TAG
24
Stephan Gerhold8e4386c2021-08-07 15:07:22 +020025/* Linux does not boot if FDT / initrd is loaded to end of RAM */
26#define BOOT_ENV \
27 "fdt_high=0x6000000\0" \
28 "initrd_high=0x6000000\0"
29
30#define CONSOLE_ENV \
31 "stdin=serial\0" \
32 "stdout=serial,vidconsole\0" \
33 "stderr=serial,vidconsole\0"
34
35#define FASTBOOT_ENV \
36 "fastboot_partition_alias_boot=Kernel\0" \
37 "fastboot_partition_alias_recovery=Kernel2\0" \
38 "fastboot_partition_alias_system=SYSTEM\0" \
39 "fastboot_partition_alias_cache=CACHEFS\0" \
40 "fastboot_partition_alias_hidden=HIDDEN\0" \
41 "fastboot_partition_alias_userdata=DATAFS\0"
42
43#define BOOTCMD_ENV \
44 "fastbootcmd=echo '*** FASTBOOT MODE ***'; fastboot usb 0\0"
45
46#define CONFIG_EXTRA_ENV_SETTINGS \
47 BOOT_ENV \
48 CONSOLE_ENV \
49 FASTBOOT_ENV \
50 BOOTCMD_ENV
51
Stephan Gerhold3f1d3e42020-01-04 18:45:19 +010052#endif