Skip to contentSkip to conversation

imx7: Add src_base structure define macro

PATCH New Eran Matityahu 2 participants 2 messages Mar 6, 2018 – Mar 29, 2018

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

PATCH 1/2 imx7: Add src_base structure define macro

Add src_base structure global define macro, similarly to imx6

---
 arch/arm/include/asm/arch-mx7/imx-regs.h | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/include/asm/arch-mx7/imx-regs.h +2 -0
index 3726f02..0cdb508 100644
@@ -264,6 +264,8 @@ struct src {
 	u32 ddrc_rcr;
 };
 
+#define src_base ((struct src *)SRC_BASE_ADDR)
+
 #define SRC_M4_REG_OFFSET		0xC
 #define SRC_M4C_NON_SCLR_RST_OFFSET	0
 #define SRC_M4C_NON_SCLR_RST_MASK	BIT(0)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/2 imx7: Add src_base structure define macro

Quoted 13 lines · Eran Matityahu

Add src_base structure global define macro, similarly to imx6

---
 arch/arm/include/asm/arch-mx7/imx-regs.h | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/include/asm/arch-mx7/imx-regs.h +0 -0
index 3726f02..0cdb508 100644

arch/arm/include/asm/arch-mx7/imx-regs.h struct src { · line 271

Quoted 8 lines
arch/arm/include/asm/arch-mx7/imx-regs.h +2 -0
@@ -264,6 +264,8 @@ struct src {
 	u32 ddrc_rcr;
 };
 
+#define src_base ((struct src *)SRC_BASE_ADDR)
+
 #define SRC_M4_REG_OFFSET		0xC
 #define SRC_M4C_NON_SCLR_RST_OFFSET	0
 #define SRC_M4C_NON_SCLR_RST_MASK	BIT(0)

Applied to u-boot-imx, 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
=====================================================================