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
parent 346c485a88
commit ecd6632f36
4 changed files with 8 additions and 15 deletions

View file

@ -1,10 +1,9 @@
# Copyright (c) 2021 Google Inc
# SPDX-License-Identifier: Apache-2.0
DT_COMPAT_ST_BBRAM_EMUL := zephyr,bbram-emul
config BBRAM_EMUL
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
This option enables the BBRAM emulation driver.

View file

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

View file

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

View file

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