diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2013-07-19 12:02:34 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2013-07-19 12:02:34 +0000 |
commit | 4901c783fc6224e6af31e781c20178dec90bbec7 (patch) | |
tree | dd84f9010ad642019e77d611a7a1c406764edfb8 /target/linux/brcm47xx/patches-3.9/070-bcma-add-functions-to-write-to-serial-flash.patch | |
parent | 9ac080fd3a8f46c378dbf97069e43c4046a3f642 (diff) | |
download | upstream-4901c783fc6224e6af31e781c20178dec90bbec7.tar.gz upstream-4901c783fc6224e6af31e781c20178dec90bbec7.tar.bz2 upstream-4901c783fc6224e6af31e781c20178dec90bbec7.zip |
kernel: update bcma and ssb to version from wireless-testing/master tag master-2013-07-18
This should fix some build problems in b43 with kernel 3.3.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37432 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx/patches-3.9/070-bcma-add-functions-to-write-to-serial-flash.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.9/070-bcma-add-functions-to-write-to-serial-flash.patch | 37 |
1 files changed, 4 insertions, 33 deletions
diff --git a/target/linux/brcm47xx/patches-3.9/070-bcma-add-functions-to-write-to-serial-flash.patch b/target/linux/brcm47xx/patches-3.9/070-bcma-add-functions-to-write-to-serial-flash.patch index 3a06b52d35..9999848d74 100644 --- a/target/linux/brcm47xx/patches-3.9/070-bcma-add-functions-to-write-to-serial-flash.patch +++ b/target/linux/brcm47xx/patches-3.9/070-bcma-add-functions-to-write-to-serial-flash.patch @@ -31,34 +31,7 @@ .resource = &bcma_sflash_resource, .num_resources = 1, }; -@@ -30,7 +37,7 @@ struct bcma_sflash_tbl_e { - u16 numblocks; - }; - --static struct bcma_sflash_tbl_e bcma_sflash_st_tbl[] = { -+static const struct bcma_sflash_tbl_e bcma_sflash_st_tbl[] = { - { "M25P20", 0x11, 0x10000, 4, }, - { "M25P40", 0x12, 0x10000, 8, }, - -@@ -41,7 +48,7 @@ static struct bcma_sflash_tbl_e bcma_sfl - { 0 }, - }; - --static struct bcma_sflash_tbl_e bcma_sflash_sst_tbl[] = { -+static const struct bcma_sflash_tbl_e bcma_sflash_sst_tbl[] = { - { "SST25WF512", 1, 0x1000, 16, }, - { "SST25VF512", 0x48, 0x1000, 16, }, - { "SST25WF010", 2, 0x1000, 32, }, -@@ -59,7 +66,7 @@ static struct bcma_sflash_tbl_e bcma_sfl - { 0 }, - }; - --static struct bcma_sflash_tbl_e bcma_sflash_at_tbl[] = { -+static const struct bcma_sflash_tbl_e bcma_sflash_at_tbl[] = { - { "AT45DB011", 0xc, 256, 512, }, - { "AT45DB021", 0x14, 256, 1024, }, - { "AT45DB041", 0x1c, 256, 2048, }, -@@ -84,12 +91,186 @@ static void bcma_sflash_cmd(struct bcma_ +@@ -84,11 +91,185 @@ static void bcma_sflash_cmd(struct bcma_ bcma_err(cc->core->bus, "SFLASH control command failed (timeout)!\n"); } @@ -241,12 +214,10 @@ { struct bcma_bus *bus = cc->core->bus; - struct bcma_sflash *sflash = &cc->sflash; -- struct bcma_sflash_tbl_e *e; + struct bcm47xxsflash *sflash = &cc->sflash; -+ const struct bcma_sflash_tbl_e *e; + const struct bcma_sflash_tbl_e *e; u32 id, id2; - switch (cc->capabilities & BCMA_CC_CAP_FLASHT) { @@ -150,6 +331,11 @@ int bcma_sflash_init(struct bcma_drv_cc sflash->numblocks = e->numblocks; sflash->size = sflash->blocksize * sflash->numblocks; @@ -269,7 +240,7 @@ /** ChipCommon core registers. **/ #define BCMA_CC_ID 0x0000 -@@ -523,19 +524,6 @@ struct bcma_pflash { +@@ -578,19 +579,6 @@ struct bcma_pflash { u32 window_size; }; @@ -289,7 +260,7 @@ #ifdef CONFIG_BCMA_NFLASH struct mtd_info; -@@ -569,7 +557,7 @@ struct bcma_drv_cc { +@@ -624,7 +612,7 @@ struct bcma_drv_cc { #ifdef CONFIG_BCMA_DRIVER_MIPS struct bcma_pflash pflash; #ifdef CONFIG_BCMA_SFLASH |