diff --git a/CODEOWNERS b/CODEOWNERS index 9d08bc29197..4eac4b9e8b0 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -345,6 +345,7 @@ /drivers/pwm/*gecko* @sun681 /drivers/pwm/*it8xxx2* @RuibinChang /drivers/regulator/*pmic* @danieldegrasse +/drivers/reset/ @andrei-edward-popa /drivers/sensor/ @MaureenHelm /drivers/sensor/ams_iAQcore/ @alexanderwachter /drivers/sensor/ens210/ @alexanderwachter diff --git a/drivers/CMakeLists.txt b/drivers/CMakeLists.txt index 0aafe633fe9..c8c674ca0fa 100644 --- a/drivers/CMakeLists.txt +++ b/drivers/CMakeLists.txt @@ -67,3 +67,4 @@ add_subdirectory_ifdef(CONFIG_PINCTRL pinctrl) add_subdirectory_ifdef(CONFIG_MBOX mbox) add_subdirectory_ifdef(CONFIG_BOARD_XENVM xen) add_subdirectory_ifdef(CONFIG_MM_DRV mm) +add_subdirectory_ifdef(CONFIG_RESET reset) diff --git a/drivers/Kconfig b/drivers/Kconfig index 96ef2987cf2..1f083faaac8 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -133,4 +133,6 @@ source "drivers/power_domain/Kconfig" source "drivers/usbc/Kconfig" +source "drivers/reset/Kconfig" + endmenu diff --git a/drivers/reset/CMakeLists.txt b/drivers/reset/CMakeLists.txt new file mode 100644 index 00000000000..28a0cecce8a --- /dev/null +++ b/drivers/reset/CMakeLists.txt @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: Apache-2.0 + +zephyr_library() diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig new file mode 100644 index 00000000000..fc53589998a --- /dev/null +++ b/drivers/reset/Kconfig @@ -0,0 +1,30 @@ +# Reset Controller driver configuration options + +# Copyright (c) 2022 Andrei-Edward Popa +# SPDX-License-Identifier: Apache-2.0 + +# +# Reset Controller options +# +menuconfig RESET + bool "Reset Controller drivers" + help + Reset Controller drivers. Reset node represents a region containing + information about reset controller device. The typical use-case is + for some other node's drivers to acquire a reference to the reset + controller node together with some reset information. + +if RESET + +config RESET_INIT_PRIORITY + int "Reset Controller driver init priority" + default 40 + help + This option controls the priority of the reset controller device + initialization. Higher priority ensures that the device is + initialized earlier in the startup cycle. If unsure, leave at default + value + +comment "Reset Controller Drivers" + +endif # RESET