walnux/boards/risc-v/esp32c3-legacy/common
jingfei d12cf1cb75 drivers/fs:Always use register_mtddriver() to register the MTD device.
We have adjusted the registration method for MTD devices
in nuttx/boards, replacing the previous approach using
ftl_initialize() and bchdev_register() with
register_mtddriver().

When registering MTD devices via register_mtddriver(),
FTL and BCH wrappers will be added during the open() process:

1. Character Device Mode:
   When accessing the MTD device node via the open() interface,
   the device will be automatically converted to a character
   device. Both FTL and BCH wrappers will be implicitly added,
   provided that BCH support is enabled in the configuration.

2. Block Device Mode:
   When accessing the MTD device node via open_blockdriver(),
   the device will be treated as a block device, with only
   the FTL wrapper automatically applied.

Due to the automatic wrapping of MTD devices during the
open() process, the legacy registration methods
ftl_initialize() and bchdev_register() are no longer
required for MTD device registration for user code and should
be used only internally within fs and driver code.

Signed-off-by: jingfei <jingfei@xiaomi.com>
2025-07-16 14:11:41 +08:00
..
include boards/risk-v/esp32c3-legacy: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00
kernel boards/risk-v/esp32c3-legacy: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00
scripts boards/risk-v/esp32c3-legacy: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00
src drivers/fs:Always use register_mtddriver() to register the MTD device. 2025-07-16 14:11:41 +08:00
.gitignore
Kconfig risc-v/esp32: Fixed File-system mount point 2024-10-22 13:33:19 +08:00
Makefile boards/risk-v/esp32c3-legacy: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00