]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: spl: Add a test for NAND
authorSean Anderson <seanga2@gmail.com>
Sat, 4 Nov 2023 20:37:53 +0000 (16:37 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 16 Nov 2023 17:43:49 +0000 (12:43 -0500)
commit8502b5bf20505408773d98fbc6e9307cb962e8b0
tree768fcf0bd811fa6a2ee33ee74c172ca52e87cc49
parentbc8e8a4bfa0f7519573b79f5fff610370545b4e1
test: spl: Add a test for NAND

Add a SPL test for the NAND load method. We use some different functions to
do the writing from the main test since things like nand_write_skip_bad
aren't available in SPL.

We disable BBT scanning, since scan_bbt is only populated when not in SPL.
We use nand_spl_loaders.c as it seems to be common to at least a few boards
already. However, we do not use nand_spl_simple.c because it would require
us to implement cmd_ctrl.  The various nand load functions are adapted from
omap_gpmc. However, they have been modified for simplicity/correctness.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
arch/sandbox/include/asm/spl.h
configs/sandbox_noinst_defconfig
drivers/mtd/nand/raw/Kconfig
drivers/mtd/nand/raw/sand_nand.c
test/image/Kconfig
test/image/Makefile
test/image/spl_load_nand.c [new file with mode: 0644]