From patchwork Thu Mar 23 06:15:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Neuling X-Patchwork-Id: 742485 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 3vpbs13FFrz9s7v for ; Thu, 23 Mar 2017 17:15:49 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3vpbs12K3MzDqbC for ; Thu, 23 Mar 2017 17:15:49 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3vpbrY27XyzDq8x for ; Thu, 23 Mar 2017 17:15:25 +1100 (AEDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 3vpbrY0qNjz9s7y; Thu, 23 Mar 2017 17:15:25 +1100 (AEDT) Received: by localhost.localdomain (Postfix, from userid 1000) id 3E19BEEEE28; Thu, 23 Mar 2017 17:15:25 +1100 (AEDT) From: Michael Neuling To: stewart@linux.vnet.ibm.com Date: Thu, 23 Mar 2017 17:15:06 +1100 Message-Id: <20170323061509.4231-2-mikey@neuling.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170323061509.4231-1-mikey@neuling.org> References: <20170323061509.4231-1-mikey@neuling.org> Subject: [Skiboot] [PATCH v2 2/5] xscom: Add POWER9 scom reset X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: skiboot@lists.ozlabs.org, mikey@neuling.org, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Add scom reset registers for POWER9. Signed-off-by: Michael Neuling Reviewed-by: Cédric Le Goater --- hw/xscom.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/hw/xscom.c b/hw/xscom.c index dd7aeca65e..6fde427f1e 100644 --- a/hw/xscom.c +++ b/hw/xscom.c @@ -101,9 +101,15 @@ static void xscom_reset(uint32_t gcid) mtspr(SPR_HMER, HMER_CLR_MASK); /* Setup local and target scom addresses */ - recv_status_reg = 0x202000f; - log_reg = 0x2020007; - err_reg = 0x2020009; + if (proc_gen == proc_gen_p9) { + recv_status_reg = 0x00090018; + log_reg = 0x0090012; + err_reg = 0x0090013; + } else { + recv_status_reg = 0x202000f; + log_reg = 0x2020007; + err_reg = 0x2020009; + } /* First we need to write 0 to a register on our chip */ out_be64(xscom_addr(this_cpu()->chip_id, recv_status_reg), 0);