From 93d011ae1319c297d3cf31d40a88b21699d89d7b Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 23 Apr 2015 17:17:03 +0200 Subject: 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 --- board/toradex/colibri_vf/colibri_vf.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3