summaryrefslogtreecommitdiff
path: root/board/toradex/common/tdx-cfg-block.h
diff options
context:
space:
mode:
authorIgor Opaniuk <igor.opaniuk@toradex.com>2020-06-22 23:27:56 +0300
committerDenys Drozdov <denys.drozdov@toradex.com>2021-01-08 19:42:06 +0200
commiteb583df9867b0b18a43c9767b0c3de21b0532062 (patch)
tree05030d647c4de4f656c204aedcef49b041ff9a39 /board/toradex/common/tdx-cfg-block.h
parent2c441f0628ee2f16a12a181048ddc332e8f04988 (diff)
toradex: tdx-cfg-block: add support for EEPROM
This introduces support for EEPROM as a storage for the main Toradex config block and additional config blocks on extra EEPROM chips (on carrier board or video adapters). To enable EEPROM as a storage for the main config block: TDX_HAVE_EEPROM=y. For additional EEPROMs please enable this Kconfig symbol: TDX_CFG_BLOCK_EXTRA=y. Information about existing EEPROM chips is provided via Device Tree using aliases. You can also write configuration for the carrier board using create_carrier subcommand for cfgblock. Example: Verdin iMX8MM # cfgblock create_carrier Supported carrier boards: UNKNOWN CARRIER = [0] Verdin Carrier Board = [1] Choose your carrier board (provide ID): 1 Enter carrier board version (e.g. V1.1B): V1.0A Enter carrier board serial number: 10622780 Also with barcode: Verdin iMX8MM # cfgblock create carrier -y 0156100010622780 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> (cherry picked from commit d3eedd52f8e244cc036db522bfff9549397a75ed)
Diffstat (limited to 'board/toradex/common/tdx-cfg-block.h')
-rw-r--r--board/toradex/common/tdx-cfg-block.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/toradex/common/tdx-cfg-block.h b/board/toradex/common/tdx-cfg-block.h
index 0ac6a53613..c7bc021be9 100644
--- a/board/toradex/common/tdx-cfg-block.h
+++ b/board/toradex/common/tdx-cfg-block.h
@@ -94,9 +94,12 @@ extern const char * const toradex_modules[];
extern const char * const toradex_carrier_boards[];
extern bool valid_cfgblock;
extern struct toradex_hw tdx_hw_tag;
+extern struct toradex_hw tdx_car_hw_tag;
extern struct toradex_eth_addr tdx_eth_addr;
extern u32 tdx_serial;
+extern u32 tdx_car_serial;
int read_tdx_cfg_block(void);
+int read_tdx_cfg_block_carrier(void);
#endif /* _TDX_CFG_BLOCK_H */