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 FLASH_HAS_EXPLICIT_ERASE 11 select MPU_ALLOW_FLASH_WRITE if ARM_MPU 12 help 13 Enable the GigaDevice GD32 flash driver. 14 15config GD32_NV_FLASH_V1 16 bool 17 default y 18 depends on DT_HAS_GD_GD32_NV_FLASH_V1_ENABLED 19 help 20 Enable the generic backend for GD32 FMC v1 flash driver. 21 22config GD32_NV_FLASH_V2 23 bool 24 default y 25 depends on DT_HAS_GD_GD32_NV_FLASH_V2_ENABLED 26 help 27 Enable the generic backend for GD32 FMC v2 flash driver. 28 29config GD32_NV_FLASH_V3 30 bool 31 default y 32 depends on DT_HAS_GD_GD32_NV_FLASH_V3_ENABLED 33 help 34 Enable the generic backend for GD32 FMC v3 flash driver. 35