51363ae7c2
This supports three types GD32 FMC flash memory. GD32 FMC v1, GD32 FMC v2 and GD32 FMC v3. GD32 FMC v1 for small flash memory, flash size can be up to 512KB. GD32 FMC v2 for large flash memory, flash size can be up to 3072KB. GD32 FMC v3 not use page but sector as minimum block, flash size can be up to 3072KB. Signed-off-by: HaiLong Yang <hailong.yang@brainco.cn>
34 lines
833 B
Plaintext
34 lines
833 B
Plaintext
# Copyright (c) 2022 BrainCo Inc.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config SOC_FLASH_GD32
|
|
bool "GigaDevice GD32 flash driver"
|
|
default y
|
|
depends on (GD32_NV_FLASH_V1 || GD32_NV_FLASH_V2 || GD32_NV_FLASH_V3)
|
|
select FLASH_HAS_DRIVER_ENABLED
|
|
select FLASH_HAS_PAGE_LAYOUT
|
|
select MPU_ALLOW_FLASH_WRITE if ARM_MPU
|
|
help
|
|
Enable the GigaDevice GD32 flash driver.
|
|
|
|
config GD32_NV_FLASH_V1
|
|
bool
|
|
default y
|
|
depends on DT_HAS_GD_GD32_NV_FLASH_V1_ENABLED
|
|
help
|
|
Enable the generic backend for GD32 FMC v1 flash driver.
|
|
|
|
config GD32_NV_FLASH_V2
|
|
bool
|
|
default y
|
|
depends on DT_HAS_GD_GD32_NV_FLASH_V2_ENABLED
|
|
help
|
|
Enable the generic backend for GD32 FMC v2 flash driver.
|
|
|
|
config GD32_NV_FLASH_V3
|
|
bool
|
|
default y
|
|
depends on DT_HAS_GD_GD32_NV_FLASH_V3_ENABLED
|
|
help
|
|
Enable the generic backend for GD32 FMC v3 flash driver.
|