]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/cm_t35/cm_t35.c
cm-t35: add EEPROM module and pass Linux a serial number
[karo-tx-uboot.git] / board / cm_t35 / cm_t35.c
index ff372d836fe382226ace709b8597798bf0a4695f..0d5a401995f65f75b50dda1737014be9ef7e1f27 100644 (file)
@@ -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;
+};