mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
Merge "ipq806x: Add "cpu_type" to root node of the devicetree"
This commit is contained in:
commit
6a11f0db3f
1 changed files with 3 additions and 7 deletions
|
|
@ -533,20 +533,16 @@ void board_pci_deinit()
|
|||
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