drivers: reset: Update Kconfig
* Utilize DT_HAS_<COMPAT>_ENABLED for devicetree based drivers Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
parent
e3a75fee79
commit
e5de3ac656
|
@ -1,9 +1,7 @@
|
||||||
# Copyright (c) 2022 Andrei-Edward Popa
|
# Copyright (c) 2022 Andrei-Edward Popa
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
# Workaround for not being able to have commas in macro arguments
|
|
||||||
DT_COMPAT_RPI_PICO_RESET := raspberrypi,pico-reset
|
|
||||||
|
|
||||||
config RESET_RPI_PICO
|
config RESET_RPI_PICO
|
||||||
bool "Raspberry Pi Reset Controller driver"
|
bool "Raspberry Pi Reset Controller driver"
|
||||||
default $(dt_compat_enabled,$(DT_COMPAT_RPI_PICO_RESET))
|
default y
|
||||||
|
depends on DT_HAS_RASPBERRYPI_PICO_RESET_ENABLED
|
||||||
|
|
Loading…
Reference in a new issue