From patchwork Sun Jul 23 11:30:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasant Hegde X-Patchwork-Id: 792551 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 3xFj543sF5z9s78 for ; Sun, 23 Jul 2017 21:31:36 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3xFj542mMMzDrFC for ; Sun, 23 Jul 2017 21:31:36 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 3xFj4b4KZDzDrCn for ; Sun, 23 Jul 2017 21:31:11 +1000 (AEST) Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v6NBSiHE097519 for ; Sun, 23 Jul 2017 07:31:10 -0400 Received: from e23smtp07.au.ibm.com (e23smtp07.au.ibm.com [202.81.31.140]) by mx0a-001b2d01.pphosted.com with ESMTP id 2bv2u1sne9-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Sun, 23 Jul 2017 07:31:09 -0400 Received: from localhost by e23smtp07.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 23 Jul 2017 21:31:07 +1000 Received: from d23relay09.au.ibm.com (202.81.31.228) by e23smtp07.au.ibm.com (202.81.31.204) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Sun, 23 Jul 2017 21:31:05 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay09.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v6NBV5LM25428010 for ; Sun, 23 Jul 2017 21:31:05 +1000 Received: from d23av03.au.ibm.com (localhost [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v6NBUu8j002189 for ; Sun, 23 Jul 2017 21:30:56 +1000 Received: from hegdevasant.domain.name ([9.85.146.212]) by d23av03.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id v6NBUlio001858; Sun, 23 Jul 2017 21:30:53 +1000 From: Vasant Hegde To: skiboot@lists.ozlabs.org Date: Sun, 23 Jul 2017 17:00:46 +0530 X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170723113050.8815-1-hegdevasant@linux.vnet.ibm.com> References: <20170723113050.8815-1-hegdevasant@linux.vnet.ibm.com> X-TM-AS-MML: disable x-cbid: 17072311-0044-0000-0000-000002806985 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17072311-0045-0000-0000-00000711A834 Message-Id: <20170723113050.8815-2-hegdevasant@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-07-23_07:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1706020000 definitions=main-1707230182 Subject: [Skiboot] [PATCH v5 1/5] hdata: Add PNOR info structure 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: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" This patch adds PNOR info structure. Signed-off-by: Vasant Hegde --- hdata/spira.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/hdata/spira.h b/hdata/spira.h index caea057..fc336a8 100644 --- a/hdata/spira.h +++ b/hdata/spira.h @@ -1056,6 +1056,30 @@ struct sppcrd_chip_tod { /* Idata index 5 : Chip attached I2C devices */ #define SPPCRD_IDATA_HOST_I2C 5 +/* Idata index 6 : PNOR Information */ +#define SPPCRD_IDATA_PNOR_INFO 6 + +struct sppcrd_pnor_info { +#define PNOR_BUS_TYPE_LPC 0x00 +#define PNOR_BUS_TYPE_SPI 0x01 + uint8_t bus_type; + uint8_t reserved[7]; + __be64 base_addr; + __be32 base_size; + __be32 reserved2; + __be64 bmc_golden_addr; + __be32 bmc_golden_size; /* in Kbytes */ + __be32 reserved3; + __be64 bmc_working_addr; + __be32 bmc_working_size; + __be32 reserved4; + __be64 fsp_pside_addr; + __be32 fsp_pside_size; + __be32 reserved5; + __be64 fsp_tside_addr; + __be32 fsp_tside_size; +} __packed; + /* * Host Services Data. */