Skip to content

Commit 28e96ff

Browse files
HankChangstewartsmith
authored andcommitted
platform: Add Romulus
Signed-off-by: Hank Chang <chhank@tw.ibm.com> Acked-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
1 parent a5c2c89 commit 28e96ff

File tree

2 files changed

+56
-1
lines changed

2 files changed

+56
-1
lines changed

platforms/astbmc/Makefile.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ASTBMC_OBJS = pnor.o common.o slots.o \
44
palmetto.o habanero.o firestone.o \
55
p8dtu.o p8dnu.o \
66
garrison.o barreleye.o \
7-
witherspoon.o zaius.o
7+
witherspoon.o zaius.o romulus.o
88

99
ASTBMC = $(PLATDIR)/astbmc/built-in.o
1010
$(ASTBMC): $(ASTBMC_OBJS:%=$(PLATDIR)/astbmc/%)

platforms/astbmc/romulus.c

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/* Copyright 2017 IBM Corp.
2+
*
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12+
* implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#include <skiboot.h>
18+
#include <device.h>
19+
#include <console.h>
20+
#include <chip.h>
21+
#include <ipmi.h>
22+
#include <psi.h>
23+
#include <npu-regs.h>
24+
25+
#include "astbmc.h"
26+
27+
static bool romulus_probe(void)
28+
{
29+
if (!dt_node_is_compatible(dt_root, "ibm,romulus"))
30+
return false;
31+
32+
/* Lot of common early inits here */
33+
astbmc_early_init();
34+
35+
/* Setup UART for use by OPAL (Linux hvc) */
36+
uart_set_console_policy(UART_CONSOLE_OPAL);
37+
38+
return true;
39+
}
40+
41+
DECLARE_PLATFORM(romulus_platform) = {
42+
.name = "Romulus",
43+
.probe = romulus_probe,
44+
.init = astbmc_init,
45+
.start_preload_resource = flash_start_preload_resource,
46+
.resource_loaded = flash_resource_loaded,
47+
.bmc = NULL, /* FIXME: Add openBMC */
48+
.pci_get_slot_info = slot_table_get_slot_info,
49+
.pci_probe_complete = check_all_slot_table,
50+
.cec_power_down = astbmc_ipmi_power_down,
51+
.cec_reboot = astbmc_ipmi_reboot,
52+
.elog_commit = ipmi_elog_commit,
53+
.exit = ipmi_wdt_final_reset,
54+
.terminate = ipmi_terminate,
55+
};

0 commit comments

Comments
 (0)