1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2010-2012
4 * NVIDIA Corporation <www.nvidia.com>
7 #ifndef __TEGRA_COMMON_POST_H
8 #define __TEGRA_COMMON_POST_H
10 #define CONFIG_SYS_NONCACHED_MEMORY (1 << 20) /* 1 MiB */
12 #if CONFIG_IS_ENABLED(CMD_USB)
13 # define BOOT_TARGET_USB(func) func(USB, usb, 0)
15 # define BOOT_TARGET_USB(func)
18 #ifndef BOOT_TARGET_DEVICES
19 #define BOOT_TARGET_DEVICES(func) \
22 BOOT_TARGET_USB(func) \
26 #include <config_distro_bootcmd.h>
28 #ifdef CONFIG_TEGRA_KEYBOARD
29 #define STDIN_KBD_KBC ",tegra-kbc"
31 #define STDIN_KBD_KBC ""
34 #ifdef CONFIG_USB_KEYBOARD
35 #define STDIN_KBD_USB ",usbkbd"
37 #define STDIN_KBD_USB ""
41 #define STDOUT_LCD ",lcd"
46 #ifdef CONFIG_DM_VIDEO
47 #define STDOUT_VIDEO ",vidconsole"
49 #define STDOUT_VIDEO ""
52 #ifdef CONFIG_CROS_EC_KEYB
53 #define STDOUT_CROS_EC ",cros-ec-keyb"
55 #define STDOUT_CROS_EC ""
58 #define TEGRA_DEVICE_SETTINGS \
59 "stdin=serial" STDIN_KBD_KBC STDIN_KBD_USB STDOUT_CROS_EC "\0" \
60 "stdout=serial" STDOUT_LCD STDOUT_VIDEO "\0" \
61 "stderr=serial" STDOUT_LCD STDOUT_VIDEO "\0" \
64 #ifndef BOARD_EXTRA_ENV_SETTINGS
65 #define BOARD_EXTRA_ENV_SETTINGS
69 #define FDT_HIGH "ffffffffffffffff"
70 #define INITRD_HIGH "ffffffffffffffff"
72 #define FDT_HIGH "ffffffff"
73 #define INITRD_HIGH "ffffffff"
76 #define CONFIG_EXTRA_ENV_SETTINGS \
77 TEGRA_DEVICE_SETTINGS \
78 MEM_LAYOUT_ENV_SETTINGS \
79 "fdt_high=" FDT_HIGH "\0" \
80 "initrd_high=" INITRD_HIGH "\0" \
82 BOARD_EXTRA_ENV_SETTINGS
84 #if defined(CONFIG_TEGRA20_SFLASH) || defined(CONFIG_TEGRA20_SLINK) || defined(CONFIG_TEGRA114_SPI)
85 #define CONFIG_TEGRA_SPI
88 #endif /* __TEGRA_COMMON_POST_H */