1# Copyright (c) 2022 BrainCo Inc. 2# SPDX-License-Identifier: Apache-2.0 3 4config SOC_FLASH_GD32 5 bool "GigaDevice GD32 flash driver" 6 default y 7 depends on (GD32_NV_FLASH_V1 || GD32_NV_FLASH_V2 || GD32_NV_FLASH_V3) 8 select FLASH_HAS_DRIVER_ENABLED 9 select FLASH_HAS_PAGE_LAYOUT 10 select MPU_ALLOW_FLASH_WRITE if ARM_MPU 11 help 12 Enable the GigaDevice GD32 flash driver. 13 14config GD32_NV_FLASH_V1 15 bool 16 default y 17 depends on DT_HAS_GD_GD32_NV_FLASH_V1_ENABLED 18 help 19 Enable the generic backend for GD32 FMC v1 flash driver. 20 21config GD32_NV_FLASH_V2 22 bool 23 default y 24 depends on DT_HAS_GD_GD32_NV_FLASH_V2_ENABLED 25 help 26 Enable the generic backend for GD32 FMC v2 flash driver. 27 28config GD32_NV_FLASH_V3 29 bool 30 default y 31 depends on DT_HAS_GD_GD32_NV_FLASH_V3_ENABLED 32 help 33 Enable the generic backend for GD32 FMC v3 flash driver. 34