aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorRamon Fried <ramon.fried@gmail.com>2018-09-21 13:35:46 +0300
committerTom Rini <trini@konsulko.com>2018-09-30 13:00:35 -0400
commit2df573e6a5d30c3f009a9cea8f5e2e11cc9710e3 (patch)
tree2ac775adb559222da742ae73b0864fb2495c7cff /board
parent6b0861a94295a9f68dea1df6fff0d83e63718479 (diff)
downloadu-boot-2df573e6a5d30c3f009a9cea8f5e2e11cc9710e3.zip
u-boot-2df573e6a5d30c3f009a9cea8f5e2e11cc9710e3.tar.gz
u-boot-2df573e6a5d30c3f009a9cea8f5e2e11cc9710e3.tar.bz2
db410c: serial# env using msm board serial
The serial# environment variable needs to be defined so it will be used by fastboot as serial for the endpoint descriptor. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
Diffstat (limited to 'board')
-rw-r--r--board/qualcomm/dragonboard410c/dragonboard410c.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/qualcomm/dragonboard410c/dragonboard410c.c b/board/qualcomm/dragonboard410c/dragonboard410c.c
index e8a3ed0..b2a72bc 100644
--- a/board/qualcomm/dragonboard410c/dragonboard410c.c
+++ b/board/qualcomm/dragonboard410c/dragonboard410c.c
@@ -151,6 +151,16 @@ int board_init(void)
return 0;
}
+int board_late_init(void)
+{
+ char serial[16];
+
+ memset(serial, 0, 16);
+ snprintf(serial, 13, "%x", msm_board_serial());
+ env_set("serial#", serial);
+ return 0;
+}
+
/* Fixup of DTB for Linux Kernel
* 1. Fixup installed DRAM.
* 2. Fixup WLAN/BT Mac address: