From ccf7f72e6cbcd31b72f36d1c035d135940c012c4 Mon Sep 17 00:00:00 2001 From: Chris Friedt Date: Sun, 20 Jul 2025 20:05:59 -0400 Subject: [PATCH] drivers: hwinfo: split kconfig into separate files Split Kconfig into separate files sorted by name. Signed-off-by: Chris Friedt --- drivers/hwinfo/Kconfig | 322 +++----------------------- drivers/hwinfo/Kconfig.ambiq | 12 + drivers/hwinfo/Kconfig.andes | 11 + drivers/hwinfo/Kconfig.cc13xx_cc26xx | 39 ++++ drivers/hwinfo/Kconfig.cc23x0 | 10 + drivers/hwinfo/Kconfig.esp32 | 10 + drivers/hwinfo/Kconfig.gecko | 11 + drivers/hwinfo/Kconfig.imxrt | 10 + drivers/hwinfo/Kconfig.litex | 11 + drivers/hwinfo/Kconfig.max32 | 11 + drivers/hwinfo/Kconfig.mcux_mcx_cmc | 10 + drivers/hwinfo/Kconfig.mcux_rcm | 10 + drivers/hwinfo/Kconfig.mcux_sim | 10 + drivers/hwinfo/Kconfig.mcux_src | 10 + drivers/hwinfo/Kconfig.mcux_src_rev2 | 10 + drivers/hwinfo/Kconfig.mcux_syscon | 10 + drivers/hwinfo/Kconfig.mspm0 | 10 + drivers/hwinfo/Kconfig.nrf | 11 + drivers/hwinfo/Kconfig.numaker | 11 + drivers/hwinfo/Kconfig.numaker_rmc | 11 + drivers/hwinfo/Kconfig.psoc6 | 10 + drivers/hwinfo/Kconfig.renesas_ra | 10 + drivers/hwinfo/Kconfig.rpi_pico | 23 ++ drivers/hwinfo/Kconfig.rw61x | 10 + drivers/hwinfo/Kconfig.sam | 10 + drivers/hwinfo/Kconfig.sam0 | 10 + drivers/hwinfo/Kconfig.sam4l | 10 + drivers/hwinfo/Kconfig.sam_rstc | 10 + drivers/hwinfo/Kconfig.silabs_series2 | 11 + drivers/hwinfo/Kconfig.smartbond | 10 + drivers/hwinfo/Kconfig.stm32 | 10 + 31 files changed, 384 insertions(+), 290 deletions(-) create mode 100644 drivers/hwinfo/Kconfig.ambiq create mode 100644 drivers/hwinfo/Kconfig.andes create mode 100644 drivers/hwinfo/Kconfig.cc13xx_cc26xx create mode 100644 drivers/hwinfo/Kconfig.cc23x0 create mode 100644 drivers/hwinfo/Kconfig.esp32 create mode 100644 drivers/hwinfo/Kconfig.gecko create mode 100644 drivers/hwinfo/Kconfig.imxrt create mode 100644 drivers/hwinfo/Kconfig.litex create mode 100644 drivers/hwinfo/Kconfig.max32 create mode 100644 drivers/hwinfo/Kconfig.mcux_mcx_cmc create mode 100644 drivers/hwinfo/Kconfig.mcux_rcm create mode 100644 drivers/hwinfo/Kconfig.mcux_sim create mode 100644 drivers/hwinfo/Kconfig.mcux_src create mode 100644 drivers/hwinfo/Kconfig.mcux_src_rev2 create mode 100644 drivers/hwinfo/Kconfig.mcux_syscon create mode 100644 drivers/hwinfo/Kconfig.mspm0 create mode 100644 drivers/hwinfo/Kconfig.nrf create mode 100644 drivers/hwinfo/Kconfig.numaker create mode 100644 drivers/hwinfo/Kconfig.numaker_rmc create mode 100644 drivers/hwinfo/Kconfig.psoc6 create mode 100644 drivers/hwinfo/Kconfig.renesas_ra create mode 100644 drivers/hwinfo/Kconfig.rpi_pico create mode 100644 drivers/hwinfo/Kconfig.rw61x create mode 100644 drivers/hwinfo/Kconfig.sam create mode 100644 drivers/hwinfo/Kconfig.sam0 create mode 100644 drivers/hwinfo/Kconfig.sam4l create mode 100644 drivers/hwinfo/Kconfig.sam_rstc create mode 100644 drivers/hwinfo/Kconfig.silabs_series2 create mode 100644 drivers/hwinfo/Kconfig.smartbond create mode 100644 drivers/hwinfo/Kconfig.stm32 diff --git a/drivers/hwinfo/Kconfig b/drivers/hwinfo/Kconfig index e40237c2565..ece2254da01 100644 --- a/drivers/hwinfo/Kconfig +++ b/drivers/hwinfo/Kconfig @@ -25,295 +25,37 @@ config HWINFO_SHELL help Enable hwinfo Shell for testing. -menuconfig HWINFO_CC13XX_CC26XX - bool "TI SimpleLink CC13xx/CC26xx hwinfo driver" - default y - depends on SOC_SERIES_CC13X2_CC26X2 || SOC_SERIES_CC13X2X7_CC26X2X7 - select HWINFO_HAS_DRIVER - help - Enable TI SimpleLink CC13xx/CC26xx hwinfo driver. - -if HWINFO_CC13XX_CC26XX - -config HWINFO_CC13XX_CC26XX_ALWAYS_USE_FACTORY_DEFAULT - bool "Ignore CCFG and always use factory value" - default y - help - Always return factory pre-programmed values, stored in FCFG and ignore - values provided in CCFG (Customer Configuration). - -choice - prompt "Select MAC address type for device ID" - default HWINFO_CC13XX_CC26XX_USE_IEEE_MAC - help - Specify the MAC address type to be used as device ID by the driver. - -config HWINFO_CC13XX_CC26XX_USE_IEEE_MAC - bool "Use IEEE 802.15.4 extended address" - help - Use 8-bytes length IEEE 802.15.4 extended address as device ID value. - -config HWINFO_CC13XX_CC26XX_USE_BLE_MAC - bool "Use BLE MAC address" - help - Use 6-bytes length BLE MAC address as device ID value. - -endchoice - -endif # HWINFO_CC13XX_CC26XX - -config HWINFO_CC23X0 - bool "TI CC23X0 hwinfo" - default y - depends on SOC_FAMILY_TI_SIMPLELINK && SOC_SERIES_CC23X0 - select HWINFO_HAS_DRIVER - help - Enable CC23X0 hwinfo driver. - -config HWINFO_STM32 - bool "STM32 hwinfo" - default y - depends on SOC_FAMILY_STM32 && !SOC_SERIES_STM32WB0X - select HWINFO_HAS_DRIVER - help - Enable STM32 hwinfo driver. - -config HWINFO_NRF - bool "NRF device ID" - default y - depends on SOC_FAMILY_NORDIC_NRF - depends on SOC_SERIES_NRF54HX || NRF_SOC_SECURE_SUPPORTED - select HWINFO_HAS_DRIVER - help - Enable Nordic NRF hwinfo driver. - -config HWINFO_MCUX_MCX_CMC - bool "NXP MCX CMC reset cause" - default y - depends on HAS_MCUX_MCX_CMC - select HWINFO_HAS_DRIVER - help - Enable NXP kinetis mcux CMC hwinfo driver. - -config HWINFO_MCUX_RCM - bool "NXP kinetis reset cause" - default y - depends on HAS_MCUX_RCM - select HWINFO_HAS_DRIVER - help - Enable NXP kinetis mcux RCM hwinfo driver. - -config HWINFO_MCUX_SIM - bool "NXP kinetis SIM device ID" - default y - depends on HAS_MCUX_SIM - select HWINFO_HAS_DRIVER - help - Enable NXP kinetis mcux SIM hwinfo driver. - -config HWINFO_MCUX_SRC - bool "NXP SRC reset cause" - default y - depends on HAS_MCUX_SRC - select HWINFO_HAS_DRIVER - help - Enable NXP i.MX mcux SRC hwinfo driver. - -config HWINFO_MCUX_SRC_V2 - bool "NXP SRC reset cause (multicore devices)" - default y - depends on HAS_MCUX_SRC_V2 - select HWINFO_HAS_DRIVER - help - Enable version 2 multicore NXP i.MX mcux SRC hwinfo driver. - -config HWINFO_MCUX_SYSCON - bool "NXP LPC device ID" - default y - depends on DT_HAS_NXP_LPC_UID_ENABLED - select HWINFO_HAS_DRIVER - help - Enable NXP LPC mcux hwinfo driver. - -config HWINFO_IMXRT - bool "NXP i.mx RT device ID" - default y - depends on SOC_SERIES_IMXRT10XX || SOC_SERIES_IMXRT11XX || SOC_SERIES_IMXRT118X - select HWINFO_HAS_DRIVER - help - Enable NXP i.mx RT hwinfo driver. - -config HWINFO_RPI_PICO - bool "Raspberry Pi Pico hwinfo driver" - default y - depends on SOC_FAMILY_RPI_PICO - select HWINFO_HAS_DRIVER - select PICOSDK_USE_FLASH - help - Enable Raspberry Pi Pico hwinfo driver. - -config HWINFO_RPI_PICO_CHIP_ID - bool "Use chip ID as device ID for RP2350" - default n - depends on SOC_SERIES_RP2350 - depends on HWINFO_RPI_PICO - help - Use the chip ID as device ID for RP2350 instead of the default - flash RUID. This is useful for RP2350 boards that do not have a - flash, or when OTP ID is preferred over flash RUID. - This option is recommended for new RP2350 designs, but defaults to n - to prevent existing devices from changing their serial numbers. - -config HWINFO_SAM_RSTC - bool "Atmel SAM reset cause" - default y - depends on SOC_FAMILY_ATMEL_SAM && !SOC_SERIES_SAM4L - select HWINFO_HAS_DRIVER - help - Enable Atmel SAM reset cause hwinfo driver. - -config HWINFO_SAM - bool "Atmel SAM device ID" - default y - depends on SOC_FAMILY_ATMEL_SAM && !SOC_SERIES_SAM4L - select HWINFO_HAS_DRIVER - help - Enable Atmel SAM device ID hwinfo driver. - -config HWINFO_SAM4L - bool "Atmel SAM4L device ID" - default y - depends on SOC_SERIES_SAM4L - select HWINFO_HAS_DRIVER - help - Enable Atmel SAM4L hwinfo driver. - -config HWINFO_SAM0 - bool "Atmel SAM0 device ID" - default y - depends on SOC_FAMILY_ATMEL_SAM0 - select HWINFO_HAS_DRIVER - help - Enable Atmel SAM0 hwinfo driver. - -config HWINFO_SMARTBOND - bool "Smartbond device reset cause" - default y - depends on SOC_FAMILY_RENESAS_SMARTBOND - select HWINFO_HAS_DRIVER - help - Enable Smartbond reset cause hwinfo driver. - -config HWINFO_ESP32 - bool "ESP32 device ID" - default y - depends on SOC_FAMILY_ESPRESSIF_ESP32 - select HWINFO_HAS_DRIVER - help - Enable ESP32 hwinfo driver. - -config HWINFO_LITEX - bool "LiteX device ID" - default y - depends on SOC_LITEX_VEXRISCV - depends on DT_HAS_LITEX_DNA0_ENABLED - select HWINFO_HAS_DRIVER - help - Enable LiteX hwinfo driver - -config HWINFO_PSOC6 - bool "Cypress PSOC 6 unique device ID" - default y - depends on SOC_FAMILY_PSOC6_LEGACY - select HWINFO_HAS_DRIVER - help - Enable Cypress PSOC 6 hwinfo driver. - -config HWINFO_GECKO - bool "GECKO hwinfo" - default y - depends on SOC_FAMILY_SILABS_S0 || SOC_FAMILY_SILABS_S1 - select HWINFO_HAS_DRIVER - select SOC_GECKO_RMU - help - Enable Silabs GECKO hwinfo driver. - -config HWINFO_SILABS_S2 - bool "Silabs Series 2 hwinfo" - default y - depends on SOC_FAMILY_SILABS_S2 - select HWINFO_HAS_DRIVER - select SOC_GECKO_RMU - help - Enable Silabs Series 2 hwinfo driver. - -config HWINFO_ANDES - bool "Andes system ID" - default y - depends on SOC_FAMILY_ANDES_V5 - depends on SYSCON - select HWINFO_HAS_DRIVER - help - Enable Andes hwinfo driver - -config HWINFO_RW61X - bool "RW61X hwinfo" - default y - depends on SOC_SERIES_RW6XX - select HWINFO_HAS_DRIVER - help - Enable RW61X hwinfo driver - -config HWINFO_AMBIQ - bool "AMBIQ hwinfo" - default y - depends on SOC_SERIES_APOLLO4X || SOC_SERIES_APOLLO5X - select HWINFO_HAS_DRIVER - select AMBIQ_HAL - select AMBIQ_HAL_USE_HWINFO - help - Enable AMBIQ hwinfo driver - -config HWINFO_NUMAKER - bool "NuMaker hwinfo" - default y - depends on SOC_SERIES_M46X || SOC_SERIES_M55M1X - select HWINFO_HAS_DRIVER - select HAS_NUMAKER_FMC - help - Enable Nuvoton NuMaker hwinfo driver - -config HWINFO_NUMAKER_RMC - bool "NuMaker hwinfo backed up by RMC" - default y - depends on SOC_SERIES_M2L31X - select HWINFO_HAS_DRIVER - select HAS_NUMAKER_RMC - help - Enable Nuvoton NuMaker hwinfo driver backed up by RMC - -config HWINFO_MAX32 - bool "MAX32 hwinfo" - default y - depends on SOC_FAMILY_MAX32 - depends on !TRUSTED_EXECUTION_NONSECURE - select HWINFO_HAS_DRIVER - help - Enable MAX32 hwinfo driver. - -config HWINFO_RENESAS_RA - bool "Renesas RA device ID" - default y - depends on SOC_FAMILY_RENESAS_RA - select HWINFO_HAS_DRIVER - help - Enable RENESAS RA hwinfo driver - -config HWINFO_MSPM0 - bool "TI MSPM0 hwinfo" - default y - depends on SOC_FAMILY_TI_MSPM0 - help - Enable TI MSPM0 hwinfo driver +# zephyr-keep-sorted-start +rsource "Kconfig.ambiq" +rsource "Kconfig.andes" +rsource "Kconfig.cc13xx_cc26xx" +rsource "Kconfig.cc23x0" +rsource "Kconfig.esp32" +rsource "Kconfig.gecko" +rsource "Kconfig.imxrt" +rsource "Kconfig.litex" +rsource "Kconfig.max32" +rsource "Kconfig.mcux_mcx_cmc" +rsource "Kconfig.mcux_rcm" +rsource "Kconfig.mcux_sim" +rsource "Kconfig.mcux_src" +rsource "Kconfig.mcux_src_rev2" +rsource "Kconfig.mcux_syscon" +rsource "Kconfig.mspm0" +rsource "Kconfig.nrf" +rsource "Kconfig.numaker" +rsource "Kconfig.numaker_rmc" +rsource "Kconfig.psoc6" +rsource "Kconfig.renesas_ra" +rsource "Kconfig.rpi_pico" +rsource "Kconfig.rw61x" +rsource "Kconfig.sam" +rsource "Kconfig.sam0" +rsource "Kconfig.sam4l" +rsource "Kconfig.sam_rstc" +rsource "Kconfig.silabs_series2" +rsource "Kconfig.smartbond" +rsource "Kconfig.stm32" +# zephyr-keep-sorted-stop endif diff --git a/drivers/hwinfo/Kconfig.ambiq b/drivers/hwinfo/Kconfig.ambiq new file mode 100644 index 00000000000..44286349641 --- /dev/null +++ b/drivers/hwinfo/Kconfig.ambiq @@ -0,0 +1,12 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_AMBIQ + bool "AMBIQ hwinfo" + default y + depends on SOC_SERIES_APOLLO4X || SOC_SERIES_APOLLO5X + select HWINFO_HAS_DRIVER + select AMBIQ_HAL + select AMBIQ_HAL_USE_HWINFO + help + Enable AMBIQ hwinfo driver diff --git a/drivers/hwinfo/Kconfig.andes b/drivers/hwinfo/Kconfig.andes new file mode 100644 index 00000000000..46cdb969585 --- /dev/null +++ b/drivers/hwinfo/Kconfig.andes @@ -0,0 +1,11 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_ANDES + bool "Andes system ID" + default y + depends on SOC_FAMILY_ANDES_V5 + depends on SYSCON + select HWINFO_HAS_DRIVER + help + Enable Andes hwinfo driver diff --git a/drivers/hwinfo/Kconfig.cc13xx_cc26xx b/drivers/hwinfo/Kconfig.cc13xx_cc26xx new file mode 100644 index 00000000000..7e6e661816c --- /dev/null +++ b/drivers/hwinfo/Kconfig.cc13xx_cc26xx @@ -0,0 +1,39 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +menuconfig HWINFO_CC13XX_CC26XX + bool "TI SimpleLink CC13xx/CC26xx hwinfo driver" + default y + depends on SOC_SERIES_CC13X2_CC26X2 || SOC_SERIES_CC13X2X7_CC26X2X7 + select HWINFO_HAS_DRIVER + help + Enable TI SimpleLink CC13xx/CC26xx hwinfo driver. + +if HWINFO_CC13XX_CC26XX + +config HWINFO_CC13XX_CC26XX_ALWAYS_USE_FACTORY_DEFAULT + bool "Ignore CCFG and always use factory value" + default y + help + Always return factory pre-programmed values, stored in FCFG and ignore + values provided in CCFG (Customer Configuration). + +choice + prompt "Select MAC address type for device ID" + default HWINFO_CC13XX_CC26XX_USE_IEEE_MAC + help + Specify the MAC address type to be used as device ID by the driver. + +config HWINFO_CC13XX_CC26XX_USE_IEEE_MAC + bool "Use IEEE 802.15.4 extended address" + help + Use 8-bytes length IEEE 802.15.4 extended address as device ID value. + +config HWINFO_CC13XX_CC26XX_USE_BLE_MAC + bool "Use BLE MAC address" + help + Use 6-bytes length BLE MAC address as device ID value. + +endchoice + +endif # HWINFO_CC13XX_CC26XX diff --git a/drivers/hwinfo/Kconfig.cc23x0 b/drivers/hwinfo/Kconfig.cc23x0 new file mode 100644 index 00000000000..629d55286e3 --- /dev/null +++ b/drivers/hwinfo/Kconfig.cc23x0 @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_CC23X0 + bool "TI CC23X0 hwinfo" + default y + depends on SOC_FAMILY_TI_SIMPLELINK && SOC_SERIES_CC23X0 + select HWINFO_HAS_DRIVER + help + Enable CC23X0 hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.esp32 b/drivers/hwinfo/Kconfig.esp32 new file mode 100644 index 00000000000..01331e81769 --- /dev/null +++ b/drivers/hwinfo/Kconfig.esp32 @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_ESP32 + bool "ESP32 device ID" + default y + depends on SOC_FAMILY_ESPRESSIF_ESP32 + select HWINFO_HAS_DRIVER + help + Enable ESP32 hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.gecko b/drivers/hwinfo/Kconfig.gecko new file mode 100644 index 00000000000..8c9b5b41ce3 --- /dev/null +++ b/drivers/hwinfo/Kconfig.gecko @@ -0,0 +1,11 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_GECKO + bool "GECKO hwinfo" + default y + depends on SOC_FAMILY_SILABS_S0 || SOC_FAMILY_SILABS_S1 + select HWINFO_HAS_DRIVER + select SOC_GECKO_RMU + help + Enable Silabs GECKO hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.imxrt b/drivers/hwinfo/Kconfig.imxrt new file mode 100644 index 00000000000..d576c1d7a7a --- /dev/null +++ b/drivers/hwinfo/Kconfig.imxrt @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_IMXRT + bool "NXP i.mx RT device ID" + default y + depends on SOC_SERIES_IMXRT10XX || SOC_SERIES_IMXRT11XX || SOC_SERIES_IMXRT118X + select HWINFO_HAS_DRIVER + help + Enable NXP i.mx RT hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.litex b/drivers/hwinfo/Kconfig.litex new file mode 100644 index 00000000000..63e746a7a5d --- /dev/null +++ b/drivers/hwinfo/Kconfig.litex @@ -0,0 +1,11 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_LITEX + bool "LiteX device ID" + default y + depends on SOC_LITEX_VEXRISCV + depends on DT_HAS_LITEX_DNA0_ENABLED + select HWINFO_HAS_DRIVER + help + Enable LiteX hwinfo driver diff --git a/drivers/hwinfo/Kconfig.max32 b/drivers/hwinfo/Kconfig.max32 new file mode 100644 index 00000000000..d66dd9638e3 --- /dev/null +++ b/drivers/hwinfo/Kconfig.max32 @@ -0,0 +1,11 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_MAX32 + bool "MAX32 hwinfo" + default y + depends on SOC_FAMILY_MAX32 + depends on !TRUSTED_EXECUTION_NONSECURE + select HWINFO_HAS_DRIVER + help + Enable MAX32 hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.mcux_mcx_cmc b/drivers/hwinfo/Kconfig.mcux_mcx_cmc new file mode 100644 index 00000000000..e53acc24b84 --- /dev/null +++ b/drivers/hwinfo/Kconfig.mcux_mcx_cmc @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_MCUX_MCX_CMC + bool "NXP MCX CMC reset cause" + default y + depends on HAS_MCUX_MCX_CMC + select HWINFO_HAS_DRIVER + help + Enable NXP kinetis mcux CMC hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.mcux_rcm b/drivers/hwinfo/Kconfig.mcux_rcm new file mode 100644 index 00000000000..871bf5be260 --- /dev/null +++ b/drivers/hwinfo/Kconfig.mcux_rcm @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_MCUX_RCM + bool "NXP kinetis reset cause" + default y + depends on HAS_MCUX_RCM + select HWINFO_HAS_DRIVER + help + Enable NXP kinetis mcux RCM hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.mcux_sim b/drivers/hwinfo/Kconfig.mcux_sim new file mode 100644 index 00000000000..54224790a28 --- /dev/null +++ b/drivers/hwinfo/Kconfig.mcux_sim @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_MCUX_SIM + bool "NXP kinetis SIM device ID" + default y + depends on HAS_MCUX_SIM + select HWINFO_HAS_DRIVER + help + Enable NXP kinetis mcux SIM hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.mcux_src b/drivers/hwinfo/Kconfig.mcux_src new file mode 100644 index 00000000000..347c04f4859 --- /dev/null +++ b/drivers/hwinfo/Kconfig.mcux_src @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_MCUX_SRC + bool "NXP SRC reset cause" + default y + depends on HAS_MCUX_SRC + select HWINFO_HAS_DRIVER + help + Enable NXP i.MX mcux SRC hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.mcux_src_rev2 b/drivers/hwinfo/Kconfig.mcux_src_rev2 new file mode 100644 index 00000000000..43ffd1c28fd --- /dev/null +++ b/drivers/hwinfo/Kconfig.mcux_src_rev2 @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_MCUX_SRC_V2 + bool "NXP SRC reset cause (multicore devices)" + default y + depends on HAS_MCUX_SRC_V2 + select HWINFO_HAS_DRIVER + help + Enable version 2 multicore NXP i.MX mcux SRC hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.mcux_syscon b/drivers/hwinfo/Kconfig.mcux_syscon new file mode 100644 index 00000000000..f9347e49b72 --- /dev/null +++ b/drivers/hwinfo/Kconfig.mcux_syscon @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_MCUX_SYSCON + bool "NXP LPC device ID" + default y + depends on DT_HAS_NXP_LPC_UID_ENABLED + select HWINFO_HAS_DRIVER + help + Enable NXP LPC mcux hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.mspm0 b/drivers/hwinfo/Kconfig.mspm0 new file mode 100644 index 00000000000..3fa4bed4401 --- /dev/null +++ b/drivers/hwinfo/Kconfig.mspm0 @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_MSPM0 + bool "TI MSPM0 hwinfo" + default y + depends on SOC_FAMILY_TI_MSPM0 + select HWINFO_HAS_DRIVER + help + Enable TI MSPM0 hwinfo driver diff --git a/drivers/hwinfo/Kconfig.nrf b/drivers/hwinfo/Kconfig.nrf new file mode 100644 index 00000000000..0f326b17fb8 --- /dev/null +++ b/drivers/hwinfo/Kconfig.nrf @@ -0,0 +1,11 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_NRF + bool "NRF device ID" + default y + depends on SOC_FAMILY_NORDIC_NRF + depends on SOC_SERIES_NRF54HX || NRF_SOC_SECURE_SUPPORTED + select HWINFO_HAS_DRIVER + help + Enable Nordic NRF hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.numaker b/drivers/hwinfo/Kconfig.numaker new file mode 100644 index 00000000000..724a284742b --- /dev/null +++ b/drivers/hwinfo/Kconfig.numaker @@ -0,0 +1,11 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_NUMAKER + bool "NuMaker hwinfo" + default y + depends on SOC_SERIES_M46X || SOC_SERIES_M55M1X + select HWINFO_HAS_DRIVER + select HAS_NUMAKER_FMC + help + Enable Nuvoton NuMaker hwinfo driver diff --git a/drivers/hwinfo/Kconfig.numaker_rmc b/drivers/hwinfo/Kconfig.numaker_rmc new file mode 100644 index 00000000000..b2e000340d7 --- /dev/null +++ b/drivers/hwinfo/Kconfig.numaker_rmc @@ -0,0 +1,11 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_NUMAKER_RMC + bool "NuMaker hwinfo backed up by RMC" + default y + depends on SOC_SERIES_M2L31X + select HWINFO_HAS_DRIVER + select HAS_NUMAKER_RMC + help + Enable Nuvoton NuMaker hwinfo driver backed up by RMC diff --git a/drivers/hwinfo/Kconfig.psoc6 b/drivers/hwinfo/Kconfig.psoc6 new file mode 100644 index 00000000000..7bc7335e49c --- /dev/null +++ b/drivers/hwinfo/Kconfig.psoc6 @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_PSOC6 + bool "Cypress PSOC 6 unique device ID" + default y + depends on SOC_FAMILY_PSOC6_LEGACY + select HWINFO_HAS_DRIVER + help + Enable Cypress PSOC 6 hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.renesas_ra b/drivers/hwinfo/Kconfig.renesas_ra new file mode 100644 index 00000000000..696cf5fc15c --- /dev/null +++ b/drivers/hwinfo/Kconfig.renesas_ra @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_RENESAS_RA + bool "Renesas RA device ID" + default y + depends on SOC_FAMILY_RENESAS_RA + select HWINFO_HAS_DRIVER + help + Enable RENESAS RA hwinfo driver diff --git a/drivers/hwinfo/Kconfig.rpi_pico b/drivers/hwinfo/Kconfig.rpi_pico new file mode 100644 index 00000000000..9b0a9ca752c --- /dev/null +++ b/drivers/hwinfo/Kconfig.rpi_pico @@ -0,0 +1,23 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_RPI_PICO + bool "Raspberry Pi Pico hwinfo driver" + default y + depends on SOC_FAMILY_RPI_PICO + select HWINFO_HAS_DRIVER + select PICOSDK_USE_FLASH + help + Enable Raspberry Pi Pico hwinfo driver. + +config HWINFO_RPI_PICO_CHIP_ID + bool "Use chip ID as device ID for RP2350" + default n + depends on SOC_SERIES_RP2350 + depends on HWINFO_RPI_PICO + help + Use the chip ID as device ID for RP2350 instead of the default + flash RUID. This is useful for RP2350 boards that do not have a + flash, or when OTP ID is preferred over flash RUID. + This option is recommended for new RP2350 designs, but defaults to n + to prevent existing devices from changing their serial numbers. diff --git a/drivers/hwinfo/Kconfig.rw61x b/drivers/hwinfo/Kconfig.rw61x new file mode 100644 index 00000000000..c8a81a5c7e6 --- /dev/null +++ b/drivers/hwinfo/Kconfig.rw61x @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_RW61X + bool "RW61X hwinfo" + default y + depends on SOC_SERIES_RW6XX + select HWINFO_HAS_DRIVER + help + Enable RW61X hwinfo driver diff --git a/drivers/hwinfo/Kconfig.sam b/drivers/hwinfo/Kconfig.sam new file mode 100644 index 00000000000..1d17ff18d3e --- /dev/null +++ b/drivers/hwinfo/Kconfig.sam @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_SAM + bool "Atmel SAM device ID" + default y + depends on SOC_FAMILY_ATMEL_SAM && !SOC_SERIES_SAM4L + select HWINFO_HAS_DRIVER + help + Enable Atmel SAM device ID hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.sam0 b/drivers/hwinfo/Kconfig.sam0 new file mode 100644 index 00000000000..08b0170f0a5 --- /dev/null +++ b/drivers/hwinfo/Kconfig.sam0 @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_SAM0 + bool "Atmel SAM0 device ID" + default y + depends on SOC_FAMILY_ATMEL_SAM0 + select HWINFO_HAS_DRIVER + help + Enable Atmel SAM0 hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.sam4l b/drivers/hwinfo/Kconfig.sam4l new file mode 100644 index 00000000000..fc11fba94ba --- /dev/null +++ b/drivers/hwinfo/Kconfig.sam4l @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_SAM4L + bool "Atmel SAM4L device ID" + default y + depends on SOC_SERIES_SAM4L + select HWINFO_HAS_DRIVER + help + Enable Atmel SAM4L hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.sam_rstc b/drivers/hwinfo/Kconfig.sam_rstc new file mode 100644 index 00000000000..389f69c4945 --- /dev/null +++ b/drivers/hwinfo/Kconfig.sam_rstc @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_SAM_RSTC + bool "Atmel SAM reset cause" + default y + depends on SOC_FAMILY_ATMEL_SAM && !SOC_SERIES_SAM4L + select HWINFO_HAS_DRIVER + help + Enable Atmel SAM reset cause hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.silabs_series2 b/drivers/hwinfo/Kconfig.silabs_series2 new file mode 100644 index 00000000000..d898f94afbd --- /dev/null +++ b/drivers/hwinfo/Kconfig.silabs_series2 @@ -0,0 +1,11 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_SILABS_S2 + bool "Silabs Series 2 hwinfo" + default y + depends on SOC_FAMILY_SILABS_S2 + select HWINFO_HAS_DRIVER + select SOC_GECKO_RMU + help + Enable Silabs Series 2 hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.smartbond b/drivers/hwinfo/Kconfig.smartbond new file mode 100644 index 00000000000..ead311966d7 --- /dev/null +++ b/drivers/hwinfo/Kconfig.smartbond @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_SMARTBOND + bool "Smartbond device reset cause" + default y + depends on SOC_FAMILY_RENESAS_SMARTBOND + select HWINFO_HAS_DRIVER + help + Enable Smartbond reset cause hwinfo driver. diff --git a/drivers/hwinfo/Kconfig.stm32 b/drivers/hwinfo/Kconfig.stm32 new file mode 100644 index 00000000000..8f151aebbcc --- /dev/null +++ b/drivers/hwinfo/Kconfig.stm32 @@ -0,0 +1,10 @@ +# Copyright The Zephyr Project Contributors +# SPDX-License-Identifier: Apache-2.0 + +config HWINFO_STM32 + bool "STM32 hwinfo" + default y + depends on SOC_FAMILY_STM32 && !SOC_SERIES_STM32WB0X + select HWINFO_HAS_DRIVER + help + Enable STM32 hwinfo driver.