kernel: update spi-nor in 4.9 to spi-nor tree version (next branch)
[openwrt/openwrt.git] / target / linux / generic / patches-4.9 / 062-v4.11-0008-mtd-spi-nor-Add-support-for-gd25q16.patch
1 From 4c5747a390acc9d1da3b332507c8bae7a8ddfc48 Mon Sep 17 00:00:00 2001
2 From: Kamal Dasu <kdasu.kdev@gmail.com>
3 Date: Fri, 20 Jan 2017 14:25:51 -0500
4 Subject: [PATCH] mtd: spi-nor: Add support for gd25q16
5
6 Add GigaDevice GD25Q16 (16M-bit) to supported list.
7
8 Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
9 Acked-by: Marek Vasut <marek.vasut@gmail.com>
10 Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
11 ---
12 drivers/mtd/spi-nor/spi-nor.c | 5 +++++
13 1 file changed, 5 insertions(+)
14
15 --- a/drivers/mtd/spi-nor/spi-nor.c
16 +++ b/drivers/mtd/spi-nor/spi-nor.c
17 @@ -971,6 +971,11 @@ static const struct flash_info spi_nor_i
18
19 /* GigaDevice */
20 {
21 + "gd25q16", INFO(0xc84015, 0, 64 * 1024, 32,
22 + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
23 + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
24 + },
25 + {
26 "gd25q32", INFO(0xc84016, 0, 64 * 1024, 64,
27 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
28 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)