summaryrefslogtreecommitdiffstats
path: root/platforms/astbmc/zaius.c
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2017-01-13 17:56:22 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-01-16 11:01:21 +1100
commit5f71e571bb6784c75589d787a3670153ea086e3a (patch)
tree76dfdde702cdda19dd76abcc553ea3fc909f35d4 /platforms/astbmc/zaius.c
parentab65a967e814eb11016b96228ff991127dfd13c1 (diff)
downloadblackbird-skiboot-5f71e571bb6784c75589d787a3670153ea086e3a.tar.gz
blackbird-skiboot-5f71e571bb6784c75589d787a3670153ea086e3a.zip
platform: add zaius
WMWWMMMMMMWWMWMWMMMMMMMMMWWWMWMMMWMMWWWMWWWWWMWWWWWWWWWWMMWW WWKKWWWMMW0kXWWWMMMMMMMMMK wWWK ONW xW WW WWWN WW WWl xWWWl KWMMMMMMMMMXkkx .WWX k kWX lWW WN WWN KWW MWl x XMWl O OMMMMMMMMMMMMk OMWK oWk kMX lWW WN WW xWWW MWl NK WWl XK WWWMMMMMMWWW WWWK oWk kMX lWW WN WW 0MMM WWl NW NWl XN WWWMMWMMWWW0 .WWWK oWk xMX lWW WN WWX WWM WWl NN NMl Ko kWWWWWNNNNNN KNNN0 lNx xWX lWW WN WWW dWW WWl K xNNc L xXXXXXXXXXXO XXXXO lNo dX0 cXX XX NNWW WW XXc xXXXc kO KXXXXXXXXX OXXXXO l0o dX0 :XX KK XXXX KN XXo:kKXXXXl 0K KXXXXXXXX0 KXO oXx xX XXd dXXx oXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXNNWWWWNNNXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXNNXK00NNWWNNWWWNXXXXXXXXXXXXXXXXXXXXXXX0o XXXXXXXXXXXXXXXXXNNXOOO0XNXNNNXNWWWNXXXXXXXXXXXXXXXXXXXXKdcc XXXXXXXXXXXXXXXXNNKOOOk00XkxXNWWNKNWNXXXXXXXXXXXXXXXXX0dcccc XXXXXXXXXXXKXXXNWX00OOOO0OdloodKK0KWWNXXXXXXXXXXXXXXkocccccc XXXXXXXXXXXk0XNNKOOOdollokxlokkOOxOXWNXXXXXXXXXXXXKocccccccc KXXXXXXXXXXdkNX00O0ko:. ,ccc,..cKK0NNNXXXXXXXXXXOlccccccccc 0kOXXXXXXXKlON00O00Oo, ,lo; 'x0KWNNXXXXXXXXXkccccccccccc XKxox0XXXX0OWKOOO000Oxllodxxkdlldk0XWNNNXXXXXXKdcccccccccccc XXX0dcdkxdkWWK0OO00K0xlooooxkOkk0O0XWNNNXXXXXKoccccccccccccc KXXXXkccccdKNNX0KKK00dlllllllokKWXKNWWWNXXXX0occcccccccccccc dOKXKl:::::ONKKKXdO000xoooooodOKWNXWWWWNOO0klccccccccccccccc cccll::::::cl;cKk :OKNXkxxxkk0KKNWNWWWWNxoollcldlccccccccccc :::::::c:::;;;;:x oXWN0XWWWWXXNWWWWNWNKkdxllllxOxooooooollc ::;:doooooc;;;' ' .0WWXNWWWWKNKKWWNdkkdddddcllokOkxxxxxdxxx ::;ldlllod:;:;. ,doOWNWWNXX.cW0dcclddddxoccloOOxdxxdxxkk ;;;cdooodl;::, . .,:d0O;, ;:.ccc:cddddxl:clxOkxxxxkkkx ;;;oxlolo;;::. .ccc:ldxdddccllOkxxkxxkkx ;;;oooddl,::;. .l:c:oxdddlc::oxoxkxoc:: ;;;ooddd:;::' .l:c;odxdd:;;cxxko;;;;; ;,;ollol;:;:. ;l;;:xoool;;;xxd:,,,,, Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Enthusiastically-acked-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms/astbmc/zaius.c')
-rw-r--r--platforms/astbmc/zaius.c53
1 files changed, 53 insertions, 0 deletions
diff --git a/platforms/astbmc/zaius.c b/platforms/astbmc/zaius.c
new file mode 100644
index 00000000..7770d075
--- /dev/null
+++ b/platforms/astbmc/zaius.c
@@ -0,0 +1,53 @@
+/* Copyright 2017 IBM Corp.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <skiboot.h>
+#include <device.h>
+#include <console.h>
+#include <chip.h>
+#include <ipmi.h>
+#include <psi.h>
+#include <npu-regs.h>
+
+#include "astbmc.h"
+
+static bool zaius_probe(void)
+{
+ if (!dt_node_is_compatible(dt_root, "ingrasys,zaius"))
+ return false;
+
+ /* Lot of common early inits here */
+ astbmc_early_init();
+ psi_set_external_irq_policy(EXTERNAL_IRQ_POLICY_LINUX);
+
+ return true;
+}
+
+DECLARE_PLATFORM(zaius_platform) = {
+ .name = "Zaius",
+ .probe = zaius_probe,
+ .init = astbmc_init,
+ .start_preload_resource = flash_start_preload_resource,
+ .resource_loaded = flash_resource_loaded,
+ .bmc = NULL, /* FIXME: Add openBMC */
+ .pci_get_slot_info = slot_table_get_slot_info,
+ .pci_probe_complete = check_all_slot_table,
+ .cec_power_down = astbmc_ipmi_power_down,
+ .cec_reboot = astbmc_ipmi_reboot,
+ .elog_commit = ipmi_elog_commit,
+ .exit = ipmi_wdt_final_reset,
+ .terminate = ipmi_terminate,
+};
OpenPOWER on IntegriCloud