Commit 2df573e6a5d30c3f009a9cea8f5e2e11cc9710e3
Committed by
Tom Rini
1 parent
6b0861a942
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
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>
Showing 2 changed files with 11 additions and 0 deletions Side-by-side Diff
arch/arm/mach-snapdragon/Kconfig
board/qualcomm/dragonboard410c/dragonboard410c.c
... | ... | @@ -151,6 +151,16 @@ |
151 | 151 | return 0; |
152 | 152 | } |
153 | 153 | |
154 | +int board_late_init(void) | |
155 | +{ | |
156 | + char serial[16]; | |
157 | + | |
158 | + memset(serial, 0, 16); | |
159 | + snprintf(serial, 13, "%x", msm_board_serial()); | |
160 | + env_set("serial#", serial); | |
161 | + return 0; | |
162 | +} | |
163 | + | |
154 | 164 | /* Fixup of DTB for Linux Kernel |
155 | 165 | * 1. Fixup installed DRAM. |
156 | 166 | * 2. Fixup WLAN/BT Mac address: |