[U-Boot] [PATCH v2] board: fsl: lx2160a: implement board_fix_fdt

Prabhakar Kushwaha prabhakar.kushwaha at nxp.com
Fri Aug 16 11:17:33 UTC 2019


Dear Pankaj

> -----Original Message-----
> From: Pankaj Bansal
> Sent: Wednesday, July 17, 2019 3:54 PM
> To: Prabhakar Kushwaha <prabhakar.kushwaha at nxp.com>; Meenakshi
> Aggarwal <meenakshi.aggarwal at nxp.com>
> Cc: Varun Sethi <V.Sethi at nxp.com>; u-boot at lists.denx.de
> Subject: [PATCH v2] board: fsl: lx2160a: implement board_fix_fdt
> 
> In lx2160a rev2 the pcie controller has been changed.
> Therefore, we need to change the device tree nodes of pcie controllers so that
> new controller can be probed.
> It involves changing the "compatible" field as well as registers names'.
> we are keeping same device tree for lx2160a rev1 and rev2, therefore we
> change the device tree nodes as part of fdt fixups.
> These changes would only be applied if the soc revision is not rev1.
> 
> Signed-off-by: Pankaj Bansal <pankaj.bansal at nxp.com>
> ---
> 
> Notes:
>     V2:
>     - explained the patch requirements and patch changes.
> 
>  board/freescale/lx2160a/lx2160a.c | 67 +++++++++++++++++++++++++++++
> configs/lx2160aqds_tfa_defconfig  |  1 +  configs/lx2160ardb_tfa_defconfig  |  1
> +

I am seeing compilation warning with your patch. 
Please fix it


--pk

board/freescale/lx2160a/lx2160a.c: In function 'board_fix_fdt':
board/freescale/lx2160a/lx2160a.c:143:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   reg_names = fdt_getprop(fdt, off, "reg-names", &names_len);







More information about the U-Boot mailing list