[Skiboot] [PATCH v5 1/5] hdata: Add PNOR info structure

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Sun Jul 23 21:30:46 AEST 2017


This patch adds PNOR info structure.

Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 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.
  */
-- 
2.9.3



More information about the Skiboot mailing list