1# Copyright (c) 2025 Silicon Laboratories Inc. 2# SPDX-License-Identifier: Apache-2.0 3 4config SOC_FLASH_SILABS_S2 5 bool "Silicon Labs Series 2 flash driver" 6 default y 7 depends on DT_HAS_SILABS_SERIES2_FLASH_CONTROLLER_ENABLED 8 select FLASH_HAS_DRIVER_ENABLED 9 select FLASH_HAS_PAGE_LAYOUT 10 select SOC_GECKO_MSC 11 select FLASH_HAS_EXPLICIT_ERASE 12 select MPU_ALLOW_FLASH_WRITE if ARM_MPU 13 help 14 Enable Silicon Labs Series 2 internal flash driver. 15 16if SOC_FLASH_SILABS_S2 17 18config SOC_FLASH_SILABS_S2_DMA_WRITE 19 bool "Use DMA for flash write operations" 20 depends on DMA 21 default y if $(dt_compat_any_has_prop,$(DT_COMPAT_SILABS_SERIES2_FLASH_CONTROLLER),dmas) 22 23config SOC_FLASH_SILABS_S2_DMA_READ 24 bool "Use DMA for flash read operations" 25 depends on DMA 26 27endif 28