misc: ocotp: Allow disabling ocotp driver in SPL
PATCH 1/1 misc: ocotp: Allow disabling ocotp driver in SPL
From: Michael Scott <[email protected]>
This allows removal of the OCOTP driver when SPL is enabled. Disabling OCOTP reduces SPL size efficiently.
Signed-off-by Michael Scott <[email protected]>
Co-developed-by Oleksandr Suvorov <[email protected]>
Signed-off-by Oleksandr Suvorov <[email protected]>
---
drivers/misc/Kconfig | 9 +++++++++ drivers/misc/Makefile | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-)
drivers/misc/Kconfig +9 -0
@@ -233,6 +233,15 @@ config MXC_OCOTP Programmable memory pages that are stored on the some Freescale i.MX processors. +config SPL_MXC_OCOTP + bool "Enable MXC OCOTP driver in SPL" + depends on SPL && (ARCH_IMX8M || ARCH_MX6 || ARCH_MX7 || ARCH_MX7ULP || ARCH_VF610) + default y + help + If you say Y here, you will get support for the One Time + Programmable memory pages, that are stored on some + Freescale i.MX processors, in SPL. + config NUVOTON_NCT6102D bool "Enable Nuvoton NCT6102D Super I/O driver" help
drivers/misc/Makefile +1 -1
@@ -50,7 +50,7 @@ obj-$(CONFIG_IMX8ULP) += imx8ulp/ obj-$(CONFIG_LED_STATUS) += status_led.o obj-$(CONFIG_LED_STATUS_GPIO) += gpio_led.o obj-$(CONFIG_MPC83XX_SERDES) += mpc83xx_serdes.o -obj-$(CONFIG_MXC_OCOTP) += mxc_ocotp.o +obj-$(CONFIG_$(SPL_)MXC_OCOTP) += mxc_ocotp.o obj-$(CONFIG_MXS_OCOTP) += mxs_ocotp.o obj-$(CONFIG_NUVOTON_NCT6102D) += nuvoton_nct6102d.o obj-$(CONFIG_P2SB) += p2sb-uclass.o
Signature · 1 line
2.31.1
Quoted 40 lines · Oleksandr Suvorov
From: Michael Scott <[email protected]>
This allows removal of the OCOTP driver when SPL is enabled. Disabling OCOTP reduces SPL size efficiently.
Signed-off-by Michael Scott <[email protected]>Co-developed-by Oleksandr Suvorov <[email protected]>Signed-off-by Oleksandr Suvorov <[email protected]>---
drivers/misc/Kconfig | 9 +++++++++ drivers/misc/Makefile | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-)drivers/misc/Kconfig +9
-0@@ -233,6 +233,15 @@ config MXC_OCOTP Programmable memory pages that are stored on the some Freescale i.MX processors. +config SPL_MXC_OCOTP + bool "Enable MXC OCOTP driver in SPL" + depends on SPL && (ARCH_IMX8M || ARCH_MX6 || ARCH_MX7 || ARCH_MX7ULP || ARCH_VF610) + default y + help + If you say Y here, you will get support for the One Time + Programmable memory pages, that are stored on some + Freescale i.MX processors, in SPL. + config NUVOTON_NCT6102D bool "Enable Nuvoton NCT6102D Super I/O driver" helpdrivers/misc/Makefile +0
-0
drivers/misc/Makefile obj-$(CONFIG_IMX8ULP) += imx8ulp/ · line 56
Quoted 8 lines
drivers/misc/Makefile +1
-1@@ -50,7 +50,7 @@ obj-$(CONFIG_IMX8ULP) += imx8ulp/ obj-$(CONFIG_LED_STATUS) += status_led.o obj-$(CONFIG_LED_STATUS_GPIO) += gpio_led.o obj-$(CONFIG_MPC83XX_SERDES) += mpc83xx_serdes.o -obj-$(CONFIG_MXC_OCOTP) += mxc_ocotp.o +obj-$(CONFIG_$(SPL_)MXC_OCOTP) += mxc_ocotp.o obj-$(CONFIG_MXS_OCOTP) += mxs_ocotp.o obj-$(CONFIG_NUVOTON_NCT6102D) += nuvoton_nct6102d.o obj-$(CONFIG_P2SB) += p2sb-uclass.o
Reviewed-by Peng Fan <[email protected]>
PATCH 1/1 misc: ocotp: Allow disabling ocotp driver in SPL
In reply to Oleksandr SuvorovQuoted 7 lines
From: Michael Scott <[email protected]>
This allows removal of the OCOTP driver when SPL is enabled. Disabling OCOTP reduces SPL size efficiently.Signed-off-by Michael Scott <[email protected]>Co-developed-by Oleksandr Suvorov <[email protected]>Signed-off-by Oleksandr Suvorov <[email protected]>Reviewed-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================