Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions MAINTAINERS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5766,6 +5766,16 @@ West:
labels:
- "area: CMSIS_6"

"West project: dhara":
status: maintained
maintainers:
- tpambor
files:
- drivers/disk/ftl_dhara.c
- modules/dhara/
labels:
- "area: Disk Access"

"West project: edtt":
status: maintained
maintainers:
Expand Down
1 change: 1 addition & 0 deletions drivers/disk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ add_subdirectory_ifdef(CONFIG_NVME nvme)

# zephyr-keep-sorted-start
zephyr_library_sources_ifdef(CONFIG_DISK_DRIVER_FLASH flashdisk.c)
zephyr_library_sources_ifdef(CONFIG_DISK_DRIVER_FTL ftl_dhara.c)
zephyr_library_sources_ifdef(CONFIG_DISK_DRIVER_LOOPBACK loopback_disk.c)
zephyr_library_sources_ifdef(CONFIG_DISK_DRIVER_RAM ramdisk.c)
zephyr_library_sources_ifdef(CONFIG_SDMMC_STM32 sdmmc_stm32.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/disk/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ if DISK_DRIVERS

# zephyr-keep-sorted-start
source "drivers/disk/Kconfig.flash"
source "drivers/disk/Kconfig.ftl"
source "drivers/disk/Kconfig.loopback"
source "drivers/disk/Kconfig.mmc"
source "drivers/disk/Kconfig.ram"
Expand Down
35 changes: 35 additions & 0 deletions drivers/disk/Kconfig.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright (c) 2025 Endress+Hauser GmbH+Co. KG
# SPDX-License-Identifier: Apache-2.0

config DISK_DRIVER_FTL
bool "Flash translation layer"
default y
depends on ZEPHYR_DHARA_MODULE
depends on DT_HAS_ZEPHYR_FTL_DHARA_ENABLED
select FLASH
select FLASH_MAP
select FLASH_EX_OP_ENABLED
help
Enable flash translation layer disk driver for NAND flashes.

if DISK_DRIVER_FTL

config DISK_FTL_GC_RATIO
int "Garbage collection ratio"
default 15
help
This is the ratio of garbage collection operations to real writes when
automatic collection is active. Smaller values lead to faster and more
predictable input/output at the expense of capacity.

config DISK_FTL_SUPPORT_CONCURRENT_ACCESS
bool "Support concurrent access"
help
Enable support for concurrent access to the disk. This allows multiple threads
to access the disk at the same time.

module = DISK_FTL
module-str = disk_ftl
source "subsys/logging/Kconfig.template.log_config"

endif # DISK_DRIVER_FTL
Loading
Loading