aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2013-05-02 15:28:10 +0000
committerJonas Gorski <jogo@openwrt.org>2013-05-02 15:28:10 +0000
commit67fe3b7ad49e7a5bf805a1d742c6e14e78882786 (patch)
treecb50e644f04fff2eb97386be166525770ebba9dc /target/linux/brcm63xx
parentadf42498942366a52ee03a85b0a85830a0a7e75b (diff)
downloadupstream-67fe3b7ad49e7a5bf805a1d742c6e14e78882786.tar.gz
upstream-67fe3b7ad49e7a5bf805a1d742c6e14e78882786.tar.bz2
upstream-67fe3b7ad49e7a5bf805a1d742c6e14e78882786.zip
bcm63xx: fix hsspi flash registration for BCM6362
Use busnum 1 for HSSPI so it won't conflict on chips having both SPI controllers. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36524 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx')
-rw-r--r--target/linux/brcm63xx/patches-3.8/409-MIPS-BCM63XX-add-HS-SPI-platform-device-and-register.patch2
-rw-r--r--target/linux/brcm63xx/patches-3.8/411-MIPS-BCM63XX-Register-SPI-flash-if-present.patch6
2 files changed, 5 insertions, 3 deletions
diff --git a/target/linux/brcm63xx/patches-3.8/409-MIPS-BCM63XX-add-HS-SPI-platform-device-and-register.patch b/target/linux/brcm63xx/patches-3.8/409-MIPS-BCM63XX-add-HS-SPI-platform-device-and-register.patch
index d659d7af73..48774a3b05 100644
--- a/target/linux/brcm63xx/patches-3.8/409-MIPS-BCM63XX-add-HS-SPI-platform-device-and-register.patch
+++ b/target/linux/brcm63xx/patches-3.8/409-MIPS-BCM63XX-add-HS-SPI-platform-device-and-register.patch
@@ -77,7 +77,7 @@ Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
+};
+
+static struct bcm63xx_hsspi_pdata spi_pdata = {
-+ .bus_num = 0,
++ .bus_num = 1,
+};
+
+static struct platform_device bcm63xx_hsspi_device = {
diff --git a/target/linux/brcm63xx/patches-3.8/411-MIPS-BCM63XX-Register-SPI-flash-if-present.patch b/target/linux/brcm63xx/patches-3.8/411-MIPS-BCM63XX-Register-SPI-flash-if-present.patch
index b06213403d..c82c409435 100644
--- a/target/linux/brcm63xx/patches-3.8/411-MIPS-BCM63XX-Register-SPI-flash-if-present.patch
+++ b/target/linux/brcm63xx/patches-3.8/411-MIPS-BCM63XX-Register-SPI-flash-if-present.patch
@@ -68,14 +68,16 @@ Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
switch (val & STRAPBUS_6368_BOOT_SEL_MASK) {
case STRAPBUS_6368_BOOT_SEL_NAND:
return BCM63XX_FLASH_TYPE_NAND;
-@@ -116,8 +142,11 @@ int __init bcm63xx_flash_register(void)
+@@ -116,8 +142,13 @@ int __init bcm63xx_flash_register(void)
return platform_device_register(&mtd_dev);
case BCM63XX_FLASH_TYPE_SERIAL:
- pr_warn("unsupported serial flash detected\n");
- return -ENODEV;
-+ if (BCMCPU_IS_6328())
++ if (BCMCPU_IS_6328() || BCMCPU_IS_6362()) {
++ bcm63xx_spi_flash_info[0].bus_num = 1;
+ bcm63xx_flash_data.max_transfer_len = HSSPI_BUFFER_LEN;
++ }
+
+ return spi_register_board_info(bcm63xx_spi_flash_info,
+ ARRAY_SIZE(bcm63xx_spi_flash_info));