From: Felix Fietkau Date: Sun, 28 Aug 2016 13:31:55 +0000 (+0200) Subject: kernel: spi-nor: add support for ESMT_f25l32qa and ESMT_f25l64qa X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8b9707379f5fd88e7f2d83e9eb7d958bb870ba3e;p=openwrt%2Fstaging%2Fzorun.git kernel: spi-nor: add support for ESMT_f25l32qa and ESMT_f25l64qa Add Support for the ESMT_F25L32QA and ESMT_F25L64QA. These are 4MB and 8MB SPI NOR Chips from Elite Semiconductor Memory Technology Signed-off-by: L. D. Pinney Signed-off-by: Felix Fietkau --- diff --git a/target/linux/generic/patches-4.4/150-mtd-spi-nor-add-support-for-ESMT_f25l32qa-and-ESMT_f.patch b/target/linux/generic/patches-4.4/150-mtd-spi-nor-add-support-for-ESMT_f25l32qa-and-ESMT_f.patch new file mode 100644 index 0000000000..65f1b708a1 --- /dev/null +++ b/target/linux/generic/patches-4.4/150-mtd-spi-nor-add-support-for-ESMT_f25l32qa-and-ESMT_f.patch @@ -0,0 +1,21 @@ +From: "L. D. Pinney" +Date: Thu, 25 Aug 2016 13:07:56 -0500 +Subject: [PATCH] mtd: spi-nor: add support for ESMT_f25l32qa and ESMT_f25l64qa + +Add Support for the ESMT_F25L32QA and ESMT_F25L64QA +These are 4MB and 8MB SPI NOR Chips from Elite Semiconductor Memory Technology + +Signed-off-by: L. D. Pinney +--- + +--- a/drivers/mtd/spi-nor/spi-nor.c ++++ b/drivers/mtd/spi-nor/spi-nor.c +@@ -688,6 +688,8 @@ static const struct flash_info spi_nor_i + + /* ESMT */ + { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) }, ++ { "f25l32qa", INFO(0x8c4116, 0, 64 * 1024, 64, SECT_4K) }, ++ { "f25l64qa", INFO(0x8c4117, 0, 64 * 1024, 128, SECT_4K) }, + + /* Everspin */ + { "mr25h256", CAT25_INFO( 32 * 1024, 1, 256, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) }, diff --git a/target/linux/generic/patches-4.4/465-m25p80-mx-disable-software-protection.patch b/target/linux/generic/patches-4.4/465-m25p80-mx-disable-software-protection.patch index 726e4d1a96..070f4c6023 100644 --- a/target/linux/generic/patches-4.4/465-m25p80-mx-disable-software-protection.patch +++ b/target/linux/generic/patches-4.4/465-m25p80-mx-disable-software-protection.patch @@ -4,7 +4,7 @@ Signed-off-by: Felix Fietkau --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c -@@ -1156,6 +1156,7 @@ int spi_nor_scan(struct spi_nor *nor, co +@@ -1158,6 +1158,7 @@ int spi_nor_scan(struct spi_nor *nor, co if (JEDEC_MFR(info) == SNOR_MFR_ATMEL || JEDEC_MFR(info) == SNOR_MFR_INTEL || diff --git a/target/linux/generic/patches-4.4/475-mtd-spi-nor-add-macronix-mx25u25635f.patch b/target/linux/generic/patches-4.4/475-mtd-spi-nor-add-macronix-mx25u25635f.patch index c2aa4188f4..3db4a41968 100644 --- a/target/linux/generic/patches-4.4/475-mtd-spi-nor-add-macronix-mx25u25635f.patch +++ b/target/linux/generic/patches-4.4/475-mtd-spi-nor-add-macronix-mx25u25635f.patch @@ -1,6 +1,6 @@ --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c -@@ -722,6 +722,7 @@ static const struct flash_info spi_nor_i +@@ -724,6 +724,7 @@ static const struct flash_info spi_nor_i { "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) }, { "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) }, { "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, 0) },