diff options
author | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2020-04-16 14:35:48 +0200 |
---|---|---|
committer | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2020-04-16 14:36:35 +0200 |
commit | 75ef28be59c5b76d73313cfb9650f464ae943cc8 (patch) | |
tree | dca7be7a8ce7151be748fd6746c27fae69146bf7 /target/linux | |
parent | c0430b8da442c7e7093f7ead13d8efeff898d8a7 (diff) | |
download | upstream-75ef28be59c5b76d73313cfb9650f464ae943cc8.tar.gz upstream-75ef28be59c5b76d73313cfb9650f464ae943cc8.tar.bz2 upstream-75ef28be59c5b76d73313cfb9650f464ae943cc8.zip |
kernel: add support for GD25D05 SPI NOR (5.4)
This chip is used on newer RB912UAG-5HPnD r2 and 922UAGS-5HPacD boards:
Before:
[ 0.824562] spi-nor spi0.0: unrecognized JEDEC id bytes: c8 40 10 c8 40 10
[ 0.831607] spi-nor: probe of spi0.0 failed with error -2
After:
[ 0.825347] spi-nor spi0.0: gd25d05 (64 Kbytes)
[ 0.830291] 1 routerbootpart partitions found on MTD device spi0.0
[ 0.836577] Creating 1 MTD partitions on "spi0.0":
[ 0.841448] 0x000000000000-0x000000010000 : "partitions"
[ 0.848418] 4 routerbootpart partitions found on MTD device partitions
[ 0.855092] Creating 4 MTD partitions on "partitions":
[ 0.860318] 0x000000000000-0x00000000c000 : "routerboot"
[ 0.866548] 0x00000000c000-0x00000000d000 : "hard_config"
[ 0.872832] 0x00000000d000-0x00000000e000 : "bios"
[ 0.878580] 0x00000000e000-0x00000000f000 : "soft_config"
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/generic/pending-5.4/482-mtd-spi-nor-add-support-for-Gigadevice-GD25D05.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/generic/pending-5.4/482-mtd-spi-nor-add-support-for-Gigadevice-GD25D05.patch b/target/linux/generic/pending-5.4/482-mtd-spi-nor-add-support-for-Gigadevice-GD25D05.patch new file mode 100644 index 0000000000..e28fcc9d5c --- /dev/null +++ b/target/linux/generic/pending-5.4/482-mtd-spi-nor-add-support-for-Gigadevice-GD25D05.patch @@ -0,0 +1,24 @@ +From d68b4aa22e8c625685bfad642dd7337948dc0ad1 Mon Sep 17 00:00:00 2001 +From: Koen Vandeputte <koen.vandeputte@ncentric.com> +Date: Mon, 6 Jan 2020 13:07:56 +0100 +Subject: [PATCH] mtd: spi-nor: add support for Gigadevice GD25D05 + +Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com> +--- + drivers/mtd/spi-nor/spi-nor.c | 5 +++++ + 1 file changed, 5 insertions(+) + +--- a/drivers/mtd/spi-nor/spi-nor.c ++++ b/drivers/mtd/spi-nor/spi-nor.c +@@ -2230,6 +2230,11 @@ static const struct flash_info spi_nor_i + + /* GigaDevice */ + { ++ "gd25d05", INFO(0xc84010, 0, 64 * 1024, 1, ++ SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | ++ SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) ++ }, ++ { + "gd25q16", INFO(0xc84015, 0, 64 * 1024, 32, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) |