On Thu, Feb 14, 2019 at 9:28 PM Michael Trimarchi <[email protected]> wrote: > > Signed-off-by: Michael Trimarchi <[email protected]> > --- > > V1->V2: none > > --- > arch/arm/mach-sunxi/dram_sun8i_a33.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/arch/arm/mach-sunxi/dram_sun8i_a33.c > b/arch/arm/mach-sunxi/dram_sun8i_a33.c > index 1da2727f98..83212aaddf 100644 > --- a/arch/arm/mach-sunxi/dram_sun8i_a33.c > +++ b/arch/arm/mach-sunxi/dram_sun8i_a33.c > @@ -148,12 +148,8 @@ static void auto_set_timing_para(struct dram_para *para) > reg_val = (tcksrx << 24) | (tcksre << 16) | (tckesr << 8) | (tcke << > 0); > writel(reg_val, &mctl_ctl->dramtmg5); > /* Set two rank timing and exit self-refresh timing */ > - reg_val = readl(&mctl_ctl->dramtmg8); > - reg_val &= ~(0xff << 8); > - reg_val &= ~(0xff << 0);
these are clr > - reg_val |= (0x33 << 8); > - reg_val |= (0x8 << 0); these are set > - writel(reg_val, &mctl_ctl->dramtmg8); > + clrsetbits_le32(&mctl_ctl->dramtmg8, (0xff << 8) | (0xff << 0), > + 0x33 << 8 | (0x8 << 0)); _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

