summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2015-04-23 17:17:03 +0200
committerStefan Agner <stefan.agner@toradex.com>2015-04-23 17:23:44 +0200
commit93d011ae1319c297d3cf31d40a88b21699d89d7b (patch)
tree38355a449f774fef9cfa9718027346bb6c39f699
parentbb1a37857e2407e2c0e2fb7e62a83f708d57ca23 (diff)
colibri_vf: set the devices serial number in the device tree
Use the proposed format to transport the device's serial number to the kernel: http://www.spinics.net/lists/devicetree/msg76756.html
-rw-r--r--board/toradex/colibri_vf/colibri_vf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/toradex/colibri_vf/colibri_vf.c b/board/toradex/colibri_vf/colibri_vf.c
index 42de260661..59c8c5bddf 100644
--- a/board/toradex/colibri_vf/colibri_vf.c
+++ b/board/toradex/colibri_vf/colibri_vf.c
@@ -495,6 +495,11 @@ int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name)
#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
int ft_board_setup(void *blob, bd_t *bd)
{
+#ifdef CONFIG_TRDX_CFG_BLOCK
+ fdt_setprop(blob, 0, "serial-number", getenv("serial#"),
+ strlen(getenv("serial#")) + 1);
+#endif
+
return fsl_dcu_fixedfb_setup(blob);
}
#endif