]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
KM/IVM: split the IVM reading and parsing in 2 parts
authorValentin Longchamp <valentin.longchamp@keymile.com>
Tue, 10 Feb 2015 16:10:13 +0000 (17:10 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:52:21 +0000 (13:52 +0200)
commitcbc329d844d6886fe5a7eda53ff4109e9df31721
treed2c6854d7c79db4479db8752b2f712d69b55fd3b
parent7f1741f3ee5507164731ed65336061f9e929648e
KM/IVM: split the IVM reading and parsing in 2 parts

This allows to first read the IVM content (earlier in the boot sequence)
and define the ethaddr env variable thanks to the ivm_read_eepromi().
Later, the IVM content can be parsed and used to define some hush
variables, when the hush subsystem is available thanks to
ivm_analyze_eeprom().

To avoid the HW read to happen twice, the buffer passed to
ivm_read_eeprom() has to be reused by ivm_analyze_eeprom (and thus
allocated before calling ivm_read_eeprom()).

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
board/keymile/common/common.h
board/keymile/common/ivm.c