aboutsummaryrefslogtreecommitdiff
path: root/core/chip.c
diff options
context:
space:
mode:
authorRyan Grimm <grimm@linux.vnet.ibm.com>2016-02-17 11:27:36 -0500
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-03-07 19:28:30 +1100
commit687103941245c3a10ba68266aaf661d91815e773 (patch)
tree901defec58225e57e8e87510b660a08447a92113 /core/chip.c
parent67212eb3ca9fed121432b814b5e58fb8d2cfebae (diff)
downloadskiboot-687103941245c3a10ba68266aaf661d91815e773.zip
skiboot-687103941245c3a10ba68266aaf661d91815e773.tar.gz
skiboot-687103941245c3a10ba68266aaf661d91815e773.tar.bz2
Enable Simics UART console
The UART is a simulated ns16550 with memory mapped registers. A /simics dt node is detected and a SIMICS_QUIRK is added to chip quirks similar to MAMBO_CALLOUTS. It can contain an ns16550 dt node with a property console-bar. The LPC UART code is reused and this will work without an LPC bus in the model. Signed-off-by: Ryan Grimm <grimm@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/chip.c')
-rw-r--r--core/chip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/chip.c b/core/chip.c
index 729bccb..49d2f1f 100644
--- a/core/chip.c
+++ b/core/chip.c
@@ -76,6 +76,10 @@ void init_chips(void)
| QUIRK_DISABLE_NAP;
prlog(PR_NOTICE, "CHIP: Detected Mambo simulator\n");
}
+ if (dt_find_by_path(dt_root, "/simics")) {
+ proc_chip_quirks |= QUIRK_SIMICS;
+ prlog(PR_NOTICE, "CHIP: Detected Simics simulator\n");
+ }
if (dt_node_is_compatible(dt_root, "qemu,powernv")) {
proc_chip_quirks |= QUIRK_NO_CHIPTOD | QUIRK_NO_PBA;
prlog(PR_NOTICE, "CHIP: Detected Qemu simulator\n");