Message ID | 20240603070007.2413599-1-peng.fan@oss.nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/2] nvmem: kconfig: set i.MX OCOTP default y | expand |
On 03/06/2024 08:00, Peng Fan (OSS) wrote: > From: Peng Fan <peng.fan@nxp.com> > > If ARCH_MXC is selected, set NVMEM_IMX_OCOTP[*] default y which will make > nfs rootfs work since i.MX network driver needs read mac address from > fuse. > Given that ARCH_MXC is y is defconfig and making these drivers as default y will increase the arm64 defconfig kernel size. --srini > Signed-off-by: Peng Fan <peng.fan@nxp.com> > --- > drivers/nvmem/Kconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig > index 283134498fbc..7e92e855eb50 100644 > --- a/drivers/nvmem/Kconfig > +++ b/drivers/nvmem/Kconfig > @@ -76,6 +76,7 @@ config NVMEM_IMX_OCOTP > tristate "i.MX 6/7/8 On-Chip OTP Controller support" > depends on ARCH_MXC || COMPILE_TEST > depends on HAS_IOMEM > + default y if ARCH_MXC > help > This is a driver for the On-Chip OTP Controller (OCOTP) available on > i.MX6 SoCs, providing access to 4 Kbits of one-time programmable > @@ -89,6 +90,7 @@ config NVMEM_IMX_OCOTP_ELE > depends on ARCH_MXC || COMPILE_TEST > depends on HAS_IOMEM > depends on OF > + default y if ARCH_MXC > help > This is a driver for the On-Chip OTP Controller (OCOTP) > available on i.MX SoCs which has ELE. > @@ -97,6 +99,7 @@ config NVMEM_IMX_OCOTP_SCU > tristate "i.MX8 SCU On-Chip OTP Controller support" > depends on IMX_SCU > depends on HAVE_ARM_SMCCC > + default y if ARCH_MXC > help > This is a driver for the SCU On-Chip OTP Controller (OCOTP) > available on i.MX8 SoCs.
> Subject: Re: [PATCH 1/2] nvmem: kconfig: set i.MX OCOTP default y > > > > On 03/06/2024 08:00, Peng Fan (OSS) wrote: > > From: Peng Fan <peng.fan@nxp.com> > > > > If ARCH_MXC is selected, set NVMEM_IMX_OCOTP[*] default y which > will > > make nfs rootfs work since i.MX network driver needs read mac > address > > from fuse. > > > Given that ARCH_MXC is y is defconfig and making these drivers as > default y will increase the arm64 defconfig kernel size. Putting them in defconfig was also not welcomed. No good idea from me how to address the nfsboot issue. We not use ramfs. Thanks, Peng. > > --srini > > > Signed-off-by: Peng Fan <peng.fan@nxp.com> > > --- > > drivers/nvmem/Kconfig | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig index > > 283134498fbc..7e92e855eb50 100644 > > --- a/drivers/nvmem/Kconfig > > +++ b/drivers/nvmem/Kconfig > > @@ -76,6 +76,7 @@ config NVMEM_IMX_OCOTP > > tristate "i.MX 6/7/8 On-Chip OTP Controller support" > > depends on ARCH_MXC || COMPILE_TEST > > depends on HAS_IOMEM > > + default y if ARCH_MXC > > help > > This is a driver for the On-Chip OTP Controller (OCOTP) > available on > > i.MX6 SoCs, providing access to 4 Kbits of one-time > programmable > > @@ -89,6 +90,7 @@ config NVMEM_IMX_OCOTP_ELE > > depends on ARCH_MXC || COMPILE_TEST > > depends on HAS_IOMEM > > depends on OF > > + default y if ARCH_MXC > > help > > This is a driver for the On-Chip OTP Controller (OCOTP) > > available on i.MX SoCs which has ELE. > > @@ -97,6 +99,7 @@ config NVMEM_IMX_OCOTP_SCU > > tristate "i.MX8 SCU On-Chip OTP Controller support" > > depends on IMX_SCU > > depends on HAVE_ARM_SMCCC > > + default y if ARCH_MXC > > help > > This is a driver for the SCU On-Chip OTP Controller (OCOTP) > > available on i.MX8 SoCs.
diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig index 283134498fbc..7e92e855eb50 100644 --- a/drivers/nvmem/Kconfig +++ b/drivers/nvmem/Kconfig @@ -76,6 +76,7 @@ config NVMEM_IMX_OCOTP tristate "i.MX 6/7/8 On-Chip OTP Controller support" depends on ARCH_MXC || COMPILE_TEST depends on HAS_IOMEM + default y if ARCH_MXC help This is a driver for the On-Chip OTP Controller (OCOTP) available on i.MX6 SoCs, providing access to 4 Kbits of one-time programmable @@ -89,6 +90,7 @@ config NVMEM_IMX_OCOTP_ELE depends on ARCH_MXC || COMPILE_TEST depends on HAS_IOMEM depends on OF + default y if ARCH_MXC help This is a driver for the On-Chip OTP Controller (OCOTP) available on i.MX SoCs which has ELE. @@ -97,6 +99,7 @@ config NVMEM_IMX_OCOTP_SCU tristate "i.MX8 SCU On-Chip OTP Controller support" depends on IMX_SCU depends on HAVE_ARM_SMCCC + default y if ARCH_MXC help This is a driver for the SCU On-Chip OTP Controller (OCOTP) available on i.MX8 SoCs.