From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eran Matityahu Date: Tue, 6 Mar 2018 16:37:35 +0200 Subject: [U-Boot] [PATCH 1/2] imx7: Add src_base structure define macro Message-ID: <20180306143735.GA15497@ubuntu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add src_base structure global define macro, similarly to imx6 Signed-off-by: Eran Matityahu --- 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