mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-08 13:00:57 +01:00
ARM: ipq8074: Added support to patch soc_id
This patch enables reading soc_id form smem required by thermal deamon in kernel and patches it to kernel dtb. Change-Id: If4d68d10e47eeed26a9c2867f40abc18d9027812 Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
parent
908aefaa1b
commit
c2a95f152f
1 changed files with 19 additions and 1 deletions
|
|
@ -688,7 +688,25 @@ int ipq_board_usb_init(void)
|
|||
|
||||
int ipq_fdt_fixup_socinfo(void *blob)
|
||||
{
|
||||
return 0;
|
||||
uint32_t cpu_type;
|
||||
int nodeoff, ret;
|
||||
|
||||
ret = ipq_smem_get_socinfo_cpu_type(&cpu_type);
|
||||
if (ret) {
|
||||
printf("ipq: fdt fixup cannot get socinfo\n");
|
||||
return ret;
|
||||
}
|
||||
nodeoff = fdt_path_offset(blob, "/");
|
||||
|
||||
if (nodeoff < 0) {
|
||||
printf("ipq: fdt fixup cannot find root node\n");
|
||||
return nodeoff;
|
||||
}
|
||||
ret = fdt_setprop(blob, nodeoff, "cpu_type",
|
||||
&cpu_type, sizeof(cpu_type));
|
||||
if (ret)
|
||||
printf("%s: cannot set cpu type %d\n", __func__, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void ipq_fdt_fixup_usb_device_mode(void *blob)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue