From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Tue, 12 Feb 2008 08:09:03 -0500 Subject: [U-Boot-Users] [PATCH 3/3] 8xx: Add OF support to adder87x board In-Reply-To: <20080212011224.59bc32d0@neuromancer.mindspace> References: <20080212011224.59bc32d0@neuromancer.mindspace> Message-ID: <47B19A6F.6020508@ge.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Bryan O'Donoghue wrote: > Fits in with recent work done in Linux. > > Adds u-boot support in conjunction with two previous patches to boot a Linux > uImage in conjunction with a .dtb generated from the in-tree adder875-uboot.dts > in recent PowerPC Linux kernel patches. > > Works too ! > > Signed-off-by: Bryan O'Donoghue > --- > > diff --git a/board/adder/adder.c b/board/adder/adder.c > index aa78158..03db678 100644 > --- a/board/adder/adder.c > +++ b/board/adder/adder.c > @@ -27,6 +27,12 @@ > #include > #include > > +#if defined(CONFIG_OF_FLAT_TREE) > + #include > +#elif defined(CONFIG_OF_LIBFDT) > + #include > +#endif > + Please do only "#if defined(CONFIG_OF_LIBFDT)", skip CONFIG_OF_FLAT_TREE support entirely. CONFIG_OF_FLAT_TREE is deprecated and will be removed RSN. [snip] > +/* pass open firmware flat tree */ > +#undef CONFIG_OF_FLAT_TREE Obviously, this goes too. Thanks, gvb