blob: fc74980f7caab8dd6adea242307eacf08abd2e88 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Stephen Warrende17c292012-05-16 06:21:00 +00002/*
3 * (C) Copyright 2010-2012
4 * NVIDIA Corporation <www.nvidia.com>
Stephen Warrende17c292012-05-16 06:21:00 +00005 */
6
Tom Warren22562a42012-09-04 17:00:24 -07007#ifndef __TEGRA_COMMON_POST_H
8#define __TEGRA_COMMON_POST_H
Stephen Warrende17c292012-05-16 06:21:00 +00009
Svyatoslav Ryhelb822b3f2024-01-06 22:33:59 +020010#define BOOT_TARGETS "mmc1 mmc0 usb pxe dhcp"
Stephen Warrende17c292012-05-16 06:21:00 +000011
Allen Martin50df8702012-10-24 08:32:05 +000012#ifdef CONFIG_TEGRA_KEYBOARD
13#define STDIN_KBD_KBC ",tegra-kbc"
14#else
15#define STDIN_KBD_KBC ""
16#endif
17
18#ifdef CONFIG_USB_KEYBOARD
19#define STDIN_KBD_USB ",usbkbd"
Allen Martin50df8702012-10-24 08:32:05 +000020#else
21#define STDIN_KBD_USB ""
22#endif
23
Svyatoslav Ryhel2c04e522023-06-30 10:29:00 +030024#ifdef CONFIG_BUTTON_KEYBOARD
25#define STDIN_BTN_KBD ",button-kbd"
26#else
27#define STDIN_BTN_KBD ""
28#endif
29
Simon Glass52cb5042022-10-18 07:46:31 -060030#ifdef CONFIG_VIDEO
Simon Glass3e2b2d92016-01-30 16:37:49 -070031#define STDOUT_VIDEO ",vidconsole"
32#else
33#define STDOUT_VIDEO ""
34#endif
35
Simon Glass576e45c2015-06-05 14:39:32 -060036#ifdef CONFIG_CROS_EC_KEYB
37#define STDOUT_CROS_EC ",cros-ec-keyb"
38#else
39#define STDOUT_CROS_EC ""
40#endif
41
Allen Martin50df8702012-10-24 08:32:05 +000042#define TEGRA_DEVICE_SETTINGS \
Svyatoslav Ryhel2c04e522023-06-30 10:29:00 +030043 "stdin=serial" STDIN_KBD_KBC STDIN_KBD_USB STDOUT_CROS_EC STDIN_BTN_KBD "\0" \
Simon Glassc162e022022-10-18 06:10:04 -060044 "stdout=serial" STDOUT_VIDEO "\0" \
45 "stderr=serial" STDOUT_VIDEO "\0" \
Stephen Warren3f264792013-01-22 06:20:07 +000046 ""
Allen Martin50df8702012-10-24 08:32:05 +000047
Stephen Warren26b02f12014-01-23 13:17:01 -070048#ifndef BOARD_EXTRA_ENV_SETTINGS
49#define BOARD_EXTRA_ENV_SETTINGS
50#endif
51
Tom Warrenab0cc6b2015-03-04 16:36:00 -070052#ifdef CONFIG_ARM64
53#define FDT_HIGH "ffffffffffffffff"
54#define INITRD_HIGH "ffffffffffffffff"
55#else
56#define FDT_HIGH "ffffffff"
57#define INITRD_HIGH "ffffffff"
58#endif
59
Tom Rinic9edebe2022-12-04 10:03:50 -050060#define CFG_EXTRA_ENV_SETTINGS \
Tom Warren22562a42012-09-04 17:00:24 -070061 TEGRA_DEVICE_SETTINGS \
Stephen Warren35305102012-10-02 09:26:51 +000062 MEM_LAYOUT_ENV_SETTINGS \
Tom Warrenab0cc6b2015-03-04 16:36:00 -070063 "fdt_high=" FDT_HIGH "\0" \
64 "initrd_high=" INITRD_HIGH "\0" \
Svyatoslav Ryhelb822b3f2024-01-06 22:33:59 +020065 "boot_targets=" BOOT_TARGETS "\0" \
Tom Rini23581a62022-03-30 18:07:25 -040066 BOARD_EXTRA_ENV_SETTINGS
Stephen Warrende17c292012-05-16 06:21:00 +000067
Tom Warren22562a42012-09-04 17:00:24 -070068#endif /* __TEGRA_COMMON_POST_H */