diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2018-04-10 17:28:02 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-04-11 17:59:57 -0500 |
commit | ee7bb4b391d564bd56060790c3a6abf9082e39e6 (patch) | |
tree | 74aa85c7c8d6a001b42b4dc1698e49b0ff3c65f9 /platforms | |
parent | 4cf135d9a87726561a8d3bbfad34516a77aa5e34 (diff) | |
download | skiboot-ee7bb4b391d564bd56060790c3a6abf9082e39e6.zip skiboot-ee7bb4b391d564bd56060790c3a6abf9082e39e6.tar.gz skiboot-ee7bb4b391d564bd56060790c3a6abf9082e39e6.tar.bz2 |
romulus: Add a barebones slot table
Add slot tables for romulus. Hopefully they won't be needed in THE
FUTURE!
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/astbmc/romulus.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/platforms/astbmc/romulus.c b/platforms/astbmc/romulus.c index e1b137c..7cdc3b9 100644 --- a/platforms/astbmc/romulus.c +++ b/platforms/astbmc/romulus.c @@ -24,6 +24,34 @@ #include "astbmc.h" +ST_PLUGGABLE(romulus_cpu1_slot1, "CPU1 Slot1 (8x)"); +ST_PLUGGABLE(romulus_cpu1_slot2, "CPU1 Slot2 (16x)"); + +ST_PLUGGABLE(romulus_cpu2_slot1, "CPU2 Slot1 (16x)"); +ST_PLUGGABLE(romulus_cpu2_slot2, "CPU2 Slot2 (16x)"); +ST_PLUGGABLE(romulus_cpu2_slot3, "CPU2 Slot3 (8x)"); + +ST_BUILTIN_DEV(romulus_builtin_raid, "Builtin RAID"); +ST_BUILTIN_DEV(romulus_builtin_usb, "Builtin USB"); +ST_BUILTIN_DEV(romulus_builtin_ethernet, "Builtin Ethernet"); +ST_BUILTIN_DEV(romulus_builtin_bmc, "BMC"); + +static const struct slot_table_entry romulus_phb_table[] = { + ST_PHB_ENTRY(0, 0, romulus_cpu1_slot2), + ST_PHB_ENTRY(0, 1, romulus_cpu1_slot1), + + ST_PHB_ENTRY(0, 2, romulus_builtin_raid), + ST_PHB_ENTRY(0, 3, romulus_builtin_usb), + ST_PHB_ENTRY(0, 4, romulus_builtin_ethernet), + ST_PHB_ENTRY(0, 5, romulus_builtin_bmc), + + ST_PHB_ENTRY(8, 0, romulus_cpu2_slot2), // might be swapped with 3 + ST_PHB_ENTRY(8, 1, romulus_cpu2_slot3), // might be PHB1 or 2 + ST_PHB_ENTRY(8, 3, romulus_cpu2_slot1), + + { .etype = st_end }, +}; + static bool romulus_probe(void) { if (!dt_node_is_compatible(dt_root, "ibm,romulus")) @@ -35,6 +63,8 @@ static bool romulus_probe(void) /* Setup UART for use by OPAL (Linux hvc) */ uart_set_console_policy(UART_CONSOLE_OPAL); + slot_table_init(romulus_phb_table); + return true; } |