* [PATCH 1/2] nvmem: kconfig: set i.MX OCOTP default y
@ 2024-06-03 7:00 Peng Fan (OSS)
2024-06-03 7:00 ` [PATCH 2/2] arm64: defconfig: remove IMX OCOTP Peng Fan (OSS)
2024-06-22 10:47 ` [PATCH 1/2] nvmem: kconfig: set i.MX OCOTP default y Srinivas Kandagatla
0 siblings, 2 replies; 4+ messages in thread
From: Peng Fan (OSS) @ 2024-06-03 7:00 UTC (permalink / raw)
To: srinivas.kandagatla, shawnguo
Cc: linux-arm-kernel, linux-kernel, aisheng.dong, Peng Fan
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.
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.
--
2.37.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm64: defconfig: remove IMX OCOTP
2024-06-03 7:00 [PATCH 1/2] nvmem: kconfig: set i.MX OCOTP default y Peng Fan (OSS)
@ 2024-06-03 7:00 ` Peng Fan (OSS)
2024-06-22 10:47 ` [PATCH 1/2] nvmem: kconfig: set i.MX OCOTP default y Srinivas Kandagatla
1 sibling, 0 replies; 4+ messages in thread
From: Peng Fan (OSS) @ 2024-06-03 7:00 UTC (permalink / raw)
To: srinivas.kandagatla, shawnguo
Cc: linux-arm-kernel, linux-kernel, aisheng.dong, Peng Fan
From: Peng Fan <peng.fan@nxp.com>
i.MX OCOTP has default settings as y in Kconfig, no need entries in
defconfig.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
arch/arm64/configs/defconfig | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 6f9e1996694b..19797a26e697 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -1558,9 +1558,6 @@ CONFIG_HISI_PMU=y
CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU=m
CONFIG_MESON_DDR_PMU=m
CONFIG_NVMEM_LAYOUT_SL28_VPD=m
-CONFIG_NVMEM_IMX_OCOTP=y
-CONFIG_NVMEM_IMX_OCOTP_ELE=m
-CONFIG_NVMEM_IMX_OCOTP_SCU=y
CONFIG_NVMEM_LAYERSCAPE_SFP=m
CONFIG_NVMEM_MESON_EFUSE=m
CONFIG_NVMEM_MTK_EFUSE=y
--
2.37.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] nvmem: kconfig: set i.MX OCOTP default y
2024-06-03 7:00 [PATCH 1/2] nvmem: kconfig: set i.MX OCOTP default y Peng Fan (OSS)
2024-06-03 7:00 ` [PATCH 2/2] arm64: defconfig: remove IMX OCOTP Peng Fan (OSS)
@ 2024-06-22 10:47 ` Srinivas Kandagatla
2024-06-24 0:06 ` Peng Fan
1 sibling, 1 reply; 4+ messages in thread
From: Srinivas Kandagatla @ 2024-06-22 10:47 UTC (permalink / raw)
To: Peng Fan (OSS), shawnguo
Cc: linux-arm-kernel, linux-kernel, aisheng.dong, Peng Fan
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH 1/2] nvmem: kconfig: set i.MX OCOTP default y
2024-06-22 10:47 ` [PATCH 1/2] nvmem: kconfig: set i.MX OCOTP default y Srinivas Kandagatla
@ 2024-06-24 0:06 ` Peng Fan
0 siblings, 0 replies; 4+ messages in thread
From: Peng Fan @ 2024-06-24 0:06 UTC (permalink / raw)
To: Srinivas Kandagatla, Peng Fan (OSS), shawnguo@kernel.org
Cc: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, Aisheng Dong
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-06-24 0:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-03 7:00 [PATCH 1/2] nvmem: kconfig: set i.MX OCOTP default y Peng Fan (OSS)
2024-06-03 7:00 ` [PATCH 2/2] arm64: defconfig: remove IMX OCOTP Peng Fan (OSS)
2024-06-22 10:47 ` [PATCH 1/2] nvmem: kconfig: set i.MX OCOTP default y Srinivas Kandagatla
2024-06-24 0:06 ` Peng Fan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).