All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] fsl_sec: fix register layout on Layerscape architectures
@ 2019-01-30 12:01 laurentiu.tudor at nxp.com
  2019-01-30 12:01 ` [U-Boot] [PATCH] pci: layerscape: add option to statically allocate PCI StreamIDs laurentiu.tudor at nxp.com
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: laurentiu.tudor at nxp.com @ 2019-01-30 12:01 UTC (permalink / raw)
  To: u-boot

From: Laurentiu Tudor <laurentiu.tudor@nxp.com>

On Layerscape architectures the SEC memory map is 1MB and the
register blocks contained in it are 64KB aligned, not 4KB as
the ccsr_sec structure currently assumes. Fix the layout of
the structure for these architectures.

Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
---
 include/fsl_sec.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/fsl_sec.h b/include/fsl_sec.h
index 16e3fcb5a1..be08a2b88b 100644
--- a/include/fsl_sec.h
+++ b/include/fsl_sec.h
@@ -121,10 +121,18 @@ typedef struct ccsr_sec {
 	u32	chanum_ls;	/* CHA Number Register, LS */
 	u32	secvid_ms;	/* SEC Version ID Register, MS */
 	u32	secvid_ls;	/* SEC Version ID Register, LS */
+#if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3)
+	u8	res9[0x6f020];
+#else
 	u8	res9[0x6020];
+#endif
 	u32	qilcr_ms;	/* Queue Interface LIODN CFG Register, MS */
 	u32	qilcr_ls;	/* Queue Interface LIODN CFG Register, LS */
+#if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3)
+	u8	res10[0x8ffd8];
+#else
 	u8	res10[0x8fd8];
+#endif
 } ccsr_sec_t;
 
 #define SEC_CTPR_MS_AXI_LIODN		0x08000000
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-02-01 10:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-30 12:01 [U-Boot] [PATCH 1/3] fsl_sec: fix register layout on Layerscape architectures laurentiu.tudor at nxp.com
2019-01-30 12:01 ` [U-Boot] [PATCH] pci: layerscape: add option to statically allocate PCI StreamIDs laurentiu.tudor at nxp.com
2019-01-30 14:41   ` [U-Boot] [upstream-release] " Bharat Bhushan
2019-01-31  8:56     ` Laurentiu Tudor
2019-02-01 10:24   ` [U-Boot] [u-boot] " Pankaj Bansal
2019-01-30 12:01 ` [U-Boot] [PATCH 2/3] armv8: fsl-layerscape: fix SEC QI ICID setup laurentiu.tudor at nxp.com
2019-01-30 12:01 ` [U-Boot] [PATCH 3/3] armv8: fsl-layerscape: avoid DT fixup warning laurentiu.tudor at nxp.com
2019-01-30 14:49   ` [U-Boot] [upstream-release] " Bharat Bhushan
2019-01-30 12:17 ` [U-Boot] [PATCH 1/3] fsl_sec: fix register layout on Layerscape architectures Horia Geanta
2019-01-30 14:42 ` [U-Boot] [upstream-release] " Bharat Bhushan

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.