summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2011-02-09 13:40:51 -0600
committerKumar Gala <galak@kernel.crashing.org>2011-02-09 23:30:39 -0600
commit3fee334c85fd16904f8d23487247508cceab0228 (patch)
treea3ea6e3aa9e25c8cd1353195268ad46f70206c9f
parent494a7d215bfba17f1a94736df40c332c8713c30e (diff)
downloadblackbird-obmc-uboot-3fee334c85fd16904f8d23487247508cceab0228.tar.gz
blackbird-obmc-uboot-3fee334c85fd16904f8d23487247508cceab0228.zip
fsl: update CRC after setting EEPROM identifier
The "mac id" command is used to initialize the EEPROM data to a specific format, but it was not updating the CRC. This didn't cause any real problems, because writing the data to the EEPROM will always update the CRC anyway, but it did result in a bogus CRC warning. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
-rw-r--r--board/freescale/common/sys_eeprom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c
index 11dfd84fe6..3ecfb06cc8 100644
--- a/board/freescale/common/sys_eeprom.c
+++ b/board/freescale/common/sys_eeprom.c
@@ -361,6 +361,7 @@ int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#else
memcpy(e.id, "CCID", sizeof(e.id));
#endif
+ update_crc();
return 0;
}
OpenPOWER on IntegriCloud