Re: [U-Boot] [PATCH v2] config.mk: use different host compiler for OS X 10.6

2010-05-22 Thread Mike Frysinger
On Saturday 22 May 2010 07:17:21 Andreas Bießmann wrote: > +# get major and minor product version (e.g. '10' and '6' for Snow Leopard) > +DARWIN_MAJOR_VERSION = $(shell sw_vers -productVersion | cut -f 1 -d '.') > +DARWIN_MINOR_VERSION = $(shell sw_vers -productVersion | cut -f 2 -d '.') > + > +bef

Re: [U-Boot] [PATCH] Move ICS CLK chip frequenty calculation code into a common board library

2010-05-22 Thread Kumar Gala
On May 21, 2010, at 1:42 PM, Timur Tabi wrote: > On Fri, May 21, 2010 at 4:18 AM, Kumar Gala wrote: > >> +COBJS-$(CONFIG_P2020DS)+= ics307_clk.o > > How about changing this to: > > COBJS-$(CONFIG_ICS307_REFCLK_HZ) += ics307_clk.o I'd rather it be board explicit so new boards

Re: [U-Boot] [PATCH] Move ICS CLK chip frequenty calculation code into a common board library

2010-05-22 Thread Kumar Gala
On May 21, 2010, at 3:16 PM, Wolfgang Denk wrote: > Dear Timur Tabi, > > In message <4bf6e5df.5020...@freescale.com> you wrote: >> So here's a better version of that function that rounds to the nearest MHz and is of a proper coding style: >>> >>> Why do we need that? >> >> Um, becau

[U-Boot] [PATCH v2] Move ICS CLK chip frequenty calculation code into a common board library

2010-05-22 Thread Kumar Gala
We have several boards that use the same ICS307 CLK chip to drive the System clock and DDR clock. Move the code into a common location so we share it. Convert the P2020DS board as the first to use the new common ICS307 code. Signed-off-by: Kumar Gala --- * Use new common pixis.h for non-NGPIXIS

[U-Boot] [PATCH] ppc/85xx: Add a structure defn for PIXIS registers

2010-05-22 Thread Kumar Gala
The various boards that have PIXIS FPGAs have slightly different register definitions, however there is some common functionality (like reset, ICS307 clk control, etc) that can be shared. The struct definition exists for MPC8536DS, MPC8544DS, MPC8572DS, MPC8610HPCD, and MPC8641HPCN boards. Signed

Re: [U-Boot] [PATCH] config.mk: use different host compiler for OS X 10.6

2010-05-22 Thread Andreas Bießmann
2010/5/22 Mike Frysinger : > presumably this is going to remain true with 10.7+, so it'd probably make more > sense to invert the check ... have the old code run with <=10.5 Good point. I think I have a solution. Please see Patch v2. regards Andreas ___

[U-Boot] [PATCH v2] config.mk: use different host compiler for OS X 10.6

2010-05-22 Thread Andreas Bießmann
Compiling tools subdirectory on Mac OS X 10.6 (Snow Leopard) complains about wrong syntax in system includes. In file included from /usr/include/stdio.h:444, from ../source/u-boot/include/compiler.h:26, from ../source/u-boot/lib/crc32.c:15: /usr/include/secure/_st