aboutsummaryrefslogtreecommitdiff
path: root/include/chip.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-11-30 12:21:34 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-12-01 14:57:44 +1100
commit9594a715b50c338f1261e88c12c120cf8e5b8bba (patch)
tree5e5a07267866843ae9b0077122300bc3396ee2e5 /include/chip.h
parent566f139cffdcef5d1ce679cc1a7cfd0c7cde3f78 (diff)
downloadskiboot-9594a715b50c338f1261e88c12c120cf8e5b8bba.zip
skiboot-9594a715b50c338f1261e88c12c120cf8e5b8bba.tar.gz
skiboot-9594a715b50c338f1261e88c12c120cf8e5b8bba.tar.bz2
Add tweaks to work in Mambo simulator
Mambo doesn't implement various things such as PBA SCOMs, LPC, ChipTOD, etc... It also provides a special console hook. This adds detection of Mambo via the /mambo node, and enables us to boot all the way to Linux. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/chip.h')
-rw-r--r--include/chip.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/chip.h b/include/chip.h
index fb2771e..83671fa 100644
--- a/include/chip.h
+++ b/include/chip.h
@@ -139,6 +139,9 @@ struct proc_chip {
struct list_head i2cms;
};
+/* Mambo simplified chip model lacks some features, handle it here */
+extern bool is_mambo_chip;
+
extern uint32_t pir_to_chip_id(uint32_t pir);
extern uint32_t pir_to_core_id(uint32_t pir);
extern uint32_t pir_to_thread_id(uint32_t pir);