Ignore:
Timestamp:
2011-06-08T19:57:55+02:00 (6 years ago)
Author:
blogic
Message:

[lantiq]

  • fixes spi flash for ar9
  • adds limited support for netgear dgn3500 (enough for others to start working with)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/lantiq/patches-2.6.39/420-spi3.patch

    r27104 r27137  
    1919 #include <asm/bootinfo.h> 
    2020 #include <asm/irq.h> 
    21 @@ -119,3 +120,28 @@ ltq_register_etop(struct ltq_eth_data *e 
     21@@ -119,3 +120,41 @@ 
    2222                platform_device_register(&ltq_etop); 
    2323        } 
     
    3535+}; 
    3636+ 
     37+static struct resource ltq_spi_resources_ar9[] = { 
     38+       { 
     39+               .start  = LTQ_SSC_BASE_ADDR, 
     40+               .end    = LTQ_SSC_BASE_ADDR + LTQ_SSC_SIZE - 1, 
     41+               .flags  = IORESOURCE_MEM, 
     42+       }, 
     43+       IRQ_RES(spi_tx, LTQ_SSC_TIR_AR9), 
     44+       IRQ_RES(spi_rx, LTQ_SSC_RIR_AR9), 
     45+       IRQ_RES(spi_err, LTQ_SSC_EIR), 
     46+}; 
     47+ 
    3748+static struct platform_device ltq_spi = { 
    3849+       .name           = "ltq-spi", 
     
    4455+               struct spi_board_info const *info, unsigned n) 
    4556+{ 
     57+       if(ltq_is_ar9()) 
     58+               ltq_spi.resource = ltq_spi_resources_ar9; 
    4659+       spi_register_board_info(info, n); 
    4760+       ltq_spi.dev.platform_data = pdata; 
    4861+       platform_device_register(&ltq_spi); 
    4962+} 
     63--- a/arch/mips/include/asm/mach-lantiq/xway/lantiq_irq.h 
     64+++ b/arch/mips/include/asm/mach-lantiq/xway/lantiq_irq.h 
     65@@ -27,6 +27,8 @@ 
     66  
     67 #define LTQ_SSC_TIR            (INT_NUM_IM0_IRL0 + 15) 
     68 #define LTQ_SSC_RIR            (INT_NUM_IM0_IRL0 + 14) 
     69+#define LTQ_SSC_TIR_AR9                (INT_NUM_IM0_IRL0 + 14) 
     70+#define LTQ_SSC_RIR_AR9                (INT_NUM_IM0_IRL0 + 15) 
     71 #define LTQ_SSC_EIR            (INT_NUM_IM0_IRL0 + 16) 
     72  
     73 #define LTQ_MEI_DYING_GASP_INT (INT_NUM_IM1_IRL0 + 21) 
Note: See TracChangeset for help on using the changeset viewer.