toradex: tdx-cfg-clock: add migration routine from PID8
authorIgor Opaniuk <igor.opaniuk@toradex.com>
Wed, 15 Jul 2020 10:30:56 +0000 (13:30 +0300)
committerStefano Babic <sbabic@denx.de>
Mon, 27 Jul 2020 12:00:36 +0000 (14:00 +0200)
commitdb4ab6d4533e213a21c91fd51b6b451eb80ee86a
tree1a81e20cc9216cf83c551ba44296379c39bd1387
parent0c6b5588ef4ab908579ef53d930914c64cb762ab
toradex: tdx-cfg-clock: add migration routine from PID8

Add migration routine from PID8 pre-stored values on EEPROM
(including sane value checks).

Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
board/toradex/common/tdx-cfg-block.c
board/toradex/common/tdx-cfg-block.h