mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-07 17:57:38 +01:00
ARM: qca: Added fdt-fixup for machid
Change-Id: Ie4a26dfcd2063a5fba5a256e6a373c21180900ce Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
parent
c8c916b499
commit
c1264c6cc8
1 changed files with 11 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ void ipq_fdt_fixup_version(void *blob)
|
|||
{
|
||||
int nodeoff, ret;
|
||||
char ver[OEM_VERSION_STRING_LENGTH + VERSION_STRING_LENGTH + 1];
|
||||
uint32_t machid;
|
||||
|
||||
nodeoff = fdt_path_offset(blob, "/");
|
||||
|
||||
|
|
@ -104,6 +105,16 @@ void ipq_fdt_fixup_version(void *blob)
|
|||
return;
|
||||
}
|
||||
|
||||
machid = smem_get_board_platform_type();
|
||||
|
||||
if (machid) {
|
||||
ret = fdt_setprop(blob, nodeoff, "machid",
|
||||
&machid, sizeof(uint32_t));
|
||||
|
||||
if (ret)
|
||||
debug("fdt-fixup: unable to set machid(%d)\n", ret);
|
||||
}
|
||||
|
||||
if (!smem_get_build_version(ver, sizeof(ver), BOOT_VERSION)) {
|
||||
debug("BOOT Build Version: %s\n", ver);
|
||||
ret = fdt_setprop(blob, nodeoff, "boot_version",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue