drivers: bbram: Update Kconfig

* Utilize DT_HAS_<COMPAT>_ENABLED for devicetree based drivers

Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
Kumar Gala 2022-08-10 23:26:28 -05:00 committed by Kumar Gala
commit ecd6632f36
4 changed files with 8 additions and 15 deletions

View file

@ -1,10 +1,9 @@
# Copyright (c) 2021 Google Inc # Copyright (c) 2021 Google Inc
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
DT_COMPAT_ST_BBRAM_EMUL := zephyr,bbram-emul
config BBRAM_EMUL config BBRAM_EMUL
bool "Battery-backed RAM emulated drivers" bool "Battery-backed RAM emulated drivers"
default $(dt_compat_enabled,${DT_COMPAT_ST_BBRAM_EMUL}) default y
depends on DT_HAS_ZEPHYR_BBRAM_EMUL_ENABLED
help help
This option enables the BBRAM emulation driver. This option enables the BBRAM emulation driver.

View file

@ -1,12 +1,10 @@
# Copyright (c) 2021 Google Inc # Copyright (c) 2021 Google Inc
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
DT_COMPAT_ITE_IT8XXX2_BBRAM := ite,it8xxx2-bbram
config BBRAM_IT8XXX2 config BBRAM_IT8XXX2
bool "ITE IT81202 Battery-backed RAM drivers" bool "ITE IT81202 Battery-backed RAM drivers"
depends on SOC_FAMILY_RISCV_ITE default y
default $(dt_compat_enabled,$(DT_COMPAT_ITE_IT8XXX2_BBRAM)) depends on DT_HAS_ITE_IT8XXX2_BBRAM_ENABLED
help help
This option enables the BBRAM driver for RISCV_ITE family of This option enables the BBRAM driver for RISCV_ITE family of
processors. processors.

View file

@ -1,11 +1,9 @@
# Copyright (c) 2021 Google Inc # Copyright (c) 2021 Google Inc
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
DT_COMPAT_ST_BBRAM_NPCX := nuvoton,npcx-bbram
config BBRAM_NPCX config BBRAM_NPCX
bool "Nuvoton NPCX embedded controller (EC) Battery-backed RAM drivers" bool "Nuvoton NPCX embedded controller (EC) Battery-backed RAM drivers"
depends on SOC_FAMILY_NPCX default y
default $(dt_compat_enabled,${DT_COMPAT_ST_BBRAM_NPCX}) depends on DT_HAS_NUVOTON_NPCX_BBRAM_ENABLED
help help
This option enables the BBRAM driver for NPCX family of processors. This option enables the BBRAM driver for NPCX family of processors.

View file

@ -2,12 +2,10 @@
# Copyright (c) 2022 Microchip Technology Inc. # Copyright (c) 2022 Microchip Technology Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
DT_COMPAT_ST_BBRAM_XEC := microchip,xec-bbram
config BBRAM_XEC config BBRAM_XEC
bool "Microchip XEC Battery-backed RAM drivers" bool "Microchip XEC Battery-backed RAM drivers"
depends on SOC_FAMILY_MEC default y
default $(dt_compat_enabled,$(DT_COMPAT_ST_BBRAM_XEC)) depends on DT_HAS_MICROCHIP_XEC_BBRAM_ENABLED
help help
This option enables the BBRAM driver for Microchip XEC family of This option enables the BBRAM driver for Microchip XEC family of
processors. processors.