diff --git a/patches/linux/0001-linux-driver-nor.patch b/patches/linux/0001-linux-driver-nor.patch new file mode 100644 index 0000000..20e69d9 --- /dev/null +++ b/patches/linux/0001-linux-driver-nor.patch @@ -0,0 +1,14 @@ +--- a/drivers/mtd/spi-nor/spi-nor.c 2019-07-30 19:04:15.000000000 -0700 ++++ b/drivers/mtd/spi-nor/spi-nor.c 2020-05-18 18:15:43.425404994 -0700 +@@ -2112,6 +2112,11 @@ + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) + }, + { ++ "xt25f128b", INFO(0x0b4018, 0, 64 * 1024, 256, ++ SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | ++ SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) ++ }, ++ { + "w25q128jv", INFO(0xef7018, 0, 64 * 1024, 256, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) diff --git a/patches/uboot/0003-uboot-spi-nor-driver.patch b/patches/uboot/0003-uboot-spi-nor-driver.patch new file mode 100644 index 0000000..9eeb2e5 --- /dev/null +++ b/patches/uboot/0003-uboot-spi-nor-driver.patch @@ -0,0 +1,14 @@ +--- a/drivers/mtd/spi/spi-nor-ids.c 2019-07-30 19:16:16.000000000 -0700 ++++ b/drivers/mtd/spi/spi-nor-ids.c 2020-05-18 18:26:08.972315961 -0700 +@@ -267,6 +267,11 @@ + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) + }, + { ++ INFO("xt25f128b", 0x0b4018, 0, 64 * 1024, 256, ++ SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | ++ SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) ++ }, ++ { + INFO("w25q128jv", 0xef7018, 0, 64 * 1024, 256, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)