zephyr/drivers/flash/Kconfig.gecko
Kumar Gala a529c4511d drivers: flash: Update drivers to use devicetree Kconfig symbol
Update flash drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.

We remove 'depend on' Kconfig for symbols that would be implied by
the devicetree node existing.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-30 08:27:13 -05:00

16 lines
442 B
Plaintext

# Silicon Labs Gecko flash driver config
# Copyright (c) 2018, Piotr Mienkowski
# SPDX-License-Identifier: Apache-2.0
config SOC_FLASH_GECKO
bool "Silicon Labs Gecko flash driver"
default y
depends on DT_HAS_SILABS_GECKO_FLASH_CONTROLLER_ENABLED
select FLASH_HAS_DRIVER_ENABLED
select FLASH_HAS_PAGE_LAYOUT
select SOC_GECKO_MSC
select MPU_ALLOW_FLASH_WRITE if ARM_MPU
help
Enable Silicon Labs Gecko series internal flash driver.