Skip to contentSkip to conversation

fsl_sfp : Move ccsr_sfp_regs definition to common include

PATCH New Gaurav Rana 2 participants 2 messages Feb 27, 2015 – Mar 5, 2015 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/4 fsl_sfp : Move ccsr_sfp_regs definition to common include

Freescale sfp has been used for mpc8xxx. It will be used for ARM-based SoC as well. This patch moves the CCSR defintion of sfp_regs to common include.
This patch also defines ccsr_sfp_regs definition for newer versions of SFP.

---
Changes in v3:
Modify copyright in include/fsl_sfp.h.

Changes in v2:
No change. Change in other patches of the patch set.

 arch/powerpc/include/asm/config_mpc85xx.h |  1 +
 arch/powerpc/include/asm/immap_85xx.h     | 16 +-----
 include/fsl_sfp.h                         | 85 +++++++++++++++++++++++++++++++
 3 files changed, 87 insertions(+), 15 deletions(-)
 create mode 100644 include/fsl_sfp.h
arch/powerpc/include/asm/config_mpc85xx.h +1 -0
index 01b0905..7fc352e 100644
@@ -25,6 +25,7 @@
 /* IP endianness */
 #define CONFIG_SYS_FSL_IFC_BE
 #define CONFIG_SYS_FSL_SEC_BE
+#define CONFIG_SYS_FSL_SFP_BE
 
 /* Number of TLB CAM entries we have on FSL Book-E chips */
 #if defined(CONFIG_E500MC)
arch/powerpc/include/asm/immap_85xx.h +1 -15
index ace1d12..f89b90b 100644
@@ -17,6 +17,7 @@
 #include <asm/fsl_i2c.h>
 #include <fsl_ifc.h>
 #include <fsl_sec.h>
+#include <fsl_sfp.h>
 #include <asm/fsl_lbc.h>
 #include <asm/fsl_fman.h>
 #include <fsl_immap.h>
@@ -2823,21 +2824,6 @@ struct ccsr_pman {
 	u8	res_f4[0xf0c];
 };
 #endif
-#ifdef CONFIG_SYS_FSL_SFP_VER_3_0
-struct ccsr_sfp_regs {
-	u32 ospr;		/* 0x200 */
-	u32 reserved0[14];
-	u32 srk_hash[8];	/* 0x23c Super Root Key Hash */
-	u32 oem_uid;		/* 0x9c OEM Unique ID */
-	u8 reserved2[0x04];
-	u32 ovpr;			/* 0xA4  Intent To Secure */
-	u8 reserved4[0x08];
-	u32 fsl_uid;		/* 0xB0  FSL Unique ID */
-	u8 reserved5[0x04];
-	u32 fsl_spfr0;		/* Scratch Pad Fuse Register 0 */
-	u32 fsl_spfr1;		/* Scratch Pad Fuse Register 1 */
-};
-#endif
 
 #ifdef CONFIG_FSL_CORENET
 #define CONFIG_SYS_FSL_CORENET_CCM_OFFSET	0x0000
include/fsl_sfp.h new file +85 -0

85 lines not on this page · raw message

Signature · 1 line
1.8.1.4
#1 lore raw

PATCH v3 1/4 fsl_sfp : Move ccsr_sfp_regs definition to common include

Quoted 6 lines · Gaurav Rana

Freescale sfp has been used for mpc8xxx. It will be used for ARM-based SoC as well. This patch moves the CCSR defintion of sfp_regs to common include.
This patch also defines ccsr_sfp_regs definition for newer versions of SFP.

Quoted 9 lines

---
Changes in v3:
Modify copyright in include/fsl_sfp.h.

Changes in v2:
No change. Change in other patches of the patch set.

Applied to u-boot-mpc85xx master after fixing commit message indentation, awaiting for upstream.

York