[PATCH 3/3] ARCH: i.MX6: add support for OFDEVICE
Lucas Stach
l.stach at pengutronix.de
Fri Oct 2 07:26:03 EDT 2020
On Fr, 2020-10-02 at 12:56 +0200, Marco Felsch wrote:
> The imx23_defconfig, imx_v8_defconfig and imx_defconfig already
> selecting this config except for the imx_v7_defconfig. The
> imx_v7_defconfig selects MACH_ZII_VF610_DEV which selects ARCH_VF610
> which select OFDEVICE. So it will be never selected if the
> MACH_ZII_VF610_DEV board support is dropped.
>
> Selecting the option here seems to be the better place instead of
> adding
> it to the imx_v7_defconfig because there are possible no i.MX6 boards
> not
> using the device tree.
>
> Signed-off-by: Marco Felsch <m.felsch at pengutronix.de>
> ---
> arch/arm/mach-imx/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index a1127e3707..a4b0f99e96 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -146,7 +146,7 @@ config ARCH_IMX6
> select ARCH_HAS_IMX_GPT
> select CPU_V7
> select PINCTRL_IMX_IOMUX_V3
> - select OFTREE
> + select OFDEVICE
Kconfig selects are not recursive, so you still need to keep the OFTREE
select here, otherwise you might end up with a broken dependency for
OFDEVICE.
Regards,
Lucas
> select COMMON_CLK_OF_PROVIDER
> select HW_HAS_PCI
>
More information about the barebox
mailing list