summaryrefslogtreecommitdiffstats
path: root/board/ge/bx50v3
diff options
context:
space:
mode:
authorIan Ray <ian.ray@ge.com>2019-01-31 16:21:18 +0200
committerStefano Babic <sbabic@denx.de>2019-04-13 20:30:08 +0200
commit61c4c2bf1e648bdf49d58a5388f1414f3906b62f (patch)
tree7dc89e2be716c245ee7c5ee3cdce0e8180183395 /board/ge/bx50v3
parent31c9afdd92380c6a1902325f322d2c4ba52d0ba2 (diff)
downloadu-boot-61c4c2bf1e648bdf49d58a5388f1414f3906b62f.tar.gz
u-boot-61c4c2bf1e648bdf49d58a5388f1414f3906b62f.tar.xz
u-boot-61c4c2bf1e648bdf49d58a5388f1414f3906b62f.zip
board: ge: store version information in fdt
Add board-specific FDT function to store U-Boot version in device tree. Signed-off-by: Ian Ray <ian.ray@ge.com>
Diffstat (limited to 'board/ge/bx50v3')
-rw-r--r--board/ge/bx50v3/bx50v3.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c
index b69b9e727b..f42d2ceb79 100644
--- a/board/ge/bx50v3/bx50v3.c
+++ b/board/ge/bx50v3/bx50v3.c
@@ -10,6 +10,7 @@
#include <asm/arch/iomux.h>
#include <asm/arch/mx6-pins.h>
#include <linux/errno.h>
+#include <linux/libfdt.h>
#include <asm/gpio.h>
#include <asm/mach-imx/mxc_i2c.h>
#include <asm/mach-imx/iomux-v3.h>
@@ -27,6 +28,7 @@
#include <i2c.h>
#include <input.h>
#include <pwm.h>
+#include <version.h>
#include <stdlib.h>
#include "../common/ge_common.h"
#include "../common/vpd_reader.h"
@@ -689,6 +691,15 @@ int checkboard(void)
return 0;
}
+#ifdef CONFIG_OF_BOARD_SETUP
+int ft_board_setup(void *blob, bd_t *bd)
+{
+ fdt_setprop(blob, 0, "ge,boot-ver", version_string,
+ strlen(version_string) + 1);
+ return 0;
+}
+#endif
+
static int do_backlight_enable(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
#ifdef CONFIG_VIDEO_IPUV3