diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2023-06-02 14:30:16 +1000 |
---|---|---|
committer | Reza Arbab <arbab@linux.ibm.com> | 2023-07-11 09:12:35 -0500 |
commit | 2d878b182c79d4ff5b6feb43f02b237bdf231daa (patch) | |
tree | 4bd39579e21e0b6056fd47871029ffe497fce316 /core | |
parent | 25e28eae9acb0275b7c3a7f3377327b30aae6b5c (diff) | |
download | skiboot-2d878b182c79d4ff5b6feb43f02b237bdf231daa.zip skiboot-2d878b182c79d4ff5b6feb43f02b237bdf231daa.tar.gz skiboot-2d878b182c79d4ff5b6feb43f02b237bdf231daa.tar.bz2 |
hw/chiptod: allow qemu to use the chiptod
There is a QEMU model for ChipTOD (not yet upstream) that provides
enough to get through skiboot's sync sequence.
So run the chiptod init when running under QEMU, if it is being
provided in the device tree. If not, don't crash because the QEMU
patch has not been merged yet...
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/chip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/chip.c b/core/chip.c index 6fc5d42..cee6582 100644 --- a/core/chip.c +++ b/core/chip.c @@ -187,8 +187,7 @@ void init_chips(void) dt_node_is_compatible(dt_root, "qemu,powernv9") || dt_node_is_compatible(dt_root, "qemu,powernv10") || dt_find_by_path(dt_root, "/qemu")) { - proc_chip_quirks |= QUIRK_QEMU | QUIRK_NO_CHIPTOD - | QUIRK_NO_DIRECT_CTL | QUIRK_NO_RNG; + proc_chip_quirks |= QUIRK_QEMU | QUIRK_NO_DIRECT_CTL | QUIRK_NO_RNG; prlog(PR_NOTICE, "CHIP: Detected QEMU simulator\n"); } |