On Fri, Mar 14, 2014 at 10:33:45AM +0000, Ian Campbell wrote: [snip] > +static void mctl_ddr3_reset(void) > +{ > + struct sunxi_dram_reg *dram = > + (struct sunxi_dram_reg *)SUNXI_DRAMC_BASE; > + > + { > + clrbits_le32(&dram->mcr, DRAM_MCR_RESET); > + udelay(2); > + setbits_le32(&dram->mcr, DRAM_MCR_RESET); > + }
That seems like an odd construction, why the extra braces? And as for the rest of the code, lots of magic numbers to #define what/why (why udelay(2) and 22?) -- Tom
signature.asc
Description: Digital signature
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot