[U-Boot-Users] [PATCH] fdt: add common memory fixup function

Kumar Gala galak at kernel.crashing.org
Fri Oct 26 11:55:27 CEST 2007


On Oct 26, 2007, at 3:49 AM, Martin Krause wrote:

> Add the function fdt_memory() to fixup the /memory node of the fdt
> with the memory values detected by U-Boot (taken from bd->bi_memstart
> and bd->bi_memsize).
>
> The new function is called for all boards which define  
> CONFIG_OF_LIBFDT.
>
> This patch removes already existing board specific memory fixup  
> routines
> for boards wich have CONFIG_OF_LIBFDT defined and switches them to the
> new routine. Boards wich use the CONIFG_OF_FLAT_TREE method are not
>  touched.
>
> Signed-off-by: Martin Krause <martin.krause at tqs.de>
> ---
> Since no one raised his hand - here is the patch :)
>
> Best Regards,
> Martin Krause
>
>  board/cds/common/ft_board.c     |    9 ---------
>  board/cm5200/cm5200.c           |   22 ++-------------------
>  board/mpc7448hpc2/mpc7448hpc2.c |    9 ---------
>  board/mpc8540ads/mpc8540ads.c   |    9 ---------
>  board/mpc8568mds/ft_board.c     |    7 -------
>  board/sbc8349/sbc8349.c         |    9 ---------
>  board/sbc8641d/sbc8641d.c       |    9 ---------
>  common/cmd_bootm.c              |   10 ++++++++++
>  common/fdt_support.c            |   41 ++++++++++++++++++++++++++++ 
> +++++++++++
>  include/fdt_support.h           |    1 +
>  10 files changed, 54 insertions(+), 72 deletions(-)

Not all the boards you touched used libfdt today (mpc7448hpc2,  
mpc8540ads, sbc8349, sbc8641d)

- k




More information about the U-Boot mailing list