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:
parent
346c485a88
commit
ecd6632f36
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue