ARM: qca: Added fdt-fixup for machid

Change-Id: Ie4a26dfcd2063a5fba5a256e6a373c21180900ce
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
Gokul Sriram Palanisamy 2017-10-04 20:31:06 +05:30
parent c8c916b499
commit c1264c6cc8

View file

@ -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",