drivers: flash: introduce gd32 fmc driver

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>
This commit is contained in:
HaiLong Yang 2022-09-01 00:28:33 +08:00 committed by Carles Cufí
commit 51363ae7c2
8 changed files with 1086 additions and 0 deletions

View file

@ -108,4 +108,6 @@ source "drivers/flash/Kconfig.smartbond"
source "drivers/flash/Kconfig.cadence_qspi_nor"
source "drivers/flash/Kconfig.gd32"
endif # FLASH