From: Vitor Soares <[email protected]>

Add the new 0242 PID4 to config block handling:

- 0242 Verdin AM62 Dual 1GB WB ET

Update the board-specific variant selection to use the Wi-Fi variant
for the new WB SKU.

Signed-off-by: Vitor Soares <[email protected]>
---
 board/toradex/common/tdx-cfg-block.c    | 1 +
 board/toradex/common/tdx-cfg-block.h    | 1 +
 board/toradex/verdin-am62/verdin-am62.c | 3 ++-
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/board/toradex/common/tdx-cfg-block.c 
b/board/toradex/common/tdx-cfg-block.c
index 465254ac2bf5..1998411ebde4 100644
--- a/board/toradex/common/tdx-cfg-block.c
+++ b/board/toradex/common/tdx-cfg-block.c
@@ -200,6 +200,7 @@ const struct toradex_som toradex_modules[] = {
        { VERDIN_IMX8MPQ_8GB_WIFI_BT_IT_64G,     "Verdin iMX8M Plus Quad 8GB WB 
IT",     TARGET_IS_ENABLED(VERDIN_IMX8MP)        },
        { VERDIN_IMX8MMQ_2G_WIFI_BT_IT_64G,      "Verdin iMX8M Mini Quad 2GB WB 
IT",     TARGET_IS_ENABLED(VERDIN_IMX8MM)        },
        { SMARC_IMX8MPQ_4GB_WB_IT_64G,           "SMARC iMX8M Plus Quad 4GB WB 
IT",      TARGET_IS_ENABLED(TORADEX_SMARC_IMX8MP) },
+       { VERDIN_AM62D_1G_WIFI_BT_ET,            "Verdin AM62 Dual 1GB WB ET",  
         TARGET_IS_ENABLED(VERDIN_AM62_A53)      },
 };
 
 struct pid4list {
diff --git a/board/toradex/common/tdx-cfg-block.h 
b/board/toradex/common/tdx-cfg-block.h
index 2d038a67a1b9..bf6a08613780 100644
--- a/board/toradex/common/tdx-cfg-block.h
+++ b/board/toradex/common/tdx-cfg-block.h
@@ -163,6 +163,7 @@ enum {
        VERDIN_IMX8MPQ_8GB_WIFI_BT_IT_64G,
        VERDIN_IMX8MMQ_2G_WIFI_BT_IT_64G,
        SMARC_IMX8MPQ_4GB_WB_IT_64G, /* 240 */
+       VERDIN_AM62D_1G_WIFI_BT_ET = 242,
 };
 
 enum {
diff --git a/board/toradex/verdin-am62/verdin-am62.c 
b/board/toradex/verdin-am62/verdin-am62.c
index 26af1af2069f..6d1b79aa5ab1 100644
--- a/board/toradex/verdin-am62/verdin-am62.c
+++ b/board/toradex/verdin-am62/verdin-am62.c
@@ -85,7 +85,8 @@ static void select_dt_from_module_version(void)
                is_wifi = (tdx_hw_tag.prodid == VERDIN_AM62Q_WIFI_BT_IT) ||
                          (tdx_hw_tag.prodid == VERDIN_AM62S_512MB_WIFI_BT_IT) 
||
                          (tdx_hw_tag.prodid == VERDIN_AM62D_1G_WIFI_BT_IT) ||
-                         (tdx_hw_tag.prodid == VERDIN_AM62Q_2G_WIFI_BT_IT);
+                         (tdx_hw_tag.prodid == VERDIN_AM62Q_2G_WIFI_BT_IT) ||
+                         (tdx_hw_tag.prodid == VERDIN_AM62D_1G_WIFI_BT_ET);
        }
 
        if (is_wifi)
-- 
2.54.0

Reply via email to