--- zzzz-none-000/linux-5.4.213/include/linux/mtd/rawnand.h 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/include/linux/mtd/rawnand.h 2024-08-14 09:02:08.000000000 +0000 @@ -222,6 +222,13 @@ */ #define NAND_KEEP_TIMINGS 0x00800000 +/* + * NAND SPI device uses two planes and needs to set a plane select bit on + * "program load" commands according to the page which will be written by + * the "program execute" command + */ +#define NAND_MXIC_PLANE_SELECT 0x01000000 + /* Cell info constants */ #define NAND_CI_CHIPNR_MSK 0x03 #define NAND_CI_CELLTYPE_MSK 0x0C