diff mbox

[OpenWrt-Devel,1/3] Add support for EON EN25Q128 flash chip.

Message ID 1433334525-4052-3-git-send-email-kejia.hu@codethink.co.uk
State Changes Requested
Delegated to: Jonas Gorski
Headers show

Commit Message

Kejia Hu June 3, 2015, 12:28 p.m. UTC
From: Kejia Hu <kejia.hu@codethink.co.uk>

This is part of the work to add support for Thomson TG582n router.

There are 2 variants for the board, namely DANT-T and DANT-1, EN25Q128 is used on
DANT-1 only.
---
 .../475-mtd-spi-nor-add-support-for-the-EON-EN25Q128.patch   | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 target/linux/generic/patches-3.18/475-mtd-spi-nor-add-support-for-the-EON-EN25Q128.patch

Comments

Jonas Gorski June 10, 2015, 9:25 a.m. UTC | #1
Hi,

please prefix your patch subjects with an appropriate subject, e.g.
"kernel:", or "brcm63xx:".

On Wed, Jun 3, 2015 at 2:28 PM, Kejia Hu (Terry)
<kejia.hu@codethink.co.uk> wrote:
> From: Kejia Hu <kejia.hu@codethink.co.uk>
>
> This is part of the work to add support for Thomson TG582n router.

You don't need to state this, the patch numbering already makes this clear.

> There are 2 variants for the board, namely DANT-T and DANT-1, EN25Q128 is used on
> DANT-1 only.

Is this also submitted upstream to linux-mtd? Also note that there
also are also patches-4.0, so it would need this patch as well.
Furthermore please note the rules for patches to generic found in
target/linux/generic/PATCHES.


Regards
Jonas
diff mbox

Patch

diff --git a/target/linux/generic/patches-3.18/475-mtd-spi-nor-add-support-for-the-EON-EN25Q128.patch b/target/linux/generic/patches-3.18/475-mtd-spi-nor-add-support-for-the-EON-EN25Q128.patch
new file mode 100644
index 0000000..7bb550d
--- /dev/null
+++ b/target/linux/generic/patches-3.18/475-mtd-spi-nor-add-support-for-the-EON-EN25Q128.patch
@@ -0,0 +1,12 @@ 
+diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
+index c51ee52..09a1a12 100644
+--- a/drivers/mtd/spi-nor/spi-nor.c
++++ b/drivers/mtd/spi-nor/spi-nor.c
+@@ -497,6 +497,7 @@ static const struct spi_device_id spi_nor_ids[] = {
+ 	{ "en25q32b",   INFO(0x1c3016, 0, 64 * 1024,   64, 0) },
+ 	{ "en25p64",    INFO(0x1c2017, 0, 64 * 1024,  128, 0) },
+ 	{ "en25q64",    INFO(0x1c3017, 0, 64 * 1024,  128, SECT_4K) },
++	{ "en25q128",   INFO(0x1c3018, 0, 64 * 1024,  256, 0) },
+ 	{ "en25qh128",  INFO(0x1c7018, 0, 64 * 1024,  256, 0) },
+ 	{ "en25qh256",  INFO(0x1c7019, 0, 64 * 1024,  512, 0) },
+