Skip to contentSkip to conversation

arm: imx6: configure NoC on i.MX6DQP

PATCH New Bernhard Messerklinger 3 participants 3 messages Mar 9, 2020 – Apr 18, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 arm: imx6: configure NoC on i.MX6DQP

The i.MX6DP and i.MX6QP incorporate NoC interconnect logic which needs to be configured in order to use external DDR memory.

This patch enables the SPL to configure the necessary registers in accordance with the NXP engineering bulletin EB828.

---
This patch is a revised version of the patch "arm: imx6: configure NoC on i.MX6DQP" from the original author Filip Brozovic <[email protected]>. It takes care of the review notes for the original patch.
patchwork: https://patchwork.ozlabs.org/patch/670208/
mail-archive: https://lists.denx.de/pipermail/u-boot/2016-September/266667.html

@Filip: I added the Co-Developed-by: tag, can you please reply with your
Signed-off-by.

@Maintainers: Can you please provide some feedback regarding this patch and the way I want to handle the authorship?

Changes in v3:
- Add Co-Developed-by tag for Filip Brozovi?

Changes in v2:
- Added missing link to lkml discussion

 arch/arm/include/asm/arch-mx6/mx6-ddr.h | 19 +++++
 arch/arm/mach-imx/mx6/ddr.c             | 96 +++++++++++++++++++++++++
 2 files changed, 115 insertions(+)
arch/arm/include/asm/arch-mx6/mx6-ddr.h +19 -0
index 19d2f1d9c5..25168c9865 100644
@@ -307,6 +307,25 @@ struct mx6dq_iomux_grp_regs {
 	u32 grp_b6ds;
 };
 
+/*
+ * NoC scheduler registers - only on IMX6DQP
+ */
+#define MX6DQP_NOC_SCHED_BASE	0x00bb0000
+struct mx6dqp_noc_sched_regs {
+	u32 coreid;
+	u32 revid;
+	u32 ddrconf;
+	u32 ddrtiming;
+	u32 ddrmode;
+	u32 rlat;
+	u32 res1[4];
+	u32 ipu1;
+	u32 ipu2;
+	u32 res2[2];
+	u32 activate;
+	u32 res3[16];
+};
+
 #define MX6SDL_IOM_DDR_BASE     0x020e0400
 struct mx6sdl_iomux_ddr_regs {
 	u32 res1[25];
arch/arm/mach-imx/mx6/ddr.c +96 -0

114 lines not on this page · raw message

Signature · 1 line
2.25.1
#2 lore raw

PATCH v3 1/1 arm: imx6: configure NoC on i.MX6DQP

In reply to Bernhard Messerklinger
Quoted 7 lines

The i.MX6DP and i.MX6QP incorporate NoC interconnect logic which needs to be configured in order to use external DDR memory. This patch enables the SPL to configure the necessary registers in accordance with the NXP engineering bulletin EB828.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================