ARM: tegra: convert CFG_TEGRA_BOARD_STRING into Kconfig option

Convert CFG_TEGRA_BOARD_STRING into Kconfig option and move it into device
board Kconfig.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
This commit is contained in:
Svyatoslav Ryhel 2025-03-31 16:44:24 +03:00
parent 11bf63c230
commit ee3462160c
67 changed files with 133 additions and 183 deletions

View file

@ -96,7 +96,7 @@ int checkboard(void)
{
int board_id = tegra_board_id();
printf("Board: %s", CFG_TEGRA_BOARD_STRING);
printf("Board: %s", CONFIG_TEGRA_BOARD_STRING);
if (board_id != -1)
printf(", ID: %d\n", board_id);
printf("\n");

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "picasso"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "Acer Iconia Tab A500"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "grouper"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "ASUS Google Nexus 7 (2012)"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "transformer-t20"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "ASUS Transformer T20"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "transformer-t30"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "ASUS Transformer T30"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "medcom-wide"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "Avionic Design Medcom-Wide"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "plutux"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "Avionic Design Plutux"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "tec-ng"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "Avionic Design Tamonten™ NG Evaluation Carrier"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "tec"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "Avionic Design Tamonten Evaluation Carrier"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "cei-tk1-som"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "CEI tk1-som"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "paz00"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "Compal Paz00"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "trimslice"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "Compulab Trimslice"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "endeavoru"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "HTC One X"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "ideapad-yoga-11"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "Lenovo Ideapad Yoga 11"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "x3-t30"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "LG X3 Board"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "surface-rt"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "Microsoft Surface RT"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "mot"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "Motorola Mot"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "beaver"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "NVIDIA Beaver"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "cardhu"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "NVIDIA Cardhu"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "dalmore"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "NVIDIA Dalmore"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "harmony"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "NVIDIA Harmony"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "jetson-tk1"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "NVIDIA Jetson TK1"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "nyan-big"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "Google/NVIDIA Nyan-big"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "p2371-0000"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "NVIDIA P2371-0000"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "p2371-2180"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "NVIDIA P2371-2180"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "p2571"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "NVIDIA P2571"
endif

View file

@ -13,4 +13,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "p2771-0000"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "NVIDIA P2771-0000"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "p3450-0000"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "NVIDIA P3450-0000"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "seaboard"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "NVIDIA Seaboard"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "venice2"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "NVIDIA Venice2"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "ventana"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "NVIDIA Ventana"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "ouya"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "Ouya Game Console"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "qc750"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "Wexler QC750"
endif

View file

@ -9,4 +9,8 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "mocha"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "Xiaomi Mocha"
endif

View file

@ -9,10 +9,6 @@
#include <linux/sizes.h>
#include "tegra30-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "NVIDIA Beaver"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -9,10 +9,6 @@
#include <linux/sizes.h>
#include "tegra30-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "NVIDIA Cardhu"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -14,10 +14,6 @@
#include <linux/sizes.h>
#include "tegra124-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "CEI tk1-som"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -9,12 +9,6 @@
#include <linux/sizes.h>
#include "tegra114-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "NVIDIA Dalmore"
/* Environment in eMMC, at the end of 2nd "boot sector" */
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -11,10 +11,6 @@
#define __CONFIG_H
#include "tegra30-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "HTC One X"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -7,10 +7,6 @@
#define __CONFIG_H
#include "tegra30-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "ASUS Google Nexus 7 (2012)"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -9,14 +9,6 @@
#include <linux/sizes.h>
#include "tegra20-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "NVIDIA Harmony"
/* NAND support */
/* Environment in NAND (which is 512M), aligned to start of last sector */
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -7,10 +7,6 @@
#define __CONFIG_H
#include "tegra30-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "Lenovo Ideapad Yoga 11"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -10,10 +10,6 @@
#include <linux/sizes.h>
#include "tegra124-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "NVIDIA Jetson TK1"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -10,14 +10,6 @@
#define __CONFIG_H
#include "tegra20-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "Avionic Design Medcom-Wide"
/* NAND support */
/* Environment in NAND, aligned to start of last sector */
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -10,9 +10,6 @@
#include "tegra124-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "Xiaomi Mocha"
#ifdef CONFIG_TEGRA_SUPPORT_NON_SECURE
#define CFG_PRAM 0x38400 /* 225 MB */
#endif

View file

@ -10,9 +10,6 @@
#include <linux/sizes.h>
#include "tegra20-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "Motorola Mot"
/* Tegra common post configuration overwrites text env in the board */
#define BOARD_EXTRA_ENV_SETTINGS \
"stdin=serial,tegra-kbc,button-kbd,cpcap-pwrbutton\0"

View file

@ -10,10 +10,6 @@
#include <linux/sizes.h>
#include "tegra124-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "Google/NVIDIA Nyan-big"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -11,10 +11,6 @@
#define __CONFIG_H
#include "tegra30-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "Ouya Game Console"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -10,14 +10,6 @@
#include <linux/sizes.h>
#include "tegra210-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "NVIDIA P2371-0000"
/* Board-specific serial config */
/* Environment in eMMC, at the end of 2nd "boot sector" */
#include "tegra-common-post.h"
#endif /* _P2371_0000_H */

View file

@ -10,14 +10,6 @@
#include <linux/sizes.h>
#include "tegra210-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "NVIDIA P2371-2180"
/* Board-specific serial config */
/* Environment in eMMC, at the end of 2nd "boot sector" */
#include "tegra-common-post.h"
#endif /* _P2371_2180_H */

View file

@ -10,14 +10,6 @@
#include <linux/sizes.h>
#include "tegra210-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "NVIDIA P2571"
/* Board-specific serial config */
/* Environment in eMMC, at the end of 2nd "boot sector" */
#include "tegra-common-post.h"
#endif /* _P2571_H */

View file

@ -9,12 +9,6 @@
#include <linux/sizes.h>
#include "tegra186-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "NVIDIA P2771-0000"
/* Environment in eMMC, at the end of 2nd "boot sector" */
#include "tegra-common-post.h"
#endif

View file

@ -9,13 +9,6 @@
#include <linux/sizes.h>
#include "tegra210-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "NVIDIA P3450-0000"
/* Board-specific serial config */
/* General networking support */
#include "tegra-common-post.h"
#endif /* _P3450_0000_H */

View file

@ -11,12 +11,6 @@
#include <linux/sizes.h>
#include "tegra20-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "Compal Paz00"
/* Environment in eMMC, at the end of 2nd "boot sector" */
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -11,10 +11,6 @@
#define __CONFIG_H
#include "tegra20-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "Acer Iconia Tab A500"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -10,14 +10,6 @@
#define __CONFIG_H
#include "tegra20-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "Avionic Design Plutux"
/* NAND support */
/* Environment in NAND, aligned to start of last sector */
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -11,10 +11,6 @@
#define __CONFIG_H
#include "tegra30-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "Wexler QC750"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -10,16 +10,6 @@
#include <linux/sizes.h>
#include "tegra20-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "NVIDIA Seaboard"
/* Environment in eMMC, at the end of 2nd "boot sector" */
/* NAND support */
/* Max number of NAND devices */
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -9,10 +9,6 @@
#define __CONFIG_H
#include "tegra30-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "Microsoft Surface RT"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -8,10 +8,6 @@
#define __CONFIG_H
#include "tegra30-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "Avionic Design Tamonten™ NG Evaluation Carrier"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -10,14 +10,6 @@
#define __CONFIG_H
#include "tegra20-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "Avionic Design Tamonten Evaluation Carrier"
/* NAND support */
/* Environment in NAND, aligned to start of last sector */
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -11,10 +11,6 @@
#define __CONFIG_H
#include "tegra20-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "ASUS Transformer"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -11,10 +11,6 @@
#define __CONFIG_H
#include "tegra30-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "ASUS Transformer"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -9,15 +9,6 @@
#include <linux/sizes.h>
#include "tegra20-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "Compulab Trimslice"
/* SPI */
/* Environment in SPI */
/* 1MiB flash, environment located as high as possible */
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -10,12 +10,6 @@
#include <linux/sizes.h>
#include "tegra124-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "NVIDIA Venice2"
/* Environment in eMMC, at the end of 2nd "boot sector" */
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -9,12 +9,6 @@
#include <linux/sizes.h>
#include "tegra20-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "NVIDIA Ventana"
/* Environment in eMMC, at the end of 2nd "boot sector" */
#include "tegra-common-post.h"
#endif /* __CONFIG_H */

View file

@ -11,10 +11,6 @@
#define __CONFIG_H
#include "tegra30-common.h"
/* High-level configuration options */
#define CFG_TEGRA_BOARD_STRING "LG X3 Board"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */