* [U-Boot] [PATCH v2] fsl_sfp : Modify macros as per changes in SFP v3.4
@ 2016-09-07 16:17 Sumit Garg
2016-10-08 17:16 ` york sun
0 siblings, 1 reply; 2+ messages in thread
From: Sumit Garg @ 2016-09-07 16:17 UTC (permalink / raw)
To: u-boot
SFP v3.4 supports 8 keys in SRK table which leads to corresponding
changes in OSPR key revocation field. So modify OSPR_KEY_REVOC_XXX
macros accordingly.
Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
---
Changes in v2:
Corrected commit message. Also removed whitspace changes in this patch.
include/fsl_sfp.h | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/include/fsl_sfp.h b/include/fsl_sfp.h
index 2976a2c..d3a2813 100644
--- a/include/fsl_sfp.h
+++ b/include/fsl_sfp.h
@@ -78,9 +78,16 @@ struct ccsr_sfp_regs {
u32 fsl_uid; /* 0xB0 FSL Unique ID */
};
#endif
+
#define ITS_MASK 0x00000004
#define ITS_BIT 2
-#define OSPR_KEY_REVOC_SHIFT 13
-#define OSPR_KEY_REVOC_MASK 0x0000e000
+
+#if defined(CONFIG_SYS_FSL_SFP_VER_3_4)
+#define OSPR_KEY_REVOC_SHIFT 9
+#define OSPR_KEY_REVOC_MASK 0x0000fe00
+#else
+#define OSPR_KEY_REVOC_SHIFT 13
+#define OSPR_KEY_REVOC_MASK 0x0000e000
+#endif /* CONFIG_SYS_FSL_SFP_VER_3_4 */
#endif
--
1.8.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH v2] fsl_sfp : Modify macros as per changes in SFP v3.4
2016-09-07 16:17 [U-Boot] [PATCH v2] fsl_sfp : Modify macros as per changes in SFP v3.4 Sumit Garg
@ 2016-10-08 17:16 ` york sun
0 siblings, 0 replies; 2+ messages in thread
From: york sun @ 2016-10-08 17:16 UTC (permalink / raw)
To: u-boot
On 09/06/2016 11:47 PM, Sumit Garg wrote:
> SFP v3.4 supports 8 keys in SRK table which leads to corresponding
> changes in OSPR key revocation field. So modify OSPR_KEY_REVOC_XXX
> macros accordingly.
>
> Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
> ---
>
> Changes in v2:
> Corrected commit message. Also removed whitspace changes in this patch.
>
Applied to fsl-qoriq master, awaiting upstream. Thanks.
York
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-08 17:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-07 16:17 [U-Boot] [PATCH v2] fsl_sfp : Modify macros as per changes in SFP v3.4 Sumit Garg
2016-10-08 17:16 ` york sun
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.