mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-11 19:48:59 +01:00
ipq806x: Add "cpu_type" to root node of the devicetree
Change-Id: I824f9091013ee1cbdb5b511845cb174115c8dfac Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
This commit is contained in:
parent
463c793088
commit
f6cdfa3e0c
1 changed files with 3 additions and 7 deletions
|
|
@ -447,20 +447,16 @@ void board_pci_init(int id)
|
|||
void ipq_fdt_fixup_socinfo(void *blob)
|
||||
{
|
||||
uint32_t cpu_type;
|
||||
int nodeoff, ret;
|
||||
int ret;
|
||||
|
||||
ret = ipq_smem_get_socinfo_cpu_type(&cpu_type);
|
||||
if (ret) {
|
||||
printf("ipq: fdt fixup cannot get socinfo\n");
|
||||
return;
|
||||
}
|
||||
nodeoff = fdt_node_offset_by_compatible(blob, -1, "qcom,ipq8064");
|
||||
|
||||
if (nodeoff < 0) {
|
||||
printf("ipq: fdt fixup cannot find compatible node\n");
|
||||
return;
|
||||
}
|
||||
ret = fdt_setprop(blob, nodeoff, "cpu_type",
|
||||
/* Add "cpu_type" to root node of the devicetree*/
|
||||
ret = fdt_setprop(blob, 0, "cpu_type",
|
||||
&cpu_type, sizeof(cpu_type));
|
||||
if (ret)
|
||||
printf("%s: cannot set cpu type %d\n", __func__, ret);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue