Revision | abe52f58bc54efa9a9849ad4246666ae0be94d38 (tree) |
---|---|
Time | 2022-07-25 23:12:00 |
Author | Francesco Dolcini <francesco.dolcini@tora...> |
Commiter | Stefano Babic |
toradex: common: Improve product/serial print during boot
Add product id print in show_board_info(), with an increasing number of
Toradex SKUs available with small differences it makes sense to print it.
Move serial number print to a dedicated line, this prevents the previous
line with the product name to overflow the 80 columns with any
reasonable product name length.
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
@@ -115,10 +115,11 @@ int show_board_info(void) | ||
115 | 115 | |
116 | 116 | env_set("serial#", tdx_serial_str); |
117 | 117 | |
118 | - printf("Model: Toradex %s %s, Serial# %s\n", | |
118 | + printf("Model: Toradex %04d %s %s\n", | |
119 | + tdx_hw_tag.prodid, | |
119 | 120 | toradex_modules[tdx_hw_tag.prodid].name, |
120 | - tdx_board_rev_str, | |
121 | - tdx_serial_str); | |
121 | + tdx_board_rev_str); | |
122 | + printf("Serial#: %s\n", tdx_serial_str); | |
122 | 123 | #ifdef CONFIG_TDX_CFG_BLOCK_EXTRA |
123 | 124 | if (read_tdx_cfg_block_carrier()) { |
124 | 125 | printf("MISSING TORADEX CARRIER CONFIG BLOCKS\n"); |