summaryrefslogtreecommitdiff
path: root/board/toradex
diff options
context:
space:
mode:
authorSvyatoslav Ryhel <clamor95@gmail.com>2025-03-31 17:18:18 +0300
committerSvyatoslav Ryhel <clamor95@gmail.com>2025-04-12 11:11:05 +0300
commit9ee12daa591b8adefa8ae221295a85e2ee467742 (patch)
tree268b729bbefd6ad2790f32568a274ae870a574ae /board/toradex
parentee3462160cf2fdf29b44ef83df0265a19c37bc0a (diff)
ARM: tegra: replace per-device config headers with generic Tegra
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>
Diffstat (limited to 'board/toradex')
-rw-r--r--board/toradex/apalis_t30/Kconfig2
-rw-r--r--board/toradex/apalis_t30/apalis_t30.env9
-rw-r--r--board/toradex/colibri_t20/Kconfig2
-rw-r--r--board/toradex/colibri_t30/Kconfig2
-rw-r--r--board/toradex/colibri_t30/colibri_t30.env8
5 files changed, 20 insertions, 3 deletions
diff --git a/board/toradex/apalis_t30/Kconfig b/board/toradex/apalis_t30/Kconfig
index 9cd497091d6..6260f8eb7f4 100644
--- a/board/toradex/apalis_t30/Kconfig
+++ b/board/toradex/apalis_t30/Kconfig
@@ -7,7 +7,7 @@ config SYS_VENDOR
default "toradex"
config SYS_CONFIG_NAME
- default "apalis_t30"
+ default "tegra"
config TDX_CFG_BLOCK
default y
diff --git a/board/toradex/apalis_t30/apalis_t30.env b/board/toradex/apalis_t30/apalis_t30.env
index a8f2904bcd7..85d0a05d0e1 100644
--- a/board/toradex/apalis_t30/apalis_t30.env
+++ b/board/toradex/apalis_t30/apalis_t30.env
@@ -1,6 +1,15 @@
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} &&
diff --git a/board/toradex/colibri_t20/Kconfig b/board/toradex/colibri_t20/Kconfig
index a43acddb801..8a7295a41e2 100644
--- a/board/toradex/colibri_t20/Kconfig
+++ b/board/toradex/colibri_t20/Kconfig
@@ -7,7 +7,7 @@ config SYS_VENDOR
default "toradex"
config SYS_CONFIG_NAME
- default "colibri_t20"
+ default "tegra"
config TDX_CFG_BLOCK
default y
diff --git a/board/toradex/colibri_t30/Kconfig b/board/toradex/colibri_t30/Kconfig
index 68ef82b099d..643309fe856 100644
--- a/board/toradex/colibri_t30/Kconfig
+++ b/board/toradex/colibri_t30/Kconfig
@@ -7,7 +7,7 @@ config SYS_VENDOR
default "toradex"
config SYS_CONFIG_NAME
- default "colibri_t30"
+ default "tegra"
config TDX_CFG_BLOCK
default y
diff --git a/board/toradex/colibri_t30/colibri_t30.env b/board/toradex/colibri_t30/colibri_t30.env
index a8f2904bcd7..87919fbf155 100644
--- a/board/toradex/colibri_t30/colibri_t30.env
+++ b/board/toradex/colibri_t30/colibri_t30.env
@@ -1,6 +1,14 @@
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} &&