> -----Original Message----- > From: Shawn Guo [mailto:shawnguo@xxxxxxxxxx] > Sent: Friday, February 23, 2018 10:56 PM > To: Lucas Stach <l.stach@xxxxxxxxxxxxxx> > Cc: Rob Herring <robh+dt@xxxxxxxxxx>; Mark Rutland > <mark.rutland@xxxxxxx>; Catalin Marinas <catalin.marinas@xxxxxxx>; Will > Deacon <will.deacon@xxxxxxx>; Fabio Estevam <fabio.estevam@xxxxxxx>; > dl-linux-imx <linux-imx@xxxxxxx>; devicetree@xxxxxxxxxxxxxxx; linux-arm- > kernel@xxxxxxxxxxxxxxxxxxx; kernel@xxxxxxxxxxxxxx; patchwork- > lst@xxxxxxxxxxxxxx; A.s. Dong <aisheng.dong@xxxxxxx>; Baruch Siach > <baruch@xxxxxxxxxx> > Subject: Re: [PATCH v2 1/4] arm64: add basic Kconfig symbols for i.MX8 > > On Thu, Feb 01, 2018 at 07:31:23PM +0100, Lucas Stach wrote: > > Add basic Kconfig symbols to make the MXC architecture available in > > the ARM64 world. > > > > Signed-off-by: Lucas Stach <l.stach@xxxxxxxxxxxxxx> > > Reviewed-by: Fabio Estevam <fabio.estevam@xxxxxxx> > > --- > > v2: fix "enabled" typo. > > --- > > arch/arm64/Kconfig.platforms | 6 ++++++ > > drivers/soc/imx/Kconfig | 12 ++++++++++++ > > 2 files changed, 18 insertions(+) > > > > diff --git a/arch/arm64/Kconfig.platforms > > b/arch/arm64/Kconfig.platforms index 2401373565ff..ae3be0d2cdb5 > 100644 > > --- a/arch/arm64/Kconfig.platforms > > +++ b/arch/arm64/Kconfig.platforms > > @@ -131,6 +131,12 @@ config ARCH_MVEBU > > - Armada 7K SoC Family > > - Armada 8K SoC Family > > > > +config ARCH_MXC > > + bool "ARMv8 based NXP i.MX SoC family" > > + help > > + This enables support for the ARMv8 based SoCs in the > > + NXP i.MX family. We select nothing here? > > + > > config ARCH_QCOM > > bool "Qualcomm Platforms" > > select GPIOLIB > > diff --git a/drivers/soc/imx/Kconfig b/drivers/soc/imx/Kconfig index > > a5b86a28f343..8c9f04440896 100644 > > --- a/drivers/soc/imx/Kconfig > > +++ b/drivers/soc/imx/Kconfig > > @@ -8,3 +8,15 @@ config IMX7_PM_DOMAINS > > default y if SOC_IMX7D > > > > endmenu > > + > > +if ARCH_MXC > > + > > +if ARM64 > > + > > +config SOC_IMX8MQ > > + bool "i.MX8MQ support" > > + help > > + This enables support for the i.MX8MQ SoC. > > +endif > > + > > +endif > > I do not feel it's so idiomatic to select a platform SoC in drivers/soc folder. > The options in this folder are used to select SoC level drivers not the SoC > itself. Can we just use ARCH_MXC for all IMX ARMv8 SoCs? > Or if we really want individual SoC option, can we do something similar to > Renesas platform, having sub-select under "ARMv8 based NXP i.MX SoC > family"? > +1 It looks a bit weird to enable a SoC under drivers/soc. Currently we still can't see a requirement to support individual SoC option, So probably, just like other SoC Vendor does, use ARCH_MXC for all IMX V8 SoCs. Regards Dong Aisheng > Shawn -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html