diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2015-02-18 14:57:28 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-02-18 15:40:42 +1100 |
commit | 789c171a6783918783855eb195a9502dfe3791ba (patch) | |
tree | 37f7b2bc1e1832e5db438a200e69f8b33ade1a4e /core/init.c | |
parent | 0aecda9cb221649e184fdfb9c9cb11be37d60f51 (diff) | |
download | skiboot-789c171a6783918783855eb195a9502dfe3791ba.zip skiboot-789c171a6783918783855eb195a9502dfe3791ba.tar.gz skiboot-789c171a6783918783855eb195a9502dfe3791ba.tar.bz2 |
Replace is_mambo_chip with a better chip quirk mechanism
And add some basic qemu quirks
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/init.c')
-rw-r--r-- | core/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/init.c b/core/init.c index 42b56c1..681fa22 100644 --- a/core/init.c +++ b/core/init.c @@ -559,7 +559,7 @@ void __noreturn main_cpu_entry(const void *fdt, u32 master_cpu) * to access chips via that path early on. */ init_chips(); - if (is_mambo_chip) + if (chip_quirk(QUIRK_MAMBO_CALLOUTS)) enable_mambo_console(); xscom_init(); mfsi_init(); @@ -628,7 +628,7 @@ void __noreturn main_cpu_entry(const void *fdt, u32 master_cpu) * value (so they appear to go backward at this point), and synchronize * all core timebases to the global ChipTOD network */ - chiptod_init(master_cpu); + chiptod_init(); /* Initialize i2c */ p8_i2c_init(); |