[U-Boot] [PATCH v2 1/9] sunxi: initial sun7i clocks and timer support.

Ian Campbell ijc at hellion.org.uk
Wed Mar 26 09:23:01 CET 2014


On Mon, 2014-03-24 at 23:42 +0100, Olliver Schinagl wrote:
[...]
> I've got a local cleanup patch set where I fixed this already to 
> clrsetbits_le32
>[...]
> Same here, got that in my local tree too

Could you post what you've got please?

> >> +#ifdef CONFIG_SPL_BUILD
> >> +#define PLL1_CFG(N, K, M, P)	(1 << 31 | 0 << 30 | 8 << 26 | 0 << 25 |
> > \
> >> +				 16 << 20 | (P) << 16 | 2 << 13 | (N) << 8 | \
> >> +				 (K) << 4 | 0 << 3 | 0 << 2 | (M) << 0)
> > Here is well.
> dito :)
> >
> >> +#define RDIV(a, b)		((a + (b) - 1) / (b))
> > This is some kind of DIV_ROUND_UP() from include/common.h ?
> >
> > [...]
> That one i didn't have;
> 
> Ian, I guess you can verify that generic macro works for here?

Yeah, I'll look into that and all the other feedback from Marek.

Ian.




More information about the U-Boot mailing list