[RFC PATCH v2 0/3] imx8m: move env_get_location for imx8mn and imx8mp at board level

Tommaso Merciai tomm.merciai at gmail.com
Thu Dec 23 22:49:38 CET 2021


On Sun, Dec 19, 2021 at 10:11:44AM +0800, Peng Fan (OSS) wrote:
> 
> 
> On 2021/12/1 4:17, Tommaso Merciai wrote:
> > This series move env_get_location from soc to board level. As suggested
> > by Michael <michael at amarulasolutions.com> make no sense to define an
> > unique way for multiple board. One board can boot from emmc and having
> > env on spi flash etc.. Anyways, this function is kept in both imx8mn
> > and imx8mp evk boards instead of being completely dropped.
> > (as suggested by Andrey <andrey.zhizhikin at leica-geosystems.com>)
> 
> If there are other i.MX8MN/P boards already uses the function, move
> it to i.mx8mn/p_evk would break other boards. If i.MX8MN/P evk are
> the other users, it should be ok to move the board code.

Hi Peng,
Maybe declare it as __weak in soc.c and ovverride it a board level can
be a valid solution?
Let me know.


thanks.
tommaso

> 
> Regards,
> Peng.
> 
> > 
> > Tommaso Merciai (3):
> >    imx8m: drop env_get_location for imx8mn and imx8mp
> >    imx: imx8mn_evk: override env_get_location
> >    imx: imx8mp_evk: override env_get_location
> > 
> >   arch/arm/mach-imx/imx8m/soc.c           | 39 -------------------------
> >   board/freescale/imx8mn_evk/imx8mn_evk.c | 35 ++++++++++++++++++++++
> >   board/freescale/imx8mp_evk/imx8mp_evk.c | 34 +++++++++++++++++++++
> >   3 files changed, 69 insertions(+), 39 deletions(-)
> > 


More information about the U-Boot mailing list