* [U-Boot] [PATCH 1/2] imx7: Add src_base structure define macro
@ 2018-03-06 14:37 Eran Matityahu
2018-03-29 15:58 ` Stefano Babic
0 siblings, 1 reply; 2+ messages in thread
From: Eran Matityahu @ 2018-03-06 14:37 UTC (permalink / raw)
To: u-boot
Add src_base structure global define macro, similarly to imx6
Signed-off-by: Eran Matityahu <eran.m@variscite.com>
---
arch/arm/include/asm/arch-mx7/imx-regs.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/include/asm/arch-mx7/imx-regs.h b/arch/arm/include/asm/arch-mx7/imx-regs.h
index 3726f02..0cdb508 100644
--- a/arch/arm/include/asm/arch-mx7/imx-regs.h
+++ b/arch/arm/include/asm/arch-mx7/imx-regs.h
@@ -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)
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH 1/2] imx7: Add src_base structure define macro
2018-03-06 14:37 [U-Boot] [PATCH 1/2] imx7: Add src_base structure define macro Eran Matityahu
@ 2018-03-29 15:58 ` Stefano Babic
0 siblings, 0 replies; 2+ messages in thread
From: Stefano Babic @ 2018-03-29 15:58 UTC (permalink / raw)
To: u-boot
On 06/03/2018 15:37, Eran Matityahu wrote:
> Add src_base structure global define macro, similarly to imx6
>
> Signed-off-by: Eran Matityahu <eran.m@variscite.com>
> ---
> arch/arm/include/asm/arch-mx7/imx-regs.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/include/asm/arch-mx7/imx-regs.h b/arch/arm/include/asm/arch-mx7/imx-regs.h
> index 3726f02..0cdb508 100644
> --- a/arch/arm/include/asm/arch-mx7/imx-regs.h
> +++ b/arch/arm/include/asm/arch-mx7/imx-regs.h
> @@ -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
--
=====================================================================
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
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-29 15:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-06 14:37 [U-Boot] [PATCH 1/2] imx7: Add src_base structure define macro Eran Matityahu
2018-03-29 15:58 ` Stefano Babic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox