diff options
author | Alexander Graf <agraf@suse.de> | 2011-06-02 13:53:40 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2011-06-17 02:58:23 +0200 |
commit | b0fb84236da4a36a852010b6b5d5d3ca497a2b68 (patch) | |
tree | 870571337a99ee5de81c8150a641b49f80a27bd0 /pc-bios | |
parent | eb47d7c5d96060040931c42773ee07e61e547af9 (diff) | |
download | qemu-b0fb84236da4a36a852010b6b5d5d3ca497a2b68.zip qemu-b0fb84236da4a36a852010b6b5d5d3ca497a2b68.tar.gz qemu-b0fb84236da4a36a852010b6b5d5d3ca497a2b68.tar.bz2 |
PPC: E500: Implement reboot controller
When Linux reboots an e500 VM, it writes to a magic register in the
"global-utilities" device indicated by the device tree. We were not
emulating that device so far, rendering the VM reboot-less.
This patch implements that device with only the reboot functionality
implemented and adds it to the device tree. With this patch applied,
I can successfully reboot a -M mpc8544ds VM.
Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Andreas Färber <andreas.faerber@web.de>
Diffstat (limited to 'pc-bios')
-rw-r--r-- | pc-bios/mpc8544ds.dtb | bin | 12288 -> 2257 bytes | |||
-rw-r--r-- | pc-bios/mpc8544ds.dts | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/pc-bios/mpc8544ds.dtb b/pc-bios/mpc8544ds.dtb Binary files differindex 3299546..189224e 100644 --- a/pc-bios/mpc8544ds.dtb +++ b/pc-bios/mpc8544ds.dtb diff --git a/pc-bios/mpc8544ds.dts b/pc-bios/mpc8544ds.dts index 872152d..fd792d5 100644 --- a/pc-bios/mpc8544ds.dts +++ b/pc-bios/mpc8544ds.dts @@ -82,6 +82,12 @@ compatible = "chrp,open-pic"; device_type = "open-pic"; }; + + global-utilities@e0000 { //global utilities block + compatible = "fsl,mpc8544-guts"; + reg = <0xe0000 0x1000>; + fsl,has-rstcr; + }; }; pci0: pci@e0008000 { |