mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
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>
This commit is contained in:
parent
6b0861a942
commit
2df573e6a5
|
@ -14,6 +14,7 @@ choice
|
||||||
|
|
||||||
config TARGET_DRAGONBOARD410C
|
config TARGET_DRAGONBOARD410C
|
||||||
bool "96Boards Dragonboard 410C"
|
bool "96Boards Dragonboard 410C"
|
||||||
|
select BOARD_LATE_INIT
|
||||||
help
|
help
|
||||||
Support for 96Boards Dragonboard 410C. This board complies with
|
Support for 96Boards Dragonboard 410C. This board complies with
|
||||||
96Board Open Platform Specifications. Features:
|
96Board Open Platform Specifications. Features:
|
||||||
|
|
|
@ -151,6 +151,16 @@ int board_init(void)
|
||||||
return 0;
|
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
|
/* Fixup of DTB for Linux Kernel
|
||||||
* 1. Fixup installed DRAM.
|
* 1. Fixup installed DRAM.
|
||||||
* 2. Fixup WLAN/BT Mac address:
|
* 2. Fixup WLAN/BT Mac address:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user