nuttx/drivers/mtd
jsanchez-2g 8e6b925200 mtd/ramtron: Add optional byte-write support.
Implement the MTD write callback when CONFIG_MTD_BYTE_WRITE is enabled,
allowing unaligned byte writes without changing existing block operations.
Reject ranges outside the physical device and return zero for valid empty
writes without SPI traffic.

Use the initialized SPI device ID, hold the bus lock across the request,
and issue write-enable for each transfer. With CONFIG_RAMTRON_CHUNKING,
split writes at the write-buffer boundaries of chunk-limited parts.
Document the optional callback and its bounds and chunk behavior.

Verified with mocked-SPI host tests, driver compilation with byte writes
and chunking enabled/disabled, and a Conductor STM32H743BI hardware test
covering single-byte and unaligned writes, surrounding-byte preservation,
invalid ranges, and restoration of the original FRAM contents. Hardware
coverage is limited to the installed 32 KiB part.

Assisted-by: Codex:GPT-6
Signed-off-by: jsanchez-2g <jsanchez@2g-eng.com>
2026-10-09 12:13:18 +08:00
..
.gitignore
at24xx.c
at25.c
at25ee.c
at45db.c
cfi.c
cfi.h
CMakeLists.txt
dhara.c
filemtd.c
ftl.c
gd5f.c
gd25.c
gd55.c
hamming.c
is25xp.c
Kconfig
m25px.c
Make.defs
mtd_cfi.c
mtd_config.c
mtd_config_nvs.c
mtd_modeltab.c
mtd_nand.c
mtd_nandecc.c
mtd_nandmodel.c
mtd_nandram.c
mtd_nandscheme.c
mtd_nandwrapper.c
mtd_onfi.c
mtd_partition.c
mtd_progmem.c
mtd_rwbuffer.c
mx25lx.c
mx25rxx.c
mx25uw25645g.c
mx35.c
n25qxxx.c
nullmtd.c
nvblk.c
rammtd.c
ramtron.c mtd/ramtron: Add optional byte-write support. 2026-10-09 12:13:18 +08:00
rpmsgmtd.c
rpmsgmtd.h
rpmsgmtd_server.c
s25fl1.c
sector512.c
skeleton.c
smart.c
sst25.c
sst25xx.c
sst26.c
sst39vf.c
w25.c
w25n.c
w25qxxxjv.c