From patchwork Tue May 26 05:13:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1297698 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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49WMYd70Jmz9sSk for ; Tue, 26 May 2020 15:13:25 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=NTTTFkXG; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49WMYd6HZkzDqMk for ; Tue, 26 May 2020 15:13:25 +1000 (AEST) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49WMYT0qNfzDqMf for ; Tue, 26 May 2020 15:13:17 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=NTTTFkXG; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 49WMYS6577z9sRY; Tue, 26 May 2020 15:13:16 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1590469997; bh=WqAF4oF/FdtdKZMDkbPXCs24Ipl1HMVySGJ7R9P0L7U=; h=From:To:Cc:Subject:Date:From; b=NTTTFkXGsnKx3gTWSFpG7R04N6rjVlUCe2nL4YeYJ7/nwDYO9yQhAPu7mSHyAhz8/ sD+Z6nnfvntbDbwUEbSSDNiFYRnK03VJFDJS25cG8Z48SJSnlsObD9H852wMYhcc6y a1g289TS1DIhM8P0NycoXV5gxazR9QJPu1r9vuxx5AmyW/57hz8gjS0nY2cKmPpgNz RJ9TKl9oCIAKTTQolK3RghOTV5HVADZSLOig1pM5QRixXk5du4MaaOheGj2dOfxHoS cA3v53FRkLxOqNeWmQ9rQUky1DWaFNlciBOr3JfFFD62DbNHKfLWHDQmbVTOsx79H6 jc2hnkDg84HTA== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Tue, 26 May 2020 15:13:11 +1000 Message-Id: <20200526051312.71133-1-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [Pdbg] [PATCH 1/2] libpdbg: Move chip id definitions to common header X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs Reviewed-by: Alistair Popple --- libpdbg/dtb.c | 5 ----- libpdbg/target.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c index aad6a21..6d9b182 100644 --- a/libpdbg/dtb.c +++ b/libpdbg/dtb.c @@ -52,11 +52,6 @@ #define AMI_BMC "/proc/ractrends/Helper/FwInfo" #define XSCOM_BASE_PATH "/sys/kernel/debug/powerpc/scom" -#define CHIP_ID_P8 0xea -#define CHIP_ID_P8P 0xd3 -#define CHIP_ID_P9 0xd1 -#define CHIP_ID_P9P 0xd9 - static enum pdbg_backend pdbg_backend = PDBG_DEFAULT_BACKEND; static const char *pdbg_backend_option; static struct pdbg_dtb pdbg_dtb = { diff --git a/libpdbg/target.h b/libpdbg/target.h index 7094b51..522a4dc 100644 --- a/libpdbg/target.h +++ b/libpdbg/target.h @@ -24,6 +24,11 @@ #include "compiler.h" #include "libpdbg.h" +#define CHIP_ID_P8 0xea +#define CHIP_ID_P8P 0xd3 +#define CHIP_ID_P9 0xd1 +#define CHIP_ID_P9P 0xd9 + enum chip_type {CHIP_UNKNOWN, CHIP_P8, CHIP_P8NV, CHIP_P9}; struct pdbg_target_class {