Changeset 36524


Ignore:
Timestamp:
2013-05-02T17:28:10+02:00 (5 years ago)
Author:
jogo
Message:

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@…>

Location:
trunk/target/linux/brcm63xx/patches-3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm63xx/patches-3.8/409-MIPS-BCM63XX-add-HS-SPI-platform-device-and-register.patch

    r36407 r36524  
    7878+ 
    7979+static struct bcm63xx_hsspi_pdata spi_pdata = { 
    80 +       .bus_num        = 0, 
     80+       .bus_num        = 1, 
    8181+}; 
    8282+ 
  • trunk/target/linux/brcm63xx/patches-3.8/411-MIPS-BCM63XX-Register-SPI-flash-if-present.patch

    r36407 r36524  
    6969                case STRAPBUS_6368_BOOT_SEL_NAND: 
    7070                        return BCM63XX_FLASH_TYPE_NAND; 
    71 @@ -116,8 +142,11 @@ int __init bcm63xx_flash_register(void) 
     71@@ -116,8 +142,13 @@ int __init bcm63xx_flash_register(void) 
    7272  
    7373                return platform_device_register(&mtd_dev); 
     
    7575-               pr_warn("unsupported serial flash detected\n"); 
    7676-               return -ENODEV; 
    77 +               if (BCMCPU_IS_6328()) 
     77+               if (BCMCPU_IS_6328() || BCMCPU_IS_6362()) { 
     78+                       bcm63xx_spi_flash_info[0].bus_num = 1; 
    7879+                       bcm63xx_flash_data.max_transfer_len = HSSPI_BUFFER_LEN; 
     80+               } 
    7981+ 
    8082+               return spi_register_board_info(bcm63xx_spi_flash_info, 
Note: See TracChangeset for help on using the changeset viewer.