Merge pull request #18 from JarrettR/master
Some checks failed
CI / build (push) Failing after 5m59s
Some checks failed
CI / build (push) Failing after 5m59s
Added support for xt25f128b SPI NOR flash
This commit is contained in:
commit
ab0cdc5977
2 changed files with 28 additions and 0 deletions
14
patches/linux/0001-linux-driver-nor.patch
Normal file
14
patches/linux/0001-linux-driver-nor.patch
Normal file
|
@ -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)
|
14
patches/uboot/0003-uboot-spi-nor-driver.patch
Normal file
14
patches/uboot/0003-uboot-spi-nor-driver.patch
Normal file
|
@ -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)
|
Loading…
Reference in a new issue