aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbohu <bohu@google.com>2015-04-02 10:39:50 -0700
committerbohu <bohu@google.com>2015-04-02 10:39:50 -0700
commit8ad041ca19643d26ab0978bc568cf2cbcbff9425 (patch)
treed84aabe81841a027af0188874649627fa1a6f24c
parenta167d4b5ecf28b2811df74c4f8f7007b5a7b6403 (diff)
downloadqemu-android-8ad041ca19643d26ab0978bc568cf2cbcbff9425.tar.gz
hw/arm/ranch.c: Add firmware node to DTstudio-master-release
To boot arm64 again, borrowed similar changes from: https://android-review.googlesource.com/#/c/143670/ "Platform information should be acquired from the DT firmware node since init script does not parse /proc/cpuinfo anymore : https://android-review.googlesource.com/#/c/141740/ " Change-Id: I4202fa4c52d19d527dfd3754d218012cf5fbec87
-rw-r--r--hw/arm/ranchu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/arm/ranchu.c b/hw/arm/ranchu.c
index 4391a40b48..b2cafc878d 100644
--- a/hw/arm/ranchu.c
+++ b/hw/arm/ranchu.c
@@ -154,6 +154,12 @@ static void create_fdt(VirtBoardInfo *vbi)
qemu_fdt_setprop_cell(fdt, "/", "#address-cells", 0x2);
qemu_fdt_setprop_cell(fdt, "/", "#size-cells", 0x2);
+ /* Firmware node */
+ qemu_fdt_add_subnode(fdt, "/firmware");
+ qemu_fdt_add_subnode(fdt, "/firmware/android");
+ qemu_fdt_setprop_string(fdt, "/firmware/android", "compatible", "android,firmware");
+ qemu_fdt_setprop_string(fdt, "/firmware/android", "hardware", "ranchu");
+
/*
* /chosen and /memory nodes must exist for load_dtb
* to fill in necessary properties later