Message ID | 20180306143735.GA15497@ubuntu |
---|---|
State | Accepted |
Commit | 03858f8ec6032ec74dadfae6c3849302d8f29a9b |
Delegated to: | Stefano Babic |
Headers | show |
Series | [U-Boot,1/2] imx7: Add src_base structure define macro | expand |
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
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)
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(+)