summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-01-10 10:53:41 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-01-13 12:22:02 +0100
commit1b23cd803a69cc6045e61f60400db4bd28507a3e (patch)
treef8fc5fa66d87ad30db8d97e5b9ac893f2327a409 /include
parente9ee78889217c1266c05258c13b84875f5b2fdb2 (diff)
downloadbarebox-1b23cd803a69cc6045e61f60400db4bd28507a3e.tar.gz
barebox-1b23cd803a69cc6045e61f60400db4bd28507a3e.tar.xz
include/soc/fsl: Make struct ccsr_qman v3 specific
struct ccsr_qman is ifdeffed for different versions of this structure. CONFIG_SYS_FSL_QMAN_V3 is not defined which means we happen to use the wrong version on LS1046a. Hardcode it to the v3 version to make it work on LS1046a and rename it to ccsr_qman_v3 to make it obvious that it needs a change on non v3 versions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/soc/fsl/fsl_qbman.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/include/soc/fsl/fsl_qbman.h b/include/soc/fsl/fsl_qbman.h
index 10cbb16833..1caaf4808d 100644
--- a/include/soc/fsl/fsl_qbman.h
+++ b/include/soc/fsl/fsl_qbman.h
@@ -6,17 +6,8 @@
#ifndef __FSL_QBMAN_H__
#define __FSL_QBMAN_H__
-struct ccsr_qman {
-#ifdef CONFIG_SYS_FSL_QMAN_V3
+struct ccsr_qman_v3 {
u8 res0[0x200];
-#else
- struct {
- u32 qcsp_lio_cfg; /* 0x0 - SW Portal n LIO cfg */
- u32 qcsp_io_cfg; /* 0x4 - SW Portal n IO cfg */
- u32 res;
- u32 qcsp_dd_cfg; /* 0xc - SW Portal Dynamic Debug cfg */
- } qcsp[32];
-#endif
/* Not actually reserved, but irrelevant to u-boot */
u8 res[0xbf8 - 0x200];
u32 ip_rev_1;
@@ -41,14 +32,12 @@ struct ccsr_qman {
u32 ci_rlm_cfg; /* Initiator Read Latency Monitor Cfg */
u32 ci_rlm_avg; /* Initiator Read Latency Monitor Avg */
u8 res7[0x2e8];
-#ifdef CONFIG_SYS_FSL_QMAN_V3
struct {
u32 qcsp_lio_cfg; /* 0x0 - SW Portal n LIO cfg */
u32 qcsp_io_cfg; /* 0x4 - SW Portal n IO cfg */
u32 res;
u32 qcsp_dd_cfg; /* 0xc - SW Portal n Dynamic Debug cfg*/
} qcsp[50];
-#endif
};
struct ccsr_bman {