diff options
author | Nikita Kiryanov <nikita@compulab.co.il> | 2012-01-12 03:26:30 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-01-16 08:40:11 +0100 |
commit | 8230925049c164908f3936428e73e240830752f5 (patch) | |
tree | a42928547b35e8b5be44704117ce48aec7e7ab34 /board/cm_t35/cm_t35.c | |
parent | ce15ec9f695c5ee7023c3e256ee67a2538496c46 (diff) | |
download | u-boot-imx-8230925049c164908f3936428e73e240830752f5.zip u-boot-imx-8230925049c164908f3936428e73e240830752f5.tar.gz u-boot-imx-8230925049c164908f3936428e73e240830752f5.tar.bz2 |
cm-t35: add EEPROM module and pass Linux a serial number
Add board specific EEPROM handling module,
read the serial number from the EEPROM and pass it to Linux.
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'board/cm_t35/cm_t35.c')
-rw-r--r-- | board/cm_t35/cm_t35.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/board/cm_t35/cm_t35.c b/board/cm_t35/cm_t35.c index ff372d8..0d5a401 100644 --- a/board/cm_t35/cm_t35.c +++ b/board/cm_t35/cm_t35.c @@ -33,6 +33,7 @@ #include <net.h> #include <i2c.h> #include <twl4030.h> +#include <linux/compiler.h> #include <asm/io.h> #include <asm/arch/mem.h> @@ -421,3 +422,13 @@ int board_eth_init(bd_t *bis) return rc; } #endif + +void __weak get_board_serial(struct tag_serialnr *serialnr) +{ + /* + * This corresponds to what happens when we can communicate with the + * eeprom but don't get a valid board serial value. + */ + serialnr->low = 0; + serialnr->high = 0; +}; |