Revision | a2da29a4e2a0adac38dba2ebbb539ce52898d078 (tree) |
---|---|
Time | 2022-07-25 23:12:00 |
Author | Philippe Schenker <philippe.schenker@tora...> |
Commiter | Stefano Babic |
toradex: tdx-cfg-block: add 0068 i.mx 8m mini sku
Add new i.MX 8M Mini SKU to ConfigBlock handling.
0068: Verdin iMX8M Mini Quad 2GB WB IT No CAN
This SKU is identical to 0055 but without CAN. Mention this in the name
so those modules can be distinguished.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
@@ -145,6 +145,7 @@ const char * const toradex_modules[] = { | ||
145 | 145 | [65] = "Verdin iMX8M Plus QuadLite 1GB IT", |
146 | 146 | [66] = "Verdin iMX8M Plus Quad 8GB Wi-Fi / BT", |
147 | 147 | [67] = "Apalis iMX8 QuadMax 8GB Wi-Fi / BT IT", |
148 | + [68] = "Verdin iMX8M Mini Quad 2GB WB IT No CAN", | |
148 | 149 | }; |
149 | 150 | |
150 | 151 | const char * const toradex_carrier_boards[] = { |
@@ -408,6 +409,7 @@ static int get_cfgblock_interactive(void) | ||
408 | 409 | char it = 'n'; |
409 | 410 | char wb = 'n'; |
410 | 411 | char mem8g = 'n'; |
412 | + char can = 'y'; | |
411 | 413 | int len = 0; |
412 | 414 | int ret = 0; |
413 | 415 |
@@ -435,6 +437,13 @@ static int get_cfgblock_interactive(void) | ||
435 | 437 | mem8g = console_buffer[0]; |
436 | 438 | } |
437 | 439 | #endif |
440 | +#if defined(CONFIG_TARGET_VERDIN_IMX8MM) | |
441 | + if (is_cpu_type(MXC_CPU_IMX8MM) && (wb == 'y' || wb == 'Y')) { | |
442 | + sprintf(message, "Does your module have CAN? [y/N] "); | |
443 | + len = cli_readline(message); | |
444 | + can = console_buffer[0]; | |
445 | + } | |
446 | +#endif | |
438 | 447 | #endif |
439 | 448 | |
440 | 449 | soc = env_get("soc"); |
@@ -522,7 +531,9 @@ static int get_cfgblock_interactive(void) | ||
522 | 531 | else |
523 | 532 | tdx_hw_tag.prodid = VERDIN_IMX8MMDL; |
524 | 533 | } else if (is_cpu_type(MXC_CPU_IMX8MM)) { |
525 | - if (wb == 'y' || wb == 'Y') | |
534 | + if (can == 'n' || can == 'N') | |
535 | + tdx_hw_tag.prodid = VERDIN_IMX8MMQ_WIFI_BT_IT_NO_CAN; | |
536 | + else if (wb == 'y' || wb == 'Y') | |
526 | 537 | tdx_hw_tag.prodid = VERDIN_IMX8MMQ_WIFI_BT_IT; |
527 | 538 | else |
528 | 539 | tdx_hw_tag.prodid = VERDIN_IMX8MMQ_IT; |
@@ -88,6 +88,7 @@ enum { | ||
88 | 88 | VERDIN_IMX8MPQL_IT, /* 65 */ |
89 | 89 | VERDIN_IMX8MPQ_8GB_WIFI_BT, |
90 | 90 | APALIS_IMX8QM_8GB_WIFI_BT_IT, |
91 | + VERDIN_IMX8MMQ_WIFI_BT_IT_NO_CAN, | |
91 | 92 | }; |
92 | 93 | |
93 | 94 | enum { |
@@ -83,7 +83,8 @@ static void select_dt_from_module_version(void) | ||
83 | 83 | * device tree. |
84 | 84 | */ |
85 | 85 | is_wifi = (tdx_hw_tag.prodid == VERDIN_IMX8MMQ_WIFI_BT_IT) || |
86 | - (tdx_hw_tag.prodid == VERDIN_IMX8MMDL_WIFI_BT_IT); | |
86 | + (tdx_hw_tag.prodid == VERDIN_IMX8MMDL_WIFI_BT_IT) || | |
87 | + (tdx_hw_tag.prodid == VERDIN_IMX8MMQ_WIFI_BT_IT_NO_CAN); | |
87 | 88 | } |
88 | 89 | |
89 | 90 | switch (get_pcb_revision()) { |