[U-Boot] [PATCH v2] ppc4xx: Update flash size in reg property of the NOR flash node

Stefan Roese sr at denx.de
Wed Oct 21 11:05:09 CEST 2009


Hi Wolfgang,

On Tuesday 20 October 2009 23:12:47 Wolfgang Denk wrote:
> > Till now only the ranges in the ebc node are updated with the values
> > currently configured in the PPC4xx EBC controller. With this patch now
> > the NOR flash size is updated in the device tree blob as well. This is
> > done by scanning the compatible nodes "cfi-flash" and "jedec-flash"
> > for the correct chip select number.
> >
> > Signed-off-by: Stefan Roese <sr at denx.de>
> > Cc: Wolfgang Denk <wd at denx.de>
> > ---
> > Changes in v2:
> > - NOR flash nodes are now scanned/detected via the compatible node.
> 
> Thanks.
> 
> Hm... thinking about it, this problem most probably affects other
> (non-4xx boards as well). I guess there is no easy way to generalize
> this code enough tomake it usable by other (or even all?) boards as
> well?

I see no way to easily fix the NOR flash "reg" property for all non-4xx boards 
as well. But what I can do is, move the fdt_update_nor_flash_node() function 
into some common code (commond/fdt_support.c). This way it could be used by 
other boards/platforms as well.

Should I send an updated patch for this?

Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de


More information about the U-Boot mailing list