mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-03 18:10:13 +00:00
f64011e11e
Make use of the new drivers for ARM U8500 introduced in the U-Boot 2021.10 merge window by adding basic support for USB Fastboot with the "stemmy" board. As a first step this will always boot directly into USB Fastboot for now with the console displayed on the screen to make that obvious. Samsung uses quite strange GPT partition labels on these boards, so also add a bunch of fastboot_partition_alias_* to make this more easy to use. Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
52 lines
1.5 KiB
C
52 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2019 Stephan Gerhold <stephan@gerhold.net>
|
|
*/
|
|
#ifndef __CONFIGS_STEMMY_H
|
|
#define __CONFIGS_STEMMY_H
|
|
|
|
#include <linux/sizes.h>
|
|
|
|
/*
|
|
* The "stemmy" U-Boot port is designed to be chainloaded by the Samsung
|
|
* bootloader on devices based on ST-Ericsson Ux500. Therefore, we skip most
|
|
* low-level initialization and rely on configuration provided by the Samsung
|
|
* bootloader. New images are loaded at the same address for compatibility.
|
|
*/
|
|
#define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_TEXT_BASE
|
|
|
|
/* FIXME: This should be loaded from device tree... */
|
|
#define CONFIG_SYS_L2_PL310
|
|
#define CONFIG_SYS_PL310_BASE 0xa0412000
|
|
|
|
/* Generate initrd atag for downstream kernel (others are copied in stemmy.c) */
|
|
#define CONFIG_INITRD_TAG
|
|
|
|
/* Linux does not boot if FDT / initrd is loaded to end of RAM */
|
|
#define BOOT_ENV \
|
|
"fdt_high=0x6000000\0" \
|
|
"initrd_high=0x6000000\0"
|
|
|
|
#define CONSOLE_ENV \
|
|
"stdin=serial\0" \
|
|
"stdout=serial,vidconsole\0" \
|
|
"stderr=serial,vidconsole\0"
|
|
|
|
#define FASTBOOT_ENV \
|
|
"fastboot_partition_alias_boot=Kernel\0" \
|
|
"fastboot_partition_alias_recovery=Kernel2\0" \
|
|
"fastboot_partition_alias_system=SYSTEM\0" \
|
|
"fastboot_partition_alias_cache=CACHEFS\0" \
|
|
"fastboot_partition_alias_hidden=HIDDEN\0" \
|
|
"fastboot_partition_alias_userdata=DATAFS\0"
|
|
|
|
#define BOOTCMD_ENV \
|
|
"fastbootcmd=echo '*** FASTBOOT MODE ***'; fastboot usb 0\0"
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
BOOT_ENV \
|
|
CONSOLE_ENV \
|
|
FASTBOOT_ENV \
|
|
BOOTCMD_ENV
|
|
|
|
#endif
|