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 drivers/mtd: add MX25UW25645G support 2026-08-19 19:16:00 +02:00
dhara.c drivers/: Multiple Drivers Are Registered With World Writable Part 3 2026-07-16 09:49:07 -03:00
filemtd.c drivers/mtd/filemtd: fix nxstyle errors in filemtd.c 2026-09-04 08:51:20 +08:00
ftl.c libs/libc: Fix divide-by-zero in stat() with large filesystem block sizes 2026-07-16 23:37:22 +08:00
gd5f.c
gd25.c drivers/mtd/gd25.c: ensure the device is not in power down mode 2026-09-08 08:59:33 +08:00
gd55.c
hamming.c
is25xp.c
Kconfig drivers/mtd: add MX25UW25645G support 2026-08-19 19:16:00 +02:00
m25px.c
Make.defs drivers/mtd: add MX25UW25645G support 2026-08-19 19:16:00 +02:00
mtd_cfi.c
mtd_config.c drivers/mtd/mtd_config: fix UAF in mtdconfig_unregister_by_path 2026-09-17 11:30:34 -03:00
mtd_config_nvs.c sched/semaphore: Fix pre-existing nxstyle issues in the touched files 2026-09-25 10:37:43 +02:00
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 drivers/mtd: add MX25UW25645G support 2026-08-19 19:16:00 +02:00
mx35.c
n25qxxx.c
nullmtd.c
nvblk.c drivers/: Multiple Drivers Are Registered With World Writable Part 3 2026-07-16 09:49:07 -03:00
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 libs/libc: Fix divide-by-zero in stat() with large filesystem block sizes 2026-07-16 23:37:22 +08:00
sst25.c
sst25xx.c
sst26.c
sst39vf.c
w25.c drivers/mtd: Add 4-byte addressing support for W25Q256 and W25Q512. 2026-10-08 16:17:04 -03:00
w25n.c
w25qxxxjv.c