public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/7] OSPI NAND MTD load and boot support
@ 2026-02-17 11:21 Anurag Dutta
  2026-02-17 11:21 ` [PATCH 1/7] common: spl: mtd: Add support for loading images from MTD Anurag Dutta
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Anurag Dutta @ 2026-02-17 11:21 UTC (permalink / raw)
  To: jagan, trini
  Cc: michal.simek, venkatesh.abbarapu, boon.khai.ng, a-dutta, s-k6,
	gehariprasath, vigneshr, u-kumar1, u-boot

Hi all
The series adds SPL support for loading images via the MTD subsystem,
including handling of bad blocks during read operations and removal of
the MTD device after image loading to allow reuse by later boot stages.
These changes enable SPL to load U-Boot proper from SPI NAND in a generic
and reusable manner. 

Tested on j784s4: https://gist.github.com/anuragdutta731/e873fb91098e71c1613fb9a3472d94e7

Apurva Nandan (6):
  common: spl: mtd: Add support for loading images from MTD
  spl: mtd: Remove MTD device after loading images
  spl: Add MTD loading support configuration
  mtd: nand: spi: Enable spinand build Kconfig option for spl
  arm: spl: Enumerate SPINAND as a boot device
  include: environment: ti: Add ospi_nand environment variables

Santhosh Kumar K (1):
  spl: mtd: Add bad block handling for SPL image loading

 arch/arm/include/asm/spl.h   |   1 +
 common/spl/Kconfig           |  30 +++++++
 common/spl/Makefile          |   2 +
 common/spl/spl_mtd.c         | 149 +++++++++++++++++++++++++++++++++++
 common/spl/spl_mtd_nand.c    |  35 ++++++++
 drivers/mtd/Makefile         |   1 +
 drivers/mtd/mtd-uclass.c     |  12 +++
 drivers/mtd/nand/Makefile    |   3 +-
 drivers/mtd/nand/spi/core.c  |  12 ++-
 include/env/ti/ospi_nand.env |  22 ++++++
 include/mtd.h                |   2 +-
 include/spl.h                |  18 +++++
 12 files changed, 281 insertions(+), 6 deletions(-)
 create mode 100644 common/spl/spl_mtd.c
 create mode 100644 common/spl/spl_mtd_nand.c
 create mode 100644 include/env/ti/ospi_nand.env

-- 
2.34.1


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-02-19  8:38 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-17 11:21 [PATCH 0/7] OSPI NAND MTD load and boot support Anurag Dutta
2026-02-17 11:21 ` [PATCH 1/7] common: spl: mtd: Add support for loading images from MTD Anurag Dutta
2026-02-17 14:54   ` Sean Anderson
2026-02-17 15:14     ` Sean Anderson
2026-02-18  8:42   ` Anshul Dalal
2026-02-17 11:21 ` [PATCH 2/7] spl: mtd: Remove MTD device after loading images Anurag Dutta
2026-02-17 11:21 ` [PATCH 3/7] spl: mtd: Add bad block handling for SPL image loading Anurag Dutta
2026-02-19  8:38   ` Anshul Dalal
2026-02-17 11:21 ` [PATCH 4/7] spl: Add MTD loading support configuration Anurag Dutta
2026-02-17 11:21 ` [PATCH 5/7] mtd: nand: spi: Enable spinand build Kconfig option for spl Anurag Dutta
2026-02-17 11:21 ` [PATCH 6/7] arm: spl: Enumerate SPINAND as a boot device Anurag Dutta
2026-02-18  8:34   ` Anshul Dalal
2026-02-17 11:21 ` [PATCH 7/7] include: environment: ti: Add ospi_nand environment variables Anurag Dutta
2026-02-17 13:31 ` [PATCH 0/7] OSPI NAND MTD load and boot support Santhosh Kumar K
2026-02-17 13:37   ` Santhosh Kumar K

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox