diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-09-08 05:24:57 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-09-08 05:24:57 +0000 |
commit | d883248ad0dc694a560b24241d98d6c834679148 (patch) | |
tree | 7891b88a43cc847853be9007e99b16fa1ee9c1c0 /target/linux/brcm47xx/patches-4.1/800-bcma-add-table-of-serial-flashes-with-smaller-blocks.patch | |
parent | a35a7afc9f15b4c084c996ab0dbcd833b45f30d5 (diff) | |
download | master-187ad058-d883248ad0dc694a560b24241d98d6c834679148.tar.gz master-187ad058-d883248ad0dc694a560b24241d98d6c834679148.tar.bz2 master-187ad058-d883248ad0dc694a560b24241d98d6c834679148.zip |
brcm47xx: apply serial flash size trick to Netgear WNR1000 V3
It also uses different block size just like WGR614 V10.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46810 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx/patches-4.1/800-bcma-add-table-of-serial-flashes-with-smaller-blocks.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-4.1/800-bcma-add-table-of-serial-flashes-with-smaller-blocks.patch | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/brcm47xx/patches-4.1/800-bcma-add-table-of-serial-flashes-with-smaller-blocks.patch b/target/linux/brcm47xx/patches-4.1/800-bcma-add-table-of-serial-flashes-with-smaller-blocks.patch index 3396e7c299..99d909bc03 100644 --- a/target/linux/brcm47xx/patches-4.1/800-bcma-add-table-of-serial-flashes-with-smaller-blocks.patch +++ b/target/linux/brcm47xx/patches-4.1/800-bcma-add-table-of-serial-flashes-with-smaller-blocks.patch @@ -35,7 +35,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com> static const struct bcma_sflash_tbl_e bcma_sflash_sst_tbl[] = { { "SST25WF512", 1, 0x1000, 16, }, { "SST25VF512", 0x48, 0x1000, 16, }, -@@ -84,6 +92,23 @@ static void bcma_sflash_cmd(struct bcma_ +@@ -84,6 +92,24 @@ static void bcma_sflash_cmd(struct bcma_ bcma_err(cc->core->bus, "SFLASH control command failed (timeout)!\n"); } @@ -46,6 +46,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com> + + switch (board) { + case BCM47XX_BOARD_NETGEAR_WGR614_V10: ++ case BCM47XX_BOARD_NETGEAR_WNR1000_V3: + for (e = bcma_sflash_st_shrink_tbl; e->name; e++) { + if (e->id == id) + return e; @@ -59,7 +60,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com> /* Initialize serial flash access */ int bcma_sflash_init(struct bcma_drv_cc *cc) { -@@ -114,6 +139,10 @@ int bcma_sflash_init(struct bcma_drv_cc +@@ -114,6 +140,10 @@ int bcma_sflash_init(struct bcma_drv_cc case 0x13: return -ENOTSUPP; default: |