toradex: config block handling
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Wed, 16 Nov 2016 16:49:22 +0000 (17:49 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 28 Nov 2016 20:10:32 +0000 (15:10 -0500)
commita2777ecb9d11882dba696035defa35c70dd26733
tree1f28cb6d01bdcadd62b82363130634604aca3b04
parentb05d6806cd6a95d46c22036a684a09501fdb2264
toradex: config block handling

Add Toradex factory configuration block handling. The config block is a
data structure which gets stored to flash during production testing. The
structure holds such information as board resp. hardware revision,
product ID and serial number which is used as the NIC part of the
Ethernet MAC address as well. The config block will be read upon boot by
the show_board_info() function, displayed as part of the board
information and passed to Linux via device tree or ATAGs.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
board/toradex/common/Kconfig [new file with mode: 0644]
board/toradex/common/Makefile [new file with mode: 0644]
board/toradex/common/tdx-cfg-block.c [new file with mode: 0644]
board/toradex/common/tdx-cfg-block.h [new file with mode: 0644]
board/toradex/common/tdx-common.c [new file with mode: 0644]
board/toradex/common/tdx-common.h [new file with mode: 0644]