[U-Boot] [PATCH 2/2] [v2] powerpc/85xx: add support the ePAPR "phandle" property

Wolfgang Denk wd at denx.de
Tue May 10 22:24:42 CEST 2011


Dear Timur Tabi,

In message <1305058491-19720-2-git-send-email-timur at freescale.com> you wrote:
> The ePAPR specification says that phandle properties should be called
> "phandle", and not "linux,phandle".  To facilitate the migration from
> "linux,phandle" to "phandle", we update fdt_qportal() to use the new function,
> fdt_create_phandle().  This function abstracts the creation of phandle
> properties.
> 
> Signed-off-by: Timur Tabi <timur at freescale.com>
> ---
>  arch/powerpc/cpu/mpc85xx/portals.c |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/powerpc/cpu/mpc85xx/portals.c b/arch/powerpc/cpu/mpc85xx/portals.c
> index c014163..4325f45 100644
> --- a/arch/powerpc/cpu/mpc85xx/portals.c
> +++ b/arch/powerpc/cpu/mpc85xx/portals.c
> @@ -151,8 +151,9 @@ static int fdt_qportal(void *blob, int off, int id, char *name,
>  			dev_handle = fdt_get_phandle(blob, dev_off);
>  			if (dev_handle <= 0) {
>  				dev_handle = fdt_alloc_phandle(blob);
> -				fdt_setprop_cell(blob, dev_off,
> -					"linux,phandle", dev_handle);
> +				ret = fdt_create_phandle(blob, dev_off, dev_handle);

Line too long.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Power is danger.
	-- The Centurion, "Balance of Terror", stardate 1709.2


More information about the U-Boot mailing list