[PATCH v2 00/14] Support SPI NAND in fastboot protocol
Alexey Romanov
avromanov at salutedevices.com
Tue Jan 9 18:32:12 CET 2024
Currently, fastboot in U-Boot doens't support SPI NAND
devices. This patchset adds support for SPI NAND in fastboot
nand subsystem.
Changes V1 -> V2:
- Rebase patchset over u-boot/next.
- Move nand_unregister(), nand_reinit() and nang_page_size() functions
to NAND core folder too.
- Move changes about CMD_RET_FAILURE/SUCCESS into separate patches.
Alexey Romanov (14):
nand: move NAND initialization API to nand/core.c
nand: don't overwrite mtd name in nand_register()
nand: move nand_util.c to NAND core folder
nand: move nand_erase_opts() to core NAND folder
spi: add board_nand_init() function
spi: use nand_register() instead of add_mtd_device()
mtdparts: use negative error codes
mtdparts: use CMD_RET_FAILURE define
jffs2: use negative error codes
jffs2: use CMD_RET_FAILURE/SUCCESS defines
cmd: allow to enable CMD_NAND for SPI NAND devices
fastboot: check device type for SPI NAND too
fastboot: enable FASTBOOT_FLASH option for SPI NAND devices
fastboot: fb_nand: add missing newlines in pr_err() macro
cmd/Kconfig | 2 +-
cmd/jffs2.c | 45 +-
cmd/mtdparts.c | 154 +++----
drivers/fastboot/Kconfig | 4 +-
drivers/fastboot/fb_nand.c | 12 +-
drivers/mtd/Kconfig | 2 +-
drivers/mtd/nand/Kconfig | 10 +
drivers/mtd/nand/Makefile | 2 +-
drivers/mtd/nand/core.c | 193 +++++++++
drivers/mtd/nand/raw/Kconfig | 10 -
drivers/mtd/nand/raw/nand.c | 182 --------
drivers/mtd/nand/raw/nand_util.c | 664 -----------------------------
drivers/mtd/nand/spi/Kconfig | 1 +
drivers/mtd/nand/spi/core.c | 17 +-
drivers/mtd/nand/util.c | 709 +++++++++++++++++++++++++++++++
include/nand.h | 2 +
16 files changed, 1042 insertions(+), 967 deletions(-)
create mode 100644 drivers/mtd/nand/util.c
--
2.30.1
More information about the U-Boot
mailing list