Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Stephen Warren | de17c29 | 2012-05-16 06:21:00 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2010-2012 |
| 4 | * NVIDIA Corporation <www.nvidia.com> |
Stephen Warren | de17c29 | 2012-05-16 06:21:00 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
Tom Warren | 22562a4 | 2012-09-04 17:00:24 -0700 | [diff] [blame] | 7 | #ifndef __TEGRA_COMMON_POST_H |
| 8 | #define __TEGRA_COMMON_POST_H |
Stephen Warren | de17c29 | 2012-05-16 06:21:00 +0000 | [diff] [blame] | 9 | |
Svyatoslav Ryhel | d599a04 | 2024-06-18 13:07:57 +0300 | [diff] [blame] | 10 | #define BOOT_TARGETS "usb mmc1 mmc0 pxe dhcp" |
Stephen Warren | de17c29 | 2012-05-16 06:21:00 +0000 | [diff] [blame] | 11 | |
Allen Martin | 50df870 | 2012-10-24 08:32:05 +0000 | [diff] [blame] | 12 | #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 Martin | 50df870 | 2012-10-24 08:32:05 +0000 | [diff] [blame] | 20 | #else |
| 21 | #define STDIN_KBD_USB "" |
| 22 | #endif |
| 23 | |
Svyatoslav Ryhel | 2c04e52 | 2023-06-30 10:29:00 +0300 | [diff] [blame] | 24 | #ifdef CONFIG_BUTTON_KEYBOARD |
| 25 | #define STDIN_BTN_KBD ",button-kbd" |
| 26 | #else |
| 27 | #define STDIN_BTN_KBD "" |
| 28 | #endif |
| 29 | |
Simon Glass | 52cb504 | 2022-10-18 07:46:31 -0600 | [diff] [blame] | 30 | #ifdef CONFIG_VIDEO |
Simon Glass | 3e2b2d9 | 2016-01-30 16:37:49 -0700 | [diff] [blame] | 31 | #define STDOUT_VIDEO ",vidconsole" |
| 32 | #else |
| 33 | #define STDOUT_VIDEO "" |
| 34 | #endif |
| 35 | |
Simon Glass | 576e45c | 2015-06-05 14:39:32 -0600 | [diff] [blame] | 36 | #ifdef CONFIG_CROS_EC_KEYB |
| 37 | #define STDOUT_CROS_EC ",cros-ec-keyb" |
| 38 | #else |
| 39 | #define STDOUT_CROS_EC "" |
| 40 | #endif |
| 41 | |
Allen Martin | 50df870 | 2012-10-24 08:32:05 +0000 | [diff] [blame] | 42 | #define TEGRA_DEVICE_SETTINGS \ |
Svyatoslav Ryhel | 2c04e52 | 2023-06-30 10:29:00 +0300 | [diff] [blame] | 43 | "stdin=serial" STDIN_KBD_KBC STDIN_KBD_USB STDOUT_CROS_EC STDIN_BTN_KBD "\0" \ |
Simon Glass | c162e02 | 2022-10-18 06:10:04 -0600 | [diff] [blame] | 44 | "stdout=serial" STDOUT_VIDEO "\0" \ |
| 45 | "stderr=serial" STDOUT_VIDEO "\0" \ |
Stephen Warren | 3f26479 | 2013-01-22 06:20:07 +0000 | [diff] [blame] | 46 | "" |
Allen Martin | 50df870 | 2012-10-24 08:32:05 +0000 | [diff] [blame] | 47 | |
Stephen Warren | 26b02f1 | 2014-01-23 13:17:01 -0700 | [diff] [blame] | 48 | #ifndef BOARD_EXTRA_ENV_SETTINGS |
| 49 | #define BOARD_EXTRA_ENV_SETTINGS |
| 50 | #endif |
| 51 | |
Tom Warren | ab0cc6b | 2015-03-04 16:36:00 -0700 | [diff] [blame] | 52 | #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 Rini | c9edebe | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 60 | #define CFG_EXTRA_ENV_SETTINGS \ |
Tom Warren | 22562a4 | 2012-09-04 17:00:24 -0700 | [diff] [blame] | 61 | TEGRA_DEVICE_SETTINGS \ |
Stephen Warren | 3530510 | 2012-10-02 09:26:51 +0000 | [diff] [blame] | 62 | MEM_LAYOUT_ENV_SETTINGS \ |
Tom Warren | ab0cc6b | 2015-03-04 16:36:00 -0700 | [diff] [blame] | 63 | "fdt_high=" FDT_HIGH "\0" \ |
| 64 | "initrd_high=" INITRD_HIGH "\0" \ |
Svyatoslav Ryhel | b822b3f | 2024-01-06 22:33:59 +0200 | [diff] [blame] | 65 | "boot_targets=" BOOT_TARGETS "\0" \ |
Tom Rini | 23581a6 | 2022-03-30 18:07:25 -0400 | [diff] [blame] | 66 | BOARD_EXTRA_ENV_SETTINGS |
Stephen Warren | de17c29 | 2012-05-16 06:21:00 +0000 | [diff] [blame] | 67 | |
Tom Warren | 22562a4 | 2012-09-04 17:00:24 -0700 | [diff] [blame] | 68 | #endif /* __TEGRA_COMMON_POST_H */ |