Re: [PATCH 1/3] arm64: Remove CONFIG_SOC_IMX8MQ and use ARCH_MXC instead

From: Lucas Stach
Date: Thu Dec 13 2018 - 09:35:38 EST


Am Donnerstag, den 13.12.2018, 13:17 +0000 schrieb Abel Vesa:
> To keep aligned with arm64, remove the unnecessary SOC_IMX8MQ and use
> ARCH_MXC instead.
>
> Signed-off-by: Abel Vesa <abel.vesa@xxxxxxx>
> ---
> Âarch/arm64/Kconfig.platformsÂÂÂÂÂÂÂÂÂÂÂ| 8 --------
> Âarch/arm64/boot/dts/freescale/Makefile | 2 +-
> Âdrivers/clk/imx/MakefileÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ| 3 ++-
> Âdrivers/phy/freescale/KconfigÂÂÂÂÂÂÂÂÂÂ| 2 +-
> Âdrivers/pinctrl/freescale/KconfigÂÂÂÂÂÂ| 2 +-
> Âdrivers/soc/imx/KconfigÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ| 2 +-
> Â6 files changed, 6 insertions(+), 13 deletions(-)
>
> diff --git a/arch/arm64/Kconfig.platforms
> b/arch/arm64/Kconfig.platforms
> index 7e1545a..318dbb9 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -148,14 +148,6 @@ config ARCH_MXC
> Â ÂÂThis enables support for the ARMv8 based SoCs in the
> Â ÂÂNXP i.MX family.
> Â
> -config SOC_IMX8MQ
> - bool "i.MX8MQ support"
> - depends on ARCH_MXC
> - select ARM64_ERRATUM_843419
> - select ARM64_ERRATUM_845719
> - help
> - ÂÂThis enables support for the i.MX8MQ SoC.
> -

NACK on this one. Having a single place where stuff that is absolutely
critical for proper SoC operation can be selected is very useful and
avoids hard to debug issues due to slightly wrong configs in the long
run.

Regards,
Lucas

> Âconfig ARCH_QCOM
> Â bool "Qualcomm Platforms"
> Â select GPIOLIB
> diff --git a/arch/arm64/boot/dts/freescale/Makefile
> b/arch/arm64/boot/dts/freescale/Makefile
> index 0001361..f9be242 100644
> --- a/arch/arm64/boot/dts/freescale/Makefile
> +++ b/arch/arm64/boot/dts/freescale/Makefile
> @@ -19,4 +19,4 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-
> rdb.dtb
> Âdtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-qds.dtb
> Âdtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-rdb.dtb
> Â
> -dtb-$(CONFIG_SOC_IMX8MQ) += imx8mq-evk.dtb
> +dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk.dtb
> diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefile
> index 5c0b11e..62a1882 100644
> --- a/drivers/clk/imx/Makefile
> +++ b/drivers/clk/imx/Makefile
> @@ -34,5 +34,6 @@ obj-$(CONFIG_SOC_IMX6SX) += clk-imx6sx.o
> Âobj-$(CONFIG_SOC_IMX6UL) += clk-imx6ul.o
> Âobj-$(CONFIG_SOC_IMX7D)ÂÂ+= clk-imx7d.o
> Âobj-$(CONFIG_SOC_IMX7ULP) += clk-imx7ulp.o
> -obj-$(CONFIG_SOC_IMX8MQ) += clk-imx8mq.o
> Âobj-$(CONFIG_SOC_VF610)ÂÂ+= clk-vf610.o
> +
> +obj-$(CONFIG_ARCH_MXC) += clk-imx8mq.o
> diff --git a/drivers/phy/freescale/Kconfig
> b/drivers/phy/freescale/Kconfig
> index f050bd4..923c0ef 100644
> --- a/drivers/phy/freescale/Kconfig
> +++ b/drivers/phy/freescale/Kconfig
> @@ -2,4 +2,4 @@ config PHY_FSL_IMX8MQ_USB
> Â tristate "Freescale i.MX8M USB3 PHY"
> Â depends on OF && HAS_IOMEM
> Â select GENERIC_PHY
> - default SOC_IMX8MQ
> + default ARCH_MXC
> diff --git a/drivers/pinctrl/freescale/Kconfig
> b/drivers/pinctrl/freescale/Kconfig
> index 2d6db43..9874a16 100644
> --- a/drivers/pinctrl/freescale/Kconfig
> +++ b/drivers/pinctrl/freescale/Kconfig
> @@ -123,7 +123,7 @@ config PINCTRL_IMX7ULP
> Â
> Âconfig PINCTRL_IMX8MQ
> Â bool "IMX8MQ pinctrl driver"
> - depends on SOC_IMX8MQ
> + depends on ARCH_MXC
> Â select PINCTRL_IMX
> Â help
> Â ÂÂSay Y here to enable the imx8mq pinctrl driver
> diff --git a/drivers/soc/imx/Kconfig b/drivers/soc/imx/Kconfig
> index 2112d18..7ffbb6b 100644
> --- a/drivers/soc/imx/Kconfig
> +++ b/drivers/soc/imx/Kconfig
> @@ -2,7 +2,7 @@ menu "i.MX SoC drivers"
> Â
> Âconfig IMX_GPCV2_PM_DOMAINS
> Â bool "i.MX GPCv2 PM domains"
> - depends on SOC_IMX7D || SOC_IMX8MQ || (COMPILE_TEST && OF)
> + depends on SOC_IMX7D || ARCH_MXC || (COMPILE_TEST && OF)
> Â depends on PM
> Â select PM_GENERIC_DOMAINS
> Â default y if SOC_IMX7D