powerpc/85xx: handle both "secX.Y" and "sec-vX.Y" properties
PATCH 1/1 powerpc/85xx: handle both "secX.Y" and "sec-vX.Y" properties
From: Kim Phillips <[email protected]>
versioned SEC properties changed names during development, so for now search and update LIODNs for both "secX.Y" and "sec-vX.Y" based properties.
Signed-off-by Kim Phillips <[email protected]>
Signed-off-by Kumar Gala <[email protected]>
--- arch/powerpc/include/asm/fsl_liodn.h | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)
arch/powerpc/include/asm/fsl_liodn.h +13 -0
@@ -115,10 +115,18 @@ extern void fdt_fixup_liodn(void *blob); FM_PPID_RX_PORT_OFFSET(fmNum, enetNum + 16), \ CONFIG_SYS_FSL_FM##fmNum##_RX##enetNum##_10G_OFFSET) \ +/* +* handle both old and new versioned SEC properties: +* "fsl,secX.Y" became "fsl,sec-vX.Y" during development +*/ #define SET_SEC_JR_LIODN_ENTRY (jrNum, liodnA, liodnB) \ SET_LIODN_ENTRY_2("fsl,sec4.0-job-ring", liodnA, liodnB,\ offsetof(ccsr_sec_t, jrliodnr[jrNum].ls) + \ CONFIG_SYS_FSL_SEC_OFFSET, \ + CONFIG_SYS_FSL_SEC_OFFSET + 0x1000 + 0x1000 * jrNum), \ + SET_LIODN_ENTRY_2("fsl,sec-v4.0-job-ring", liodnA, liodnB,\ + offsetof(ccsr_sec_t, jrliodnr[jrNum].ls) + \ + CONFIG_SYS_FSL_SEC_OFFSET, \ CONFIG_SYS_FSL_SEC_OFFSET + 0x1000 + 0x1000 * jrNum)/* This is a bit evil since we treat rtic param as both a string & hex value */
@@ -127,6 +135,11 @@ extern void fdt_fixup_liodn(void *blob); liodnA, \ offsetof(ccsr_sec_t, rticliodnr[0x##rtic-0xa].ls) + \ CONFIG_SYS_FSL_SEC_OFFSET, \ + CONFIG_SYS_FSL_SEC_OFFSET + 0x6100 + 0x20 * (0x##rtic-0xa)), \ + SET_LIODN_ENTRY_1("fsl,sec-v4.0-rtic-memory", \ + liodnA, \ + offsetof(ccsr_sec_t, rticliodnr[0x##rtic-0xa].ls) + \ + CONFIG_SYS_FSL_SEC_OFFSET, \ CONFIG_SYS_FSL_SEC_OFFSET + 0x6100 + 0x20 * (0x##rtic-0xa))#define SET_SEC_DECO_LIODN_ENTRY (num, liodnA, liodnB) \
Signature · 1 line
1.7.3.4
Kumar Gala
AppliedPATCH 1/1 powerpc/85xx: handle both "secX.Y" and "sec-vX.Y" properties
Quoted 11 lines · Kumar Gala
From: Kim Phillips <[email protected]>
versioned SEC properties changed names during development, so for now search and update LIODNs for both "secX.Y" and "sec-vX.Y" based properties.
Signed-off-by Kim Phillips <[email protected]>Signed-off-by Kumar Gala <[email protected]>---
arch/powerpc/include/asm/fsl_liodn.h| 13 +++++++++++++1 files changed, 13 insertions(+), 0 deletions(-)
applied to 85xx
- k