diff options
author | Igor Opaniuk <igor.opaniuk@toradex.com> | 2020-04-15 16:09:19 +0300 |
---|---|---|
committer | Igor Opaniuk <igor.opaniuk@toradex.com> | 2020-05-05 12:09:18 +0300 |
commit | 10dcdc2135dc9bec980bce435305ce2d718c9fbb (patch) | |
tree | 5a31f7bcc7a397dfd179f56ca06c1ecf6083edc8 /board/toradex/common/tdx-cfg-block.h | |
parent | e97dadb6d015e7adf796549ad0bd0b7d9d4f9a69 (diff) |
toradex: tdx-cfg-clock: add migration routine from PID8
1. Add migration routine from PID8 (including sane value checks)
2. s/extra/carrier/g if functionality is used only for carrier board
tdx config block.
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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/toradex/common/tdx-cfg-block.h b/board/toradex/common/tdx-cfg-block.h index bacfdf83d2..8dd6c6826d 100644 --- a/board/toradex/common/tdx-cfg-block.h +++ b/board/toradex/common/tdx-cfg-block.h @@ -94,7 +94,7 @@ enum { extern const char * const toradex_modules[]; extern const char * const toradex_prototype_modules[]; -extern const char * const toradex_carriers[]; +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; @@ -103,7 +103,8 @@ extern u32 tdx_serial; extern u32 tdx_car_serial; int read_tdx_cfg_block(void); -int read_tdx_cfg_block_extra(void); +int read_tdx_cfg_block_carrier(void); +int try_migrate_tdx_cfg_block_carrier(void); int is_tdx_prototype_prodid(u16 prodid); |