From patchwork Tue May 15 22:50:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stewart Smith X-Patchwork-Id: 914001 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40lt9N3rZLz9s15 for ; Wed, 16 May 2018 08:51:52 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40lt9N1TGmzF2DW for ; Wed, 16 May 2018 08:51:52 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=linux.ibm.com (client-ip=148.163.158.5; helo=mx0a-001b2d01.pphosted.com; envelope-from=stewart@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40lt8K51PkzF2D0 for ; Wed, 16 May 2018 08:50:57 +1000 (AEST) Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4FMnhgC136641 for ; Tue, 15 May 2018 18:50:54 -0400 Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.151]) by mx0b-001b2d01.pphosted.com with ESMTP id 2j05mn8217-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 15 May 2018 18:50:54 -0400 Received: from localhost by e33.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 15 May 2018 16:50:53 -0600 Received: from b03cxnp08025.gho.boulder.ibm.com (9.17.130.17) by e33.co.us.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 15 May 2018 16:50:50 -0600 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4FMooKk21692810; Tue, 15 May 2018 15:50:50 -0700 Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F08406A03B; Tue, 15 May 2018 16:50:49 -0600 (MDT) Received: from birb.localdomain (unknown [9.41.172.201]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP id D540F6A03D; Tue, 15 May 2018 16:50:49 -0600 (MDT) Received: by birb.localdomain (Postfix, from userid 1000) id 467054EC928; Tue, 15 May 2018 17:50:47 -0500 (CDT) From: Stewart Smith To: skiboot@lists.ozlabs.org, jrey@us.ibm.com Date: Tue, 15 May 2018 17:50:41 -0500 X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180515225041.1148-1-stewart@linux.ibm.com> References: <20180515225041.1148-1-stewart@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18051522-0008-0000-0000-000009C9934E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009031; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000260; SDB=6.01032849; UDB=6.00528064; IPR=6.00811981; MB=3.00021135; MTD=3.00000008; XFM=3.00000015; UTC=2018-05-15 22:50:52 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18051522-0009-0000-0000-0000474A3E21 Message-Id: <20180515225041.1148-4-stewart@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-15_08:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805150223 Subject: [Skiboot] [PATCH 3/3] Romulus: default to OpenBMC X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: zipse@us.ibm.com MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Suggested-by: Joseph Reynolds Signed-off-by: Stewart Smith --- platforms/astbmc/romulus.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/platforms/astbmc/romulus.c b/platforms/astbmc/romulus.c index 7cdc3b9d3669..357ab30a594b 100644 --- a/platforms/astbmc/romulus.c +++ b/platforms/astbmc/romulus.c @@ -74,7 +74,12 @@ DECLARE_PLATFORM(romulus) = { .init = astbmc_init, .start_preload_resource = flash_start_preload_resource, .resource_loaded = flash_resource_loaded, - .bmc = NULL, /* FIXME: Add openBMC */ + /* + * Defaults to OpenBMC, if there's ever differences on the BMC + * implementation between AMI BMC and OpenBMC, then this'll have + * to get smart + */ + .bmc = &astbmc_openbmc, .pci_get_slot_info = slot_table_get_slot_info, .pci_probe_complete = check_all_slot_table, .cec_power_down = astbmc_ipmi_power_down,