On Thu, 2016-10-13 at 02:11 +0200, Marcel Ziswiler wrote: > This series integrates 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. > > Changes in v3: > - introduce new patch dropping unused CONFIG_CUSTOM_BOARDINFO by > reverting commit a9ad18c9d5fe2554753b0f9a52adfd5ebce61147 > - introduce new patch making show_board_info() a weak function which > allows for custom board specific implementations thereof > - fixup deactivation of CONFIG_DISPLAY_BOARDINFO in favour of > CONFIG_DISPLAY_BOARDINFO_LATE which also displays on the LCD after > recent move thereof to Kconfig > - use custom show_board_info() rather than checkboard() and > checkboard() rather than checkboard_fallback() > - also reword commit message accordingly > - use checkboard() rather than checkboard_fallback() > - drop CUSTOM_BOARDINFO > - drop patch 1 'colibri_imx7/vf: move to custom > checkboard_fallback()' > in favour of Stefan's proposed solution
Whole series: Acked-by: Max Krummenacher <max.krummenac...@toradex.com> > > Changes in v2: > - fixed common.h include mess in board/toradex/common by renaming > common* to tdx-common > - renamed TRDX to TDX and trdx to tdx as in common use internally > - consolidated makefiles and changed copyright message > - renamed configblock* to tdx-cfg-block* analogous to Kconfig symbols > - moved board/toradex/common/Kconfig sourcing from arch/arm/Kconfig > into our own board Kconfig files > - use a named choice for the config block location for above to work > without issuing any warnings (undocumented kbuild feature curtsey > Arnaud Lacombe) > - added CUSTOM_BOARDINFO into our common Kconfig to avoid recent > no_new_adhoc_configs_check error > - add Max' patch > colibri_vf: usb gadget: toradex pid is now set generically > > Marcel Ziswiler (6): > Revert "generic-board: allow showing custom board info" > generic-board: make show_board_info a weak function > apalis/colibri_t20/t30: deactivate displaying board info > toradex: config block handling > apalis/colibri_imx7/pxa270/t20/t30/vf: integrate config block > handling > apalis/colibri_t30: move environment location > > Max Krummenacher (1): > colibri_vf: usb gadget: toradex pid is now set generically > > board/toradex/apalis_t30/Kconfig | 18 + > board/toradex/apalis_t30/apalis_t30.c | 12 +- > board/toradex/colibri_imx7/Kconfig | 16 + > board/toradex/colibri_pxa270/Kconfig | 11 + > board/toradex/colibri_pxa270/colibri_pxa270.c | 8 + > board/toradex/colibri_t20/Kconfig | 11 + > board/toradex/colibri_t20/colibri_t20.c | 13 + > board/toradex/colibri_t30/Kconfig | 18 + > board/toradex/colibri_t30/colibri_t30.c | 9 +- > board/toradex/colibri_vf/Kconfig | 14 + > board/toradex/colibri_vf/colibri_vf.c | 16 - > board/toradex/common/Kconfig | 76 ++++ > board/toradex/common/Makefile | 11 + > board/toradex/common/tdx-cfg-block.c | 544 > ++++++++++++++++++++++++++ > board/toradex/common/tdx-cfg-block.h | 68 ++++ > board/toradex/common/tdx-common.c | 168 ++++++++ > board/toradex/common/tdx-common.h | 13 + > common/board_info.c | 4 +- > configs/apalis_t30_defconfig | 1 + > configs/colibri_t20_defconfig | 1 + > configs/colibri_t30_defconfig | 1 + > configs/colibri_vf_defconfig | 1 + > include/configs/apalis_t30.h | 11 +- > include/configs/colibri_imx7.h | 6 +- > include/configs/colibri_pxa270.h | 7 +- > include/configs/colibri_t20.h | 2 +- > include/configs/colibri_t30.h | 11 +- > include/configs/colibri_vf.h | 13 +- > scripts/config_whitelist.txt | 5 - > 29 files changed, 1041 insertions(+), 48 deletions(-) > create mode 100644 board/toradex/common/Kconfig > create mode 100644 board/toradex/common/Makefile > create mode 100644 board/toradex/common/tdx-cfg-block.c > create mode 100644 board/toradex/common/tdx-cfg-block.h > create mode 100644 board/toradex/common/tdx-common.c > create mode 100644 board/toradex/common/tdx-common.h > _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot