Most device headers contain SoC specific part and common Tegra post part.
Add a generic header which can be used by any Tegra device of one of the
supported SoC generations (T20, T30, T114, T124 or T210) without need in
device specific configuration.
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
default "acer"
config SYS_CONFIG_NAME
- default "picasso"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "asus"
config SYS_CONFIG_NAME
- default "grouper"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "asus"
config SYS_CONFIG_NAME
- default "transformer-t20"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "asus"
config SYS_CONFIG_NAME
- default "transformer-t30"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "avionic-design"
config SYS_CONFIG_NAME
- default "medcom-wide"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "avionic-design"
config SYS_CONFIG_NAME
- default "plutux"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "avionic-design"
config SYS_CONFIG_NAME
- default "tec-ng"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "avionic-design"
config SYS_CONFIG_NAME
- default "tec"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "cei"
config SYS_CONFIG_NAME
- default "cei-tk1-som"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "compal"
config SYS_CONFIG_NAME
- default "paz00"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "compulab"
config SYS_CONFIG_NAME
- default "trimslice"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "htc"
config SYS_CONFIG_NAME
- default "endeavoru"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "lenovo"
config SYS_CONFIG_NAME
- default "ideapad-yoga-11"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "lg"
config SYS_CONFIG_NAME
- default "x3-t30"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "microsoft"
config SYS_CONFIG_NAME
- default "surface-rt"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "nvidia"
config SYS_CONFIG_NAME
- default "beaver"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "nvidia"
config SYS_CONFIG_NAME
- default "cardhu"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "nvidia"
config SYS_CONFIG_NAME
- default "dalmore"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "nvidia"
config SYS_CONFIG_NAME
- default "harmony"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "nvidia"
config SYS_CONFIG_NAME
- default "jetson-tk1"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "nvidia"
config SYS_CONFIG_NAME
- default "nyan-big"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "nvidia"
config SYS_CONFIG_NAME
- default "p2371-0000"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "nvidia"
config SYS_CONFIG_NAME
- default "p2371-2180"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "nvidia"
config SYS_CONFIG_NAME
- default "p2571"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "nvidia"
config SYS_CONFIG_NAME
- default "p2771-0000"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "nvidia"
config SYS_CONFIG_NAME
- default "p3450-0000"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "nvidia"
config SYS_CONFIG_NAME
- default "seaboard"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "nvidia"
config SYS_CONFIG_NAME
- default "venice2"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "nvidia"
config SYS_CONFIG_NAME
- default "ventana"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "ouya"
config SYS_CONFIG_NAME
- default "ouya"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
default "toradex"
config SYS_CONFIG_NAME
- default "apalis_t30"
+ default "tegra"
config TDX_CFG_BLOCK
default y
uboot_hwpart=1
uboot_blk=0
+/*
+ * Board-specific serial config
+ *
+ * Apalis UART1: NVIDIA UARTA
+ * Apalis UART2: NVIDIA UARTD
+ * Apalis UART3: NVIDIA UARTB
+ * Apalis UART4: NVIDIA UARTC
+ */
+
set_blkcnt=setexpr blkcnt ${filesize} + 0x1ff &&
setexpr blkcnt ${blkcnt} / 0x200
update_uboot=run set_blkcnt && mmc dev 0 ${uboot_hwpart} &&
default "toradex"
config SYS_CONFIG_NAME
- default "colibri_t20"
+ default "tegra"
config TDX_CFG_BLOCK
default y
default "toradex"
config SYS_CONFIG_NAME
- default "colibri_t30"
+ default "tegra"
config TDX_CFG_BLOCK
default y
uboot_hwpart=1
uboot_blk=0
+/*
+ * Board-specific serial config
+ *
+ * Colibri UART-A: NVIDIA UARTA
+ * Colibri UART-B: NVIDIA UARTD
+ * Colibri UART-C: NVIDIA UARTB
+ */
+
set_blkcnt=setexpr blkcnt ${filesize} + 0x1ff &&
setexpr blkcnt ${blkcnt} / 0x200
update_uboot=run set_blkcnt && mmc dev 0 ${uboot_hwpart} &&
default "wexler"
config SYS_CONFIG_NAME
- default "qc750"
+ default "tegra"
config TEGRA_BOARD_STRING
string "Default Tegra board name"
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (c) 2014-2016 Marcel Ziswiler
- *
- * Configuration settings for the Toradex Apalis T30 modules.
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <linux/sizes.h>
-
-#include "tegra30-common.h"
-
-/*
- * Board-specific serial config
- *
- * Apalis UART1: NVIDIA UARTA
- * Apalis UART2: NVIDIA UARTD
- * Apalis UART3: NVIDIA UARTB
- * Apalis UART4: NVIDIA UARTC
- */
-
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <linux/sizes.h>
-
-#include "tegra30-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved.
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <linux/sizes.h>
-
-#include "tegra30-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * (c) Copyright 2016, Data61
- * Commonwealth Scientific and Industrial Research Organisation (CSIRO)
- *
- * Based on jetson-tk1.h which is:
- * (C) Copyright 2013-2014
- * NVIDIA Corporation <www.nvidia.com>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <linux/sizes.h>
-
-#include "tegra124-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2012 Lucas Stach
- *
- * Configuration settings for the Toradex Colibri T20 modules.
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include "tegra20-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (c) 2013-2016 Stefan Agner
- *
- * Configuration settings for the Toradex Colibri T30 modules.
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <linux/sizes.h>
-
-#include "tegra30-common.h"
-
-/* High-level configuration options */
-
-/*
- * Board-specific serial config
- *
- * Colibri UART-A: NVIDIA UARTA
- * Colibri UART-B: NVIDIA UARTD
- * Colibri UART-C: NVIDIA UARTB
- */
-
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright (c) 2010-2013, NVIDIA CORPORATION. All rights reserved.
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <linux/sizes.h>
-
-#include "tegra114-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * (C) Copyright 2010,2012
- * NVIDIA Corporation <www.nvidia.com>
- *
- * (C) Copyright 2022
- * Svyatoslav Ryhel <clamor95@gmail.com>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include "tegra30-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved.
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include "tegra30-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2010-2012
- * NVIDIA Corporation <www.nvidia.com>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <linux/sizes.h>
-#include "tegra20-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved.
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include "tegra30-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * (C) Copyright 2013-2014
- * NVIDIA Corporation <www.nvidia.com>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <linux/sizes.h>
-
-#include "tegra124-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2010,2011
- * NVIDIA Corporation <www.nvidia.com>
- * (C) Copyright 2011-2012
- * Avionic Design GmbH <www.avionic-design.de>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include "tegra20-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2014
- * NVIDIA Corporation <www.nvidia.com>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <linux/sizes.h>
-
-#include "tegra124-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * (C) Copyright 2010,2012
- * NVIDIA Corporation <www.nvidia.com>
- *
- * (C) Copyright 2025
- * Svyatoslav Ryhel <clamor95@gmail.com>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include "tegra30-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2013-2015
- * NVIDIA Corporation <www.nvidia.com>
- */
-
-#ifndef _P2371_0000_H
-#define _P2371_0000_H
-
-#include <linux/sizes.h>
-
-#include "tegra210-common.h"
-#include "tegra-common-post.h"
-
-#endif /* _P2371_0000_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2013-2015
- * NVIDIA Corporation <www.nvidia.com>
- */
-
-#ifndef _P2371_2180_H
-#define _P2371_2180_H
-
-#include <linux/sizes.h>
-
-#include "tegra210-common.h"
-#include "tegra-common-post.h"
-
-#endif /* _P2371_2180_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2013-2015
- * NVIDIA Corporation <www.nvidia.com>
- */
-
-#ifndef _P2571_H
-#define _P2571_H
-
-#include <linux/sizes.h>
-
-#include "tegra210-common.h"
-#include "tegra-common-post.h"
-
-#endif /* _P2571_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright (c) 2013-2016, NVIDIA CORPORATION.
- */
-
-#ifndef _P2771_0000_H
-#define _P2771_0000_H
-
-#include <linux/sizes.h>
-
-#include "tegra186-common.h"
-#include "tegra-common-post.h"
-
-#endif
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2018-2019 NVIDIA Corporation.
- */
-
-#ifndef _P3450_0000_H
-#define _P3450_0000_H
-
-#include <linux/sizes.h>
-
-#include "tegra210-common.h"
-#include "tegra-common-post.h"
-
-#endif /* _P3450_0000_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright (c) 2010-2012 NVIDIA CORPORATION. All rights reserved.
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <linux/sizes.h>
-#include "tegra20-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * (C) Copyright 2010,2011
- * NVIDIA Corporation <www.nvidia.com>
- *
- * (C) Copyright 2024
- * Svyatoslav Ryhel <clamor95@gmail.com>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include "tegra20-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2010,2011
- * NVIDIA Corporation <www.nvidia.com>
- * (C) Copyright 2011-2012
- * Avionic Design GmbH <www.avionic-design.de>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include "tegra20-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * (C) Copyright 2010,2012
- * NVIDIA Corporation <www.nvidia.com>
- *
- * (C) Copyright 2023
- * Svyatoslav Ryhel <clamor95@gmail.com>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include "tegra30-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2010,2011
- * NVIDIA Corporation <www.nvidia.com>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <linux/sizes.h>
-
-#include "tegra20-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved.
- *
- * Copyright (c) 2021, Open Surface RT
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include "tegra30-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2013
- * Avionic Design GmbH <www.avionic-design.de>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include "tegra30-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2010,2011
- * NVIDIA Corporation <www.nvidia.com>
- * (C) Copyright 2011-2012
- * Avionic Design GmbH <www.avionic-design.de>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include "tegra20-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
--- /dev/null
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * (C) Copyright 2010,2011
+ * NVIDIA Corporation <www.nvidia.com>
+ *
+ * (C) Copyright 2025
+ * Svyatoslav Ryhel <clamor95@gmail.com>
+ *
+ * Generic device header which can be used with SYS_CONFIG_NAME
+ * for any Tegra device (T20, T30, T114, T124, T186 or T210).
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#include <linux/sizes.h>
+
+#ifdef CONFIG_TEGRA20
+#include "tegra20-common.h"
+#elif CONFIG_TEGRA30
+#include "tegra30-common.h"
+#elif CONFIG_TEGRA114
+#include "tegra114-common.h"
+#elif CONFIG_TEGRA124
+#include "tegra124-common.h"
+#elif CONFIG_TEGRA186
+#include "tegra186-common.h"
+#elif CONFIG_TEGRA210
+#include "tegra210-common.h"
+#endif
+
+#include "tegra-common-post.h"
+
+#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * (C) Copyright 2010,2011
- * NVIDIA Corporation <www.nvidia.com>
- *
- * (C) Copyright 2022
- * Svyatoslav Ryhel <clamor95@gmail.com>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include "tegra20-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * (C) Copyright 2010,2012
- * NVIDIA Corporation <www.nvidia.com>
- *
- * (C) Copyright 2022
- * Svyatoslav Ryhel <clamor95@gmail.com>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include "tegra30-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2010-2012
- * NVIDIA Corporation <www.nvidia.com>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <linux/sizes.h>
-#include "tegra20-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2013-2014
- * NVIDIA Corporation <www.nvidia.com>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <linux/sizes.h>
-
-#include "tegra124-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2010,2011
- * NVIDIA Corporation <www.nvidia.com>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <linux/sizes.h>
-#include "tegra20-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * (C) Copyright 2010,2012
- * NVIDIA Corporation <www.nvidia.com>
- *
- * (C) Copyright 2022
- * Svyatoslav Ryhel <clamor95@gmail.com>
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include "tegra30-common.h"
-#include "tegra-common-post.h"
-
-#endif /* __CONFIG_H */