mgcoge, mgsuvd: added support for the IVM EEprom.
The EEprom contains some Manufacturerinformation,
which are read from u-boot at boot time, and saved
in same hush shell variables.
Signed-off-by: Heiko Schocher <hs@denx.de>
diff --git a/board/keymile/mgsuvd/mgsuvd.c b/board/keymile/mgsuvd/mgsuvd.c
index d78b2da..ecc8d75 100644
--- a/board/keymile/mgsuvd/mgsuvd.c
+++ b/board/keymile/mgsuvd/mgsuvd.c
@@ -32,6 +32,8 @@
#include <libfdt.h>
#endif
+extern int ivm_read_eeprom (void);
+
DECLARE_GLOBAL_DATA_PTR;
const uint sdram_table[] =
@@ -145,6 +147,12 @@
return 0;
}
+int hush_init_var (void)
+{
+ ivm_read_eeprom ();
+ return 0;
+}
+
#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT)
/*
* update "memory" property in the blob