diff options
author | Igor Opaniuk <igor.opaniuk@toradex.com> | 2020-04-06 22:22:16 +0300 |
---|---|---|
committer | Igor Opaniuk <igor.opaniuk@toradex.com> | 2020-05-04 21:42:21 +0300 |
commit | 4554a0918af7e74c934a3ad707aba10ef31e111a (patch) | |
tree | 5b595365e64bad1a7d7d5f1225fd92d39c619ac5 /board/toradex/common/tdx-cfg-block.h | |
parent | c4731c7ad61e1d4f022bfae14345956b07af47bd (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 provide 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:
cVerdin iMX8MM # cfgblock create carrier -y 0156100010622780
Relates-to: ELB-1402
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Diffstat (limited to 'board/toradex/common/tdx-cfg-block.h')
-rw-r--r-- | board/toradex/common/tdx-cfg-block.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/board/toradex/common/tdx-cfg-block.h b/board/toradex/common/tdx-cfg-block.h index 3c082870ae..bacfdf83d2 100644 --- a/board/toradex/common/tdx-cfg-block.h +++ b/board/toradex/common/tdx-cfg-block.h @@ -82,14 +82,28 @@ enum { APALIS_IMX8QXP_ECC_WIFI_BT_IT_PROTOTYPE = 2600, }; +enum { + DAHLIA = 155, + VERDIN_DEVELOPMENT_BOARD = 156, +}; + +enum { + VERDIN_DSI_TO_HDMI_ADAPTER = 157, + VERDIN_DSI_TO_LVDS_ADAPTER = 159, +}; + extern const char * const toradex_modules[]; extern const char * const toradex_prototype_modules[]; +extern const char * const toradex_carriers[]; 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_extra(void); int is_tdx_prototype_prodid(u16 prodid); |