Changeset 31879


Ignore:
Timestamp:
2012-05-27T15:22:33+02:00 (6 years ago)
Author:
jogo
Message:

bcm63xx: add support for the HSSPI controller

Add support for the HSSPI controller found on bcm6328 and SPI attached
flash.

Location:
trunk/target/linux/brcm63xx
Files:
7 added
26 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm63xx/config-3.3

    r31878 r31879  
    127127CONFIG_SPI=y 
    128128# CONFIG_SPI_BCM63XX is not set 
     129# CONFIG_SPI_BCM63XX_HSSPI is not set 
    129130CONFIG_SPI_BITBANG=y 
    130131CONFIG_SPI_GPIO=y 
  • trunk/target/linux/brcm63xx/patches-3.3/500-board-D4PW.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -130,6 +130,55 @@ static struct board_info __initdata boar 
     3@@ -131,6 +131,55 @@ static struct board_info __initdata boar 
    44                }, 
    55        }, 
     
    5757  
    5858 /* 
    59 @@ -638,6 +687,7 @@ static const struct board_info __initdat 
     59@@ -639,6 +688,7 @@ static const struct board_info __initdat 
    6060        &board_DV201AMR, 
    6161        &board_96348gw_a, 
  • trunk/target/linux/brcm63xx/patches-3.3/501-board-NB4.patch

    r31878 r31879  
    1111 #include <bcm63xx_board.h> 
    1212 #include <bcm63xx_cpu.h> 
    13 @@ -39,6 +42,12 @@ 
     13@@ -40,6 +43,12 @@ 
    1414 #define CFE_OFFSET_64K         0x10000 
    1515 #define CFE_OFFSET_128K                0x20000 
     
    2424 static unsigned int mac_addr_used; 
    2525 static struct board_info board; 
    26 @@ -665,6 +674,496 @@ static struct board_info __initdata boar 
     26@@ -666,6 +675,496 @@ static struct board_info __initdata boar 
    2727  
    2828        .has_ohci0                      = 1, 
     
    521521  
    522522 /* 
    523 @@ -695,9 +1194,30 @@ static const struct board_info __initdat 
     523@@ -696,9 +1195,30 @@ static const struct board_info __initdat 
    524524        &board_96358vw2, 
    525525        &board_AGPFS0, 
     
    552552  * Register a sane SPROMv2 to make the on-board 
    553553  * bcm4318 WLAN work 
    554 @@ -853,6 +1373,9 @@ void __init board_prom_init(void) 
     554@@ -854,6 +1374,9 @@ void __init board_prom_init(void) 
    555555                boardid_fixup(boot_addr); 
    556556        } 
  • trunk/target/linux/brcm63xx/patches-3.3/502-board-96338W2_E7T.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -200,6 +200,38 @@ static struct board_info __initdata boar 
     3@@ -201,6 +201,38 @@ static struct board_info __initdata boar 
    44  
    55        .has_uart0                      = 1, 
     
    4040  
    4141 /* 
    42 @@ -1173,6 +1205,7 @@ static const struct board_info __initdat 
     42@@ -1174,6 +1206,7 @@ static const struct board_info __initdat 
    4343 #ifdef CONFIG_BCM63XX_CPU_6338 
    4444        &board_96338gw, 
  • trunk/target/linux/brcm63xx/patches-3.3/503-board-CPVA642.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -663,6 +663,98 @@ static struct board_info __initdata boar 
     3@@ -664,6 +664,98 @@ static struct board_info __initdata boar 
    44        }, 
    55 }; 
     
    100100        .name                           = "AGPF-S0", 
    101101        .expected_cpu_id                = 0x6358, 
    102 @@ -1226,6 +1318,7 @@ static const struct board_info __initdat 
     102@@ -1227,6 +1319,7 @@ static const struct board_info __initdat 
    103103        &board_96358vw, 
    104104        &board_96358vw2, 
  • trunk/target/linux/brcm63xx/patches-3.3/504-board_dsl_274xb_rev_c.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -799,6 +799,59 @@ static struct board_info __initdata boar 
     3@@ -800,6 +800,59 @@ static struct board_info __initdata boar 
    44        .has_ohci0                      = 1, 
    55 }; 
     
    6161        .sck            = NB4_SPI_GPIO_CLK, 
    6262        .mosi           = NB4_SPI_GPIO_MOSI, 
    63 @@ -1320,6 +1373,7 @@ static const struct board_info __initdat 
     63@@ -1321,6 +1374,7 @@ static const struct board_info __initdat 
    6464        &board_AGPFS0, 
    6565        &board_CPVA642, 
  • trunk/target/linux/brcm63xx/patches-3.3/505-board_spw500v.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -188,6 +188,67 @@ static struct board_info __initdata boar 
     3@@ -189,6 +189,67 @@ static struct board_info __initdata boar 
    44        }, 
    55 }; 
     
    6969  
    7070 /* 
    71 @@ -1365,6 +1426,7 @@ static const struct board_info __initdat 
     71@@ -1366,6 +1427,7 @@ static const struct board_info __initdat 
    7272        &board_96348gw_a, 
    7373        &board_rta1025w_16, 
  • trunk/target/linux/brcm63xx/patches-3.3/506-board_gw6200_gw6000.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -535,6 +535,112 @@ static struct board_info __initdata boar 
     3@@ -536,6 +536,112 @@ static struct board_info __initdata boar 
    44        }, 
    55 }; 
     
    114114        .name                           = "F@ST2404", 
    115115        .expected_cpu_id                = 0x6348, 
    116 @@ -1419,6 +1525,8 @@ static const struct board_info __initdat 
     116@@ -1420,6 +1526,8 @@ static const struct board_info __initdat 
    117117 #ifdef CONFIG_BCM63XX_CPU_6348 
    118118        &board_96348r, 
  • trunk/target/linux/brcm63xx/patches-3.3/507-board-MAGIC.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -249,6 +249,76 @@ static struct board_info __initdata boar 
     3@@ -250,6 +250,76 @@ static struct board_info __initdata boar 
    44        }, 
    55 }; 
     
    7878  
    7979 /* 
    80 @@ -1535,6 +1605,7 @@ static const struct board_info __initdat 
     80@@ -1536,6 +1606,7 @@ static const struct board_info __initdat 
    8181        &board_rta1025w_16, 
    8282        &board_96348_D4PW, 
  • trunk/target/linux/brcm63xx/patches-3.3/508-board_hw553.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -1578,6 +1578,81 @@ static struct board_info __initdata boar 
     3@@ -1579,6 +1579,81 @@ static struct board_info __initdata boar 
    44        .spis = nb4_spi_devices, 
    55        .num_spis = ARRAY_SIZE(nb4_spi_devices), 
     
    8383  
    8484 /* 
    85 @@ -1620,6 +1695,7 @@ static const struct board_info __initdat 
     85@@ -1621,6 +1696,7 @@ static const struct board_info __initdat 
    8686        &board_nb4_ser_r2, 
    8787        &board_nb4_fxc_r1, 
  • trunk/target/linux/brcm63xx/patches-3.3/509-board_rta1320_16m.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -363,6 +363,43 @@ static struct board_info __initdata boar 
     3@@ -364,6 +364,43 @@ static struct board_info __initdata boar 
    44                }, 
    55        }, 
     
    4545  
    4646 /* 
    47 @@ -1663,6 +1700,7 @@ static const struct board_info __initdat 
     47@@ -1664,6 +1701,7 @@ static const struct board_info __initdat 
    4848        &board_96338gw, 
    4949        &board_96338w, 
  • trunk/target/linux/brcm63xx/patches-3.3/510-board_spw303v.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -1690,6 +1690,72 @@ static struct board_info __initdata boar 
     3@@ -1691,6 +1691,72 @@ static struct board_info __initdata boar 
    44                }, 
    55        }, 
     
    7474  
    7575 /* 
    76 @@ -1734,6 +1800,7 @@ static const struct board_info __initdat 
     76@@ -1735,6 +1801,7 @@ static const struct board_info __initdat 
    7777        &board_nb4_fxc_r1, 
    7878        &board_nb4_fxc_r2, 
  • trunk/target/linux/brcm63xx/patches-3.3/511-board_V2500V.patch

    r31878 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -319,6 +319,63 @@ static struct board_info __initdata boar 
     3@@ -320,6 +320,63 @@ static struct board_info __initdata boar 
    44        }, 
    55 }; 
     
    6565  
    6666 /* 
    67 @@ -1785,6 +1842,7 @@ static const struct board_info __initdat 
     67@@ -1786,6 +1843,7 @@ static const struct board_info __initdat 
    6868        &board_96348_D4PW, 
    6969        &board_spw500v, 
     
    7373  
    7474 #ifdef CONFIG_BCM63XX_CPU_6358 
    75 @@ -1943,6 +2001,22 @@ void __init board_prom_init(void) 
     75@@ -1944,6 +2002,22 @@ void __init board_prom_init(void) 
    7676                val &= MPI_CSBASE_BASE_MASK; 
    7777        } 
     
    9898--- a/arch/mips/bcm63xx/dev-flash.c 
    9999+++ b/arch/mips/bcm63xx/dev-flash.c 
    100 @@ -16,6 +16,7 @@ 
    101  #include <linux/mtd/partitions.h> 
    102  #include <linux/mtd/physmap.h> 
     100@@ -18,6 +18,7 @@ 
     101 #include <linux/spi/spi.h> 
     102 #include <linux/spi/flash.h> 
    103103  
    104104+#include <bcm63xx_board.h> 
    105105 #include <bcm63xx_cpu.h> 
    106106 #include <bcm63xx_dev_flash.h> 
    107  #include <bcm63xx_regs.h> 
    108 @@ -104,6 +105,13 @@ int __init bcm63xx_flash_register(void) 
     107 #include <bcm63xx_dev_hsspi.h> 
     108@@ -126,6 +127,13 @@ int __init bcm63xx_flash_register(void) 
    109109                val = bcm_mpi_readl(MPI_CSBASE_REG(0)); 
    110110                val &= MPI_CSBASE_BASE_MASK; 
  • trunk/target/linux/brcm63xx/patches-3.3/512-board_BTV2110.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -631,6 +631,62 @@ static struct board_info __initdata boar 
     3@@ -632,6 +632,62 @@ static struct board_info __initdata boar 
    44        }, 
    55 }; 
     
    6464        .name                           = "96348GW", 
    6565        .expected_cpu_id                = 0x6348, 
    66 @@ -1843,6 +1899,7 @@ static const struct board_info __initdat 
     66@@ -1844,6 +1900,7 @@ static const struct board_info __initdat 
    6767        &board_spw500v, 
    6868        &board_96348sv, 
  • trunk/target/linux/brcm63xx/patches-3.3/514-board_ct536_ct5621.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -687,6 +687,49 @@ static struct board_info __initdata boar 
     3@@ -688,6 +688,49 @@ static struct board_info __initdata boar 
    44 }; 
    55  
     
    5151        .name                           = "96348GW", 
    5252        .expected_cpu_id                = 0x6348, 
    53 @@ -1900,6 +1943,7 @@ static const struct board_info __initdat 
     53@@ -1901,6 +1944,7 @@ static const struct board_info __initdat 
    5454        &board_96348sv, 
    5555        &board_V2500V_BB, 
  • trunk/target/linux/brcm63xx/patches-3.3/515-board_DWV-S0_fixes.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -1212,6 +1212,8 @@ static struct board_info __initdata boar 
     3@@ -1213,6 +1213,8 @@ static struct board_info __initdata boar 
    44        .name                           = "DWV-S0", 
    55        .expected_cpu_id                = 0x6358, 
     
    1010        .has_enet1                      = 1, 
    1111        .has_pci                        = 1, 
    12 @@ -1227,6 +1229,7 @@ static struct board_info __initdata boar 
     12@@ -1228,6 +1230,7 @@ static struct board_info __initdata boar 
    1313        }, 
    1414  
  • trunk/target/linux/brcm63xx/patches-3.3/516-board_96348A-122.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -376,6 +376,67 @@ static struct board_info __initdata boar 
     3@@ -377,6 +377,67 @@ static struct board_info __initdata boar 
    44        }, 
    55 }; 
     
    6969  
    7070 /* 
    71 @@ -1947,6 +2008,7 @@ static const struct board_info __initdat 
     71@@ -1948,6 +2009,7 @@ static const struct board_info __initdat 
    7272        &board_V2500V_BB, 
    7373        &board_V2110, 
  • trunk/target/linux/brcm63xx/patches-3.3/517-RTA1205W_16_uart_fixes.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -993,6 +993,7 @@ static struct board_info __initdata boar 
     3@@ -994,6 +994,7 @@ static struct board_info __initdata boar 
    44        .name                           = "RTA1025W_16", 
    55        .expected_cpu_id                = 0x6348, 
  • trunk/target/linux/brcm63xx/patches-3.3/519_board_CPVA502plus.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -437,6 +437,42 @@ static struct board_info __initdata boar 
     3@@ -438,6 +438,42 @@ static struct board_info __initdata boar 
    44        }, 
    55 }; 
     
    4444  
    4545 /* 
    46 @@ -2010,6 +2046,7 @@ static const struct board_info __initdat 
     46@@ -2011,6 +2047,7 @@ static const struct board_info __initdat 
    4747        &board_V2110, 
    4848        &board_ct536_ct5621, 
  • trunk/target/linux/brcm63xx/patches-3.3/520-bcm63xx-add-support-for-96368MVWG-board.patch

    r31878 r31879  
    1111--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    1212+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    13 @@ -2016,6 +2016,80 @@ static struct board_info __initdata boar 
     13@@ -2017,6 +2017,80 @@ static struct board_info __initdata boar 
    1414 #endif 
    1515  
     
    9292  */ 
    9393 static const struct board_info __initdata *bcm963xx_boards[] = { 
    94 @@ -2064,6 +2138,10 @@ static const struct board_info __initdat 
     94@@ -2065,6 +2139,10 @@ static const struct board_info __initdat 
    9595        &board_HW553, 
    9696        &board_spw303v, 
     
    103103  
    104104 static void __init nb4_nvram_fixup(void) 
    105 @@ -2285,12 +2363,25 @@ void __init board_prom_init(void) 
     105@@ -2286,12 +2364,25 @@ void __init board_prom_init(void) 
    106106        if (board.has_pci) { 
    107107                if (BCMCPU_IS_6348()) 
  • trunk/target/linux/brcm63xx/patches-3.3/521-bcm63xx-add-support-for-96368MVNgr-board.patch

    r31877 r31879  
    1010--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    1111+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    12 @@ -2087,6 +2087,72 @@ static struct board_info __initdata boar 
     12@@ -2088,6 +2088,72 @@ static struct board_info __initdata boar 
    1313        .has_ohci0 = 1, 
    1414        .has_ehci0 = 1, 
     
    8383  
    8484 /* 
    85 @@ -2141,6 +2207,7 @@ static const struct board_info __initdat 
     85@@ -2142,6 +2208,7 @@ static const struct board_info __initdat 
    8686  
    8787 #ifdef CONFIG_BCM63XX_CPU_6368 
  • trunk/target/linux/brcm63xx/patches-3.3/550-alice_gate2_leds.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -1304,6 +1304,99 @@ static struct board_info __initdata boar 
     3@@ -1305,6 +1305,99 @@ static struct board_info __initdata boar 
    44  
    55        .has_ohci0 = 1, 
  • trunk/target/linux/brcm63xx/patches-3.3/551-96348gw_a_leds.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -1084,6 +1084,19 @@ static struct board_info __initdata boar 
     3@@ -1085,6 +1085,19 @@ static struct board_info __initdata boar 
    44        }, 
    55  
  • trunk/target/linux/brcm63xx/patches-3.3/552-board_96348gw-10_reset_button.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -662,6 +662,17 @@ static struct board_info __initdata boar 
     3@@ -663,6 +663,17 @@ static struct board_info __initdata boar 
    44                        .active_low     = 1, 
    55                }, 
  • trunk/target/linux/brcm63xx/patches-3.3/800-wl_exports.patch

    r31878 r31879  
    99 #include <linux/spi/spi_gpio.h> 
    1010 #include <linux/spi/74x164.h> 
    11 @@ -53,6 +54,13 @@ static unsigned int mac_addr_used; 
     11@@ -54,6 +55,13 @@ static unsigned int mac_addr_used; 
    1212 static struct board_info board; 
    1313  
     
    2323  */ 
    2424 #ifdef CONFIG_BCM63XX_CPU_6338 
    25 @@ -2495,6 +2503,7 @@ void __init board_prom_init(void) 
     25@@ -2496,6 +2504,7 @@ void __init board_prom_init(void) 
    2626  
    2727        /* extract nvram data */ 
  • trunk/target/linux/brcm63xx/patches-3.3/801-ssb_export_fallback_sprom.patch

    r31877 r31879  
    11--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    22+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c 
    3 @@ -2357,7 +2357,7 @@ static void __init nb4_nvram_fixup(void) 
     3@@ -2358,7 +2358,7 @@ static void __init nb4_nvram_fixup(void) 
    44  * bcm4318 WLAN work 
    55  */ 
     
    1010        .board_rev              = 0x17, 
    1111        .country_code           = 0x0, 
    12 @@ -2377,6 +2377,7 @@ static struct ssb_sprom bcm63xx_sprom = 
     12@@ -2378,6 +2378,7 @@ static struct ssb_sprom bcm63xx_sprom = 
    1313        .boardflags_lo          = 0x2848, 
    1414        .boardflags_hi          = 0x0000, 
Note: See TracChangeset for help on using the changeset viewer.