Changeset 27137


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

[lantiq]

  • fixes spi flash for ar9
  • adds limited support for netgear dgn3500 (enough for others to start working with)
Location:
trunk/target/linux
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/atheros/config-2.6.37

    r26553 r27137  
    1 CONFIG_32BIT=y 
    2 # CONFIG_ALCHEMY_GPIO_INDIRECT is not set 
    31CONFIG_AR231X_ETHERNET=y 
    4 # CONFIG_AR7 is not set 
    52CONFIG_AR8216_PHY=y 
    63# CONFIG_ARCH_HAS_ILOG2_U32 is not set 
     
    96# CONFIG_ARCH_PHYS_ADDR_T_64BIT is not set 
    107CONFIG_ARCH_POPULATES_NODE_MAP=y 
     8CONFIG_ARCH_REQUIRE_GPIOLIB=y 
    119# CONFIG_ARCH_SUPPORTS_MSI is not set 
    1210CONFIG_ARCH_SUPPORTS_OPROFILE=y 
     
    1715CONFIG_ATHEROS_AR5312=y 
    1816CONFIG_ATHEROS_WDT=y 
    19 # CONFIG_BCM47XX is not set 
    20 # CONFIG_BCM63XX is not set 
    21 CONFIG_BITREVERSE=y 
     17# CONFIG_AUTO_IRQ_AFFINITY is not set 
    2218# CONFIG_BSD_PROCESS_ACCT is not set 
    23 CONFIG_CAVIUM_OCTEON_HELPER=y 
    24 # CONFIG_CAVIUM_OCTEON_REFERENCE_BOARD is not set 
    25 # CONFIG_CAVIUM_OCTEON_SIMULATOR is not set 
    2619CONFIG_CC_OPTIMIZE_FOR_SIZE=y 
    2720CONFIG_CEVT_R4K=y 
     
    4134CONFIG_CSRC_R4K_LIB=y 
    4235CONFIG_DECOMPRESS_LZMA=y 
    43 CONFIG_DEVPORT=y 
    44 # CONFIG_DM9000 is not set 
    4536CONFIG_DMA_NONCOHERENT=y 
    4637CONFIG_EARLY_PRINTK=y 
     
    5344CONFIG_GENERIC_FIND_NEXT_BIT=y 
    5445CONFIG_GENERIC_GPIO=y 
     46# CONFIG_GENERIC_HARDIRQS_NO_DEPRECATED is not set 
    5547CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y 
     48# CONFIG_GENERIC_PENDING_IRQ is not set 
     49CONFIG_GPIOLIB=y 
    5650CONFIG_GPIO_DEVICE=y 
     51CONFIG_GPIO_SYSFS=y 
    5752# CONFIG_HAMRADIO is not set 
    58 # CONFIG_HARDLOCKUP_DETECTOR is not set 
     53# CONFIG_HARDIRQS_SW_RESEND is not set 
    5954CONFIG_HARDWARE_WATCHPOINTS=y 
    6055CONFIG_HAS_DMA=y 
     
    6257CONFIG_HAS_IOPORT=y 
    6358CONFIG_HAVE_ARCH_KGDB=y 
     59CONFIG_HAVE_C_RECORDMCOUNT=y 
     60CONFIG_HAVE_DMA_API_DEBUG=y 
     61CONFIG_HAVE_DMA_ATTRS=y 
    6462CONFIG_HAVE_DYNAMIC_FTRACE=y 
    6563CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y 
     
    6866CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST=y 
    6967CONFIG_HAVE_GENERIC_DMA_COHERENT=y 
     68CONFIG_HAVE_GENERIC_HARDIRQS=y 
    7069CONFIG_HAVE_IDE=y 
    71 CONFIG_HAVE_KPROBES=y 
    72 CONFIG_HAVE_KRETPROBES=y 
    7370CONFIG_HAVE_OPROFILE=y 
     71CONFIG_HAVE_PERF_EVENTS=y 
     72# CONFIG_HAVE_SPARSE_IRQ is not set 
    7473CONFIG_HW_HAS_PCI=y 
    7574CONFIG_HW_RANDOM=y 
    76 CONFIG_IP17XX_PHY=y 
    7775CONFIG_IMAGE_CMDLINE_HACK=y 
    7876CONFIG_INITRAMFS_SOURCE="" 
     77CONFIG_IP17XX_PHY=y 
    7978CONFIG_IRQ_CPU=y 
     79# CONFIG_IRQ_PER_CPU is not set 
    8080# CONFIG_LEDS_GPIO is not set 
    81 # CONFIG_LOONGSON_MC146818 is not set 
    8281CONFIG_LOONGSON_UART_BASE=y 
    83 # CONFIG_MACH_DECSTATION is not set 
    84 # CONFIG_MACH_JAZZ is not set 
    85 # CONFIG_MACH_JZ4740 is not set 
    86 # CONFIG_MACH_LOONGSON is not set 
    87 # CONFIG_MACH_TX39XX is not set 
    88 # CONFIG_MACH_TX49XX is not set 
    89 # CONFIG_MACH_VR41XX is not set 
    90 # CONFIG_MIKROTIK_RB532 is not set 
     82CONFIG_MACH_NO_WESTBRIDGE=y 
    9183CONFIG_MIPS=y 
    92 # CONFIG_MIPS_ALCHEMY is not set 
    93 # CONFIG_MIPS_COBALT is not set 
    9484CONFIG_MIPS_L1_CACHE_SHIFT=5 
    9585# CONFIG_MIPS_MACHINE is not set 
    96 # CONFIG_MIPS_MALTA is not set 
    9786CONFIG_MIPS_MT_DISABLED=y 
    98 # CONFIG_MIPS_SIM is not set 
    9987CONFIG_MTD_AR2315=y 
    10088CONFIG_MTD_CFI_ADV_OPTIONS=y 
     
    10795CONFIG_MVSWITCH_PHY=y 
    10896CONFIG_NEED_DMA_MAP_STATE=y 
     97CONFIG_NEED_PER_CPU_KM=y 
    10998# CONFIG_NET_PCI is not set 
    110 # CONFIG_NO_IOPORT is not set 
    111 # CONFIG_NXP_STB220 is not set 
    112 # CONFIG_NXP_STB225 is not set 
    11399CONFIG_PAGEFLAGS_EXTENDED=y 
    114100CONFIG_PCI=y 
    115101CONFIG_PCI_DISABLE_COMMON_QUIRKS=y 
    116102CONFIG_PCI_DOMAINS=y 
     103CONFIG_PERF_USE_VMALLOC=y 
    117104CONFIG_PHYLIB=y 
    118 # CONFIG_PMC_MSP is not set 
    119 # CONFIG_PMC_YOSEMITE is not set 
    120 # CONFIG_PNX8550_JBS is not set 
    121 # CONFIG_PNX8550_STB810 is not set 
    122 # CONFIG_POWERTV is not set 
    123 CONFIG_SCHED_OMIT_FRAME_POINTER=y 
     105# CONFIG_PREEMPT_RCU is not set 
     106# CONFIG_QUOTACTL is not set 
    124107# CONFIG_SCSI_DMA is not set 
    125 CONFIG_SCSI_MOD=y 
    126 # CONFIG_SERIAL_8250_EXTENDED is not set 
    127108CONFIG_SERIAL_8250_NR_UARTS=1 
    128109CONFIG_SERIAL_8250_RUNTIME_UARTS=1 
    129 # CONFIG_SERIAL_MFD_HSU is not set 
    130 # CONFIG_SGI_IP22 is not set 
    131 # CONFIG_SGI_IP27 is not set 
    132 # CONFIG_SGI_IP28 is not set 
    133 # CONFIG_SGI_IP32 is not set 
    134 # CONFIG_SIBYTE_BIGSUR is not set 
    135 # CONFIG_SIBYTE_CARMEL is not set 
    136 # CONFIG_SIBYTE_CRHINE is not set 
    137 # CONFIG_SIBYTE_CRHONE is not set 
    138 # CONFIG_SIBYTE_LITTLESUR is not set 
    139 # CONFIG_SIBYTE_RHONE is not set 
    140 # CONFIG_SIBYTE_SENTOSA is not set 
    141 # CONFIG_SIBYTE_SWARM is not set 
    142110# CONFIG_SWAP is not set 
    143111CONFIG_SWCONFIG=y 
     
    147115CONFIG_SYS_SUPPORTS_ARBIT_HZ=y 
    148116CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y 
    149 CONFIG_TRAD_SIGNALS=y 
    150117CONFIG_USB_SUPPORT=y 
    151118CONFIG_ZONE_DMA_FLAG=0 
  • trunk/target/linux/lantiq/image/Makefile

    r27026 r27137  
    135135define Image/Build/Profile/ARV752DPW22 
    136136        $(call Image/Build/$(1),$(1),ARV752DPW22) 
     137endef 
     138 
     139define Image/BuildKernel/Profile/DGN3500B 
     140        $(call Image/BuildKernel/Template,DGN3500B,$(xway_cmdline)) 
     141endef 
     142 
     143define Image/Build/Profile/DGN3500B 
     144        $(call Image/Build/$(1),$(1),DGN3500B) 
    137145endef 
    138146 
     
    150158        $(call Image/BuildKernel/Template,ARV752DPW,$(xway_cmdline)) 
    151159        $(call Image/BuildKernel/Template,ARV752DPW22,$(xway_cmdline)) 
     160        $(call Image/BuildKernel/Template,DGN3500B,$(xway_cmdline)) 
    152161        $(call Image/BuildKernel/Template,NONE) 
    153162endef 
     
    166175        $(call Image/Build/$(1),$(1),ARV752DPW) 
    167176        $(call Image/Build/$(1),$(1),ARV752DPW22) 
     177        $(call Image/Build/$(1),$(1),DGN3500B) 
    168178        $(call Image/Build/$(1),$(1),NONE) 
    169179        $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1).rootfs 
  • trunk/target/linux/lantiq/patches-2.6.39/410-spi2.patch

    r27104 r27137  
    1111--- a/drivers/spi/Kconfig 
    1212+++ b/drivers/spi/Kconfig 
    13 @@ -193,6 +193,14 @@ config SPI_IMX 
     13@@ -193,6 +193,14 @@ 
    1414          This enables using the Freescale i.MX SPI controllers in master 
    1515          mode. 
     
    1717+config SPI_LANTIQ 
    1818+       tristate "Lantiq SoC SPI controller" 
    19 +       depends on SOC_LANTIQ_XWAY 
     19+       depends on SOC_TYPE_XWAY 
    2020+       select SPI_BITBANG 
    2121+       help 
     
    2828--- a/drivers/spi/Makefile 
    2929+++ b/drivers/spi/Makefile 
    30 @@ -26,6 +26,7 @@ obj-$(CONFIG_SPI_EP93XX)              += ep93xx_spi. 
     30@@ -26,6 +26,7 @@ 
    3131 obj-$(CONFIG_SPI_GPIO)                 += spi_gpio.o 
    3232 obj-$(CONFIG_SPI_GPIO_OLD)             += spi_gpio_old.o 
     
    3838--- /dev/null 
    3939+++ b/drivers/spi/spi_lantiq.c 
    40 @@ -0,0 +1,1063 @@ 
     40@@ -0,0 +1,1062 @@ 
    4141+/* 
    4242+ * Lantiq SoC SPI controller 
     
    6565+#include <linux/spi/spi_bitbang.h> 
    6666+ 
    67 +#include <xway.h> 
    68 +#include <xway_irq.h> 
     67+#include <lantiq_soc.h> 
    6968+#include <lantiq_platform.h> 
    7069+ 
  • 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) 
  • trunk/target/linux/lantiq/xway/config-default

    r27036 r27137  
    2727CONFIG_LANTIQ_MACH_ARV45XX=y 
    2828CONFIG_LANTIQ_MACH_EASY50712=y 
     29CONFIG_LANTIQ_MACH_NETGEAR=y 
    2930CONFIG_MACH_NO_WESTBRIDGE=y 
    3031# CONFIG_MINIX_FS_NATIVE_ENDIAN is not set 
    31 # CONFIG_MTD_LATCH_ADDR is not set 
    3232CONFIG_NEED_DMA_MAP_STATE=y 
    3333CONFIG_NEED_PER_CPU_KM=y 
     
    4545CONFIG_SPI_BITBANG=y 
    4646# CONFIG_SPI_GPIO is not set 
     47CONFIG_SPI_LANTIQ=y 
    4748CONFIG_SPI_MASTER=y 
    4849CONFIG_USB_SUPPORT=y 
Note: See TracChangeset for help on using the changeset viewer.