diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-30 12:30:31 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-11-10 08:42:26 +0100 |
commit | b6bcd96de5a75bdc5d06a06f2efffc2d89e346ec (patch) | |
tree | 3d6f1260487b7c2fd9cfef201203b9dbc933a31c /arch/arm/boards/dss11/init.c | |
parent | 18a8bfd6a7ea8e93b88fba49b73348b943713076 (diff) | |
download | barebox-b6bcd96de5a75bdc5d06a06f2efffc2d89e346ec.tar.gz |
mtd: nand: Update to Linux-5.9
This updates the barebox NAND layer and parts of the mtd layer to
Linux-5.9.
This patch is huge, but the barebox NAND layer is so far away from the
Linux NAND layer that a step by step update would have taken ages.
Unlike Linux barebox has functions to mark a block as good. This feature
has been preserved. Also barebox used to make NAND write support
optional, this feature is lost during the update for the sake of better
compatibility to the Linux NAND layer.
This patch has been tested:
- GPMI aka nand_mxs on i.MX6
- nand_imx on i.MX25
- nand_omap_gpmc on AM335x
- atmel_nand on Atmel sama5d3
- nand_denali on SoCFPGA
Currently untested:
- nand_orion
- nand_mrvl_nfc
- nand_s3c24xx
The nand_denali driver is tested with the update of that driver to
Linux-5.9 following in the next patch.
I could only test the drivers with the NAND chips found on my boards, so
there's still enough room for regressions, especially given that the
NAND drivers themselves are mostly not updated. With the NAND layer
being up-to-date with Linux it should hopefully be easy to update
drivers to their Linux counterpart as well if necessary.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/dss11/init.c')
-rw-r--r-- | arch/arm/boards/dss11/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/boards/dss11/init.c b/arch/arm/boards/dss11/init.c index 53168acb98..6ce986fc39 100644 --- a/arch/arm/boards/dss11/init.c +++ b/arch/arm/boards/dss11/init.c @@ -14,6 +14,7 @@ #include <asm/io.h> #include <mach/hardware.h> #include <nand.h> +#include <linux/mtd/rawnand.h> #include <linux/mtd/nand.h> #include <mach/board.h> #include <mach/at91sam9_smc.h> |