mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
Remove setting of fdt_high to ~0, which disables device tree relocation, from the default environment. Doing so prevents U-Boot from correcting problems such as having an unaligned device tree and leads to various failure modes in the OS. If there is some window of memory that must be used for where the device tree is relocated to, bootm_low + bootm_size (or often just bootm_size) or bootm_mapsize are the correct way do this. Please see doc/usage/environment.rst for more details. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Svyatoslav Ryhel <clamor95@gmail.com>
66 lines
1.3 KiB
C
66 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2010-2012
|
|
* NVIDIA Corporation <www.nvidia.com>
|
|
*/
|
|
|
|
#ifndef __TEGRA_COMMON_POST_H
|
|
#define __TEGRA_COMMON_POST_H
|
|
|
|
#define BOOT_TARGETS "usb mmc1 mmc0 pxe dhcp"
|
|
|
|
#ifdef CONFIG_TEGRA_KEYBOARD
|
|
#define STDIN_KBD_KBC ",tegra-kbc"
|
|
#else
|
|
#define STDIN_KBD_KBC ""
|
|
#endif
|
|
|
|
#ifdef CONFIG_USB_KEYBOARD
|
|
#define STDIN_KBD_USB ",usbkbd"
|
|
#else
|
|
#define STDIN_KBD_USB ""
|
|
#endif
|
|
|
|
#ifdef CONFIG_BUTTON_KEYBOARD
|
|
#define STDIN_BTN_KBD ",button-kbd"
|
|
#else
|
|
#define STDIN_BTN_KBD ""
|
|
#endif
|
|
|
|
#ifdef CONFIG_VIDEO
|
|
#define STDOUT_VIDEO ",vidconsole"
|
|
#else
|
|
#define STDOUT_VIDEO ""
|
|
#endif
|
|
|
|
#ifdef CONFIG_CROS_EC_KEYB
|
|
#define STDOUT_CROS_EC ",cros-ec-keyb"
|
|
#else
|
|
#define STDOUT_CROS_EC ""
|
|
#endif
|
|
|
|
#define TEGRA_DEVICE_SETTINGS \
|
|
"stdin=serial" STDIN_KBD_KBC STDIN_KBD_USB STDOUT_CROS_EC STDIN_BTN_KBD "\0" \
|
|
"stdout=serial" STDOUT_VIDEO "\0" \
|
|
"stderr=serial" STDOUT_VIDEO "\0" \
|
|
""
|
|
|
|
#ifndef BOARD_EXTRA_ENV_SETTINGS
|
|
#define BOARD_EXTRA_ENV_SETTINGS
|
|
#endif
|
|
|
|
#ifdef CONFIG_ARM64
|
|
#define INITRD_HIGH "ffffffffffffffff"
|
|
#else
|
|
#define INITRD_HIGH "ffffffff"
|
|
#endif
|
|
|
|
#define CFG_EXTRA_ENV_SETTINGS \
|
|
TEGRA_DEVICE_SETTINGS \
|
|
MEM_LAYOUT_ENV_SETTINGS \
|
|
"initrd_high=" INITRD_HIGH "\0" \
|
|
"boot_targets=" BOOT_TARGETS "\0" \
|
|
BOARD_EXTRA_ENV_SETTINGS
|
|
|
|
#endif /* __TEGRA_COMMON_POST_H */
|