[v4,1/5] hdata: Add PNOR info structure

Submitted by Vasant Hegde on April 18, 2017, 8:53 a.m.

Details

Message ID 20170418085332.9558-2-hegdevasant@linux.vnet.ibm.com
State New
Headers show

Commit Message

Vasant Hegde April 18, 2017, 8:53 a.m.
This patch adds PNOR info structure.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
---
 hdata/spira.h | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

Patch hide | download patch | download mbox

diff --git a/hdata/spira.h b/hdata/spira.h
index 01adf8a..748aa51 100644
--- a/hdata/spira.h
+++ b/hdata/spira.h
@@ -1049,6 +1049,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;
+	__be32	reserved3;
+	__be64	bmc_working_addr;
+	__be32	bmc_working_size;
+	__be32	reserved4;
+	__be64	fsp_pside_addr;
+	__be32	bmc_pside_size;
+	__be32	reserved5;
+	__be64	fsp_tside_addr;
+	__be32	bmc_tside_size;
+} __packed;
+
 /*
  * Host Services Data.
  */