public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH v3 2/2] armv8: lx2162aqds: Add support for LX2162AQDS platform
Date: Wed, 9 Sep 2020 08:25:40 -0400	[thread overview]
Message-ID: <20200909122540.GO7259@bill-the-cat> (raw)
In-Reply-To: <AM7PR04MB68858634BFF4E6B1D1EEE1A68E260@AM7PR04MB6885.eurprd04.prod.outlook.com>

On Wed, Sep 09, 2020 at 06:42:10AM +0000, Meenakshi Aggarwal wrote:
> 
> 
> > -----Original Message-----
> > From: Tom Rini <trini@konsulko.com>
> > Sent: Monday, September 7, 2020 6:43 PM
> > To: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
> > Cc: u-boot at lists.denx.de; Priyanka Jain <priyanka.jain@nxp.com>; Varun Sethi
> > <V.Sethi@nxp.com>; Ioana Ciornei <ioana.ciornei@nxp.com>; Qiang Zhao
> > <qiang.zhao@nxp.com>; Hui Song <hui.song_1@nxp.com>; Manish Tomar
> > <manish.tomar@nxp.com>; Vikas Singh <vikas.singh@nxp.com>
> > Subject: Re: [PATCH v3 2/2] armv8: lx2162aqds: Add support for LX2162AQDS
> > platform
> > 
> > On Mon, Sep 07, 2020 at 03:42:07PM +0530, meenakshi.aggarwal at nxp.com
> > wrote:
> > 
> > > From: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
> > >
> > > This patch add base support for LX2162AQDS board.
> > > LX2162AQDS board supports LX2162A family SoCs.
> > > This patch add basic support of platform.
> > >
> > > Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
> > > Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
> > > Signed-off-by: hui.song <hui.song_1@nxp.com>
> > > Signed-off-by: Manish Tomar <manish.tomar@nxp.com>
> > > Signed-off-by: Vikas Singh <vikas.singh@nxp.com>
> > > Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
> > > ---
> > >  arch/arm/Kconfig                               |  12 +
> > >  arch/arm/dts/Makefile                          |   6 +-
> > >  arch/arm/dts/fsl-lx2160a-qds.dts               |   3 -
> > >  arch/arm/dts/fsl-lx2160a-qds.dtsi              |  22 +-
> > >  arch/arm/dts/fsl-lx2162a-qds-17-x.dts          |  17 +
> > >  arch/arm/dts/fsl-lx2162a-qds-18-x.dts          |  17 +
> > >  arch/arm/dts/fsl-lx2162a-qds-20-x.dts          |  17 +
> > >  arch/arm/dts/fsl-lx2162a-qds-sd1-17.dtsi       |  58 ++
> > >  arch/arm/dts/fsl-lx2162a-qds-sd1-18.dtsi       |  61 ++
> > >  arch/arm/dts/fsl-lx2162a-qds-sd1-20.dtsi       |  26 +
> > >  arch/arm/dts/fsl-lx2162a-qds.dts               |  34 +
> > 
> > Most of these new dts* files are not added to MAINTAINERS entries and it
> > would be good to do so.
> [Meenakshi Aggarwal] Will add in next version
> > 
> > >  board/freescale/common/vid.c                   |   3 +-
> > >  board/freescale/lx2160a/Kconfig                |  16 +
> > >  board/freescale/lx2160a/MAINTAINERS            |  10 +
> > >  board/freescale/lx2160a/Makefile               |   1 +
> > >  board/freescale/lx2160a/README                 | 132 ++++
> > 
> > This README also should get updated to rST and moved.
> [Meenakshi Aggarwal] OK, will plan it

Thanks.

> > [snip]
> > > +/*
> > > + * Need to override existing (lx2160a) with lx2162aqds so
> > > +set_board_info will
> > > + * use proper prefix when creating full board_name (SYS_BOARD + type)
> > > +*/ #undef CONFIG_SYS_BOARD
> > > +#define CONFIG_SYS_BOARD                "lx2162aqds"
> > 
> > SYS_BOARD is under Kconfig, please just fix it there.
> [Meenakshi Aggarwal] LX2162 uses same die as of LX2160 so we are re-using LX2160 code. I have added SYS_BOARD (=lx2160a) in Kconfig but I will have to reassign(=lx2162a) it here 
> else in environment variable it will show as lx2160.

It needs to be handled within Kconfig.  That may mean you need to change
the board/.../Kconfig file to take into account what the target is.  You
cannot do this here.

> > > +#undef CONFIG_SYS_NXP_SRDS_3
> > > +
> > > +/* Qixis */
> > > +#define QIXIS_XMAP_MASK			0x07
> > 
> > This is the start of adding tons of non-CONFIG information to the config header.
> > Don't do this, it's going to make full migration to Kconfig harder.  Please audit
> > the whole file and anything that's not CONFIG_xxx needs to be somewhere else
> > really.  Thanks.
> [Meenakshi Aggarwal] Will prefer to do this in a separate patch as it will impact all three LX2 based boards, because all use similar macros.

I'm sorry I didn't catch this (and also all of the headers being used
globally via the config.h file, but that's another topic) earlier.  But
I really want to see this addressed before we make the problem bigger.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200909/e3a1d98f/attachment.sig>

      reply	other threads:[~2020-09-09 12:25 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-01  9:32 [PATCH 0/2] Add support for LX2162AQDS board meenakshi.aggarwal at nxp.com
2020-09-01  9:32 ` [PATCH 1/2] armv8: lx2162a: Add Soc changes to support LX2162A meenakshi.aggarwal at nxp.com
2020-09-02  7:18   ` Priyanka Jain
2020-09-02  9:59     ` Meenakshi Aggarwal
2020-09-01  9:32 ` [PATCH 2/2] armv8: lx2162aqds: Add support for LX2162AQDS platform meenakshi.aggarwal at nxp.com
2020-09-02  7:27   ` Priyanka Jain
2020-09-03  9:53 ` [PATCH v2 0/2] Add support for LX2162AQDS board meenakshi.aggarwal at nxp.com
2020-09-03  9:53   ` [PATCH v2 1/2] armv8: lx2162a: Add Soc changes to support LX2162A meenakshi.aggarwal at nxp.com
2020-09-03  9:53   ` [PATCH v2 2/2] armv8: lx2162aqds: Add support for LX2162AQDS platform meenakshi.aggarwal at nxp.com
2020-09-07 10:12     ` [PATCH v3 0/2] Add support for LX2162AQDS board meenakshi.aggarwal at nxp.com
2020-09-07 10:12       ` [PATCH v3 1/2] armv8: lx2162a: Add Soc changes to support LX2162A meenakshi.aggarwal at nxp.com
2020-09-07 13:12         ` Tom Rini
2020-09-08  6:16           ` Meenakshi Aggarwal
2020-10-20  7:09         ` Y.b. Lu
2020-09-07 10:12       ` [PATCH v3 2/2] armv8: lx2162aqds: Add support for LX2162AQDS platform meenakshi.aggarwal at nxp.com
2020-09-07 13:12         ` Tom Rini
2020-09-09  6:42           ` Meenakshi Aggarwal
2020-09-09 12:25             ` Tom Rini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200909122540.GO7259@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox