summaryrefslogtreecommitdiff
path: root/board/compulab/common
diff options
context:
space:
mode:
authorIgor Grinberg <grinberg@compulab.co.il>2014-11-03 11:32:22 +0200
committerTom Rini <trini@ti.com>2014-11-06 11:04:41 -0500
commit0b6f358c01ab0e2828cb34a8b60e565c72b6a764 (patch)
tree278668eaaddd071d0afa06be822210ad2749f51c /board/compulab/common
parent9886c3d7a803f639b975f63397cc24a3307fa7b6 (diff)
downloadu-boot-imx-0b6f358c01ab0e2828cb34a8b60e565c72b6a764.zip
u-boot-imx-0b6f358c01ab0e2828cb34a8b60e565c72b6a764.tar.gz
u-boot-imx-0b6f358c01ab0e2828cb34a8b60e565c72b6a764.tar.bz2
omap3: cm-t35: move get_board_serial() fallback
The fallback is used for cases when CONFIG_SERIAL_TAG defined, but the eeprom is not used. The fallback is useful for more than one CompuLab board, so move it to a common location. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'board/compulab/common')
-rw-r--r--board/compulab/common/common.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/compulab/common/common.c b/board/compulab/common/common.c
index f2ce522..b25d9a2 100644
--- a/board/compulab/common/common.c
+++ b/board/compulab/common/common.c
@@ -25,6 +25,18 @@ void cl_print_pcb_info(void)
printf("PCB: %u.%u\n", rev_major, rev_minor);
}
+#ifdef CONFIG_SERIAL_TAG
+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;
+};
+#endif
+
#ifdef CONFIG_CMD_USB
int cl_usb_hub_init(int gpio, const char *label)
{