diff mbox

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

Message ID 20170723113050.8815-2-hegdevasant@linux.vnet.ibm.com
State Changes Requested
Headers show

Commit Message

Vasant Hegde July 23, 2017, 11:30 a.m. UTC
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(+)
diff mbox

Patch

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.
  */