]> git.sur5r.net Git - u-boot/commit
imx: ventana: add econfig command
authorTim Harvey <tharvey@gateworks.com>
Fri, 8 Aug 2014 05:35:45 +0000 (22:35 -0700)
committerStefano Babic <sbabic@denx.de>
Wed, 20 Aug 2014 11:08:37 +0000 (13:08 +0200)
commit9c0fe83eb58ed9cb9faa17646719240abe55f4bf
treef8be9487b5efae8454b510a6f9ed004dc11deeb0
parent6a9032112e1bca8bab974b5da9a03b37d49538a6
imx: ventana: add econfig command

The Gateworks Ventana EEPROM contains a set of configuration bits that
affect the removal of device-tree nodes that support peripherals that do not
exist on sub-loaded boards. This patch adds:
 - a structure to define a config bit name, dt node alias, bit position
 - an array of supported configuration items
 - an econfig command to get/set/list configuration bits
 - use of the array when adjusting the FDT prior to boot

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/eeprom.c
board/gateworks/gw_ventana/gw_ventana.c
board/gateworks/gw_ventana/ventana_eeprom.h
include/configs/gw_ventana.h