From: Ian Campbell Date: Wed, 26 Mar 2014 08:23:01 +0000 Subject: [U-Boot] [PATCH v2 1/9] sunxi: initial sun7i clocks and timer support. In-Reply-To: <5330B4C9.10302@schinagl.nl> References: <1395438845.2234.95.camel@hastur.hellion.org.uk> <1395438866-1193-1-git-send-email-ijc@hellion.org.uk> <201403242152.38910.marex@denx.de> <5330B4C9.10302@schinagl.nl> Message-ID: <1395822181.29683.4.camel@dagon.hellion.org.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.