[U-Boot-Users] [PATCH 3/3] 8xx: Add OF support to adder87x board

Jerry Van Baren gerald.vanbaren at ge.com
Tue Feb 12 14:09:03 CET 2008


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 <bodonoghue at codehermit.ie>
> ---
> 
> 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 <common.h>
>  #include <mpc8xx.h>
>  
> +#if defined(CONFIG_OF_FLAT_TREE)
> +	#include <ft_build.h>
> +#elif defined(CONFIG_OF_LIBFDT)
> +	#include <libfdt.h>
> +#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




More information about the U-Boot mailing list