Changeset 32925 for trunk


Ignore:
Timestamp:
2012-07-31T20:49:54+02:00 (4 years ago)
Author:
blogic
Message:

[lantiq] add lantiq svip support

Location:
trunk/target/linux/lantiq
Files:
15 added
1 deleted
8 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/lantiq/Makefile

    r32055 r32925  
    77include $(TOPDIR)/rules.mk 
    88 
    9 ARCH:=mips 
    109BOARD:=lantiq 
    11 BOARDNAME:=Lantiq GPON/XWAY 
     10BOARDNAME:=Lantiq GPON/XWAY/SVIP 
    1211FEATURES:=squashfs jffs2 
    1312DEFAULT_SUBTARGET:=danube 
  • trunk/target/linux/lantiq/ar9/config-default

    r31908 r32925  
    3636CONFIG_SOC_TYPE_XWAY=y 
    3737CONFIG_SOC_XWAY=y 
     38# CONFIG_SOC_SVIP is not set 
    3839CONFIG_USB_ARCH_HAS_XHCI=y 
    3940CONFIG_USB_SUPPORT=y 
  • trunk/target/linux/lantiq/ase/config-default

    r31672 r32925  
    1616CONFIG_SOC_TYPE_XWAY=y 
    1717# CONFIG_SOC_XWAY is not set 
     18# CONFIG_SOC_SVIP is not set 
    1819# CONFIG_USB_ARCH_HAS_EHCI is not set 
    1920# CONFIG_USB_ARCH_HAS_OHCI is not set 
  • trunk/target/linux/lantiq/danube/config-default

    r32794 r32925  
    3232# CONFIG_SOC_AMAZON_SE is not set 
    3333# CONFIG_SOC_FALCON is not set 
     34# CONFIG_SOC_SVIP is not set 
    3435CONFIG_SOC_TYPE_XWAY=y 
    3536CONFIG_SOC_XWAY=y 
  • trunk/target/linux/lantiq/falcon/config-default

    r31737 r32925  
    1515# CONFIG_SOC_TYPE_XWAY is not set 
    1616# CONFIG_SOC_XWAY is not set 
     17# CONFIG_SOC_SVIP is not set 
    1718CONFIG_SPI=y 
    1819CONFIG_SPI_FALCON=y 
  • trunk/target/linux/lantiq/image/Makefile

    r32065 r32925  
    1313xway_cmdline=-console=ttyLTQ1,115200 rootfstype=squashfs,jffs2 
    1414falcon_cmdline=-console=ttyLTQ0,115200 rootfstype=squashfs,jffs2 
     15svip_cmdline=-console=ttyLTQ0,115200 rootfstype=squashfs,jffs2 
    1516sx76x_cmdline=console=ttyLTQ1,115200 rootfstype=squashfs,jffs2 
    1617 
     
    4344endef 
    4445 
     46define CompressGzip 
     47  gzip -c $(1) > $(2) 
     48endef 
     49 
     50define PatchKernelGzip 
     51        cp $(KDIR)/vmlinux $(KDIR)/vmlinux-$(1) 
     52        $(STAGING_DIR_HOST)/bin/patch-cmdline $(KDIR)/vmlinux-$(1) '$(strip $(2))' 
     53        $(call CompressGzip,$(KDIR)/vmlinux-$(1),$(KDIR)/vmlinux-$(1).gzip) 
     54endef 
     55 
     56define MkImageGzip 
     57        mkimage -A mips -O linux -T kernel -a 0x80002000 -C gzip \ 
     58                -e 0x80002000 -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \ 
     59                -d $(KDIR)/vmlinux-$(1).gzip $(KDIR)/uImage-$(1) 
     60endef 
     61 
    4562define Image/Build/squashfs 
    4663        cat $(KDIR)/uImage-$(2) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image 
     
    7996        $(call MkImageEVA,$(1)) 
    8097        $(CP) $(KDIR)/$(1).eva $(BIN_DIR)/$(IMG_PREFIX)-$(1).eva 
     98endef 
     99 
     100define Image/BuildKernelGzip/Template 
     101        $(call PatchKernelGzip,$(1),$(if $(2),$(2) machtype=$(1),)) 
     102        $(call MkImageGzip,$(1)) 
     103        $(CP) $(KDIR)/uImage-$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-uImage 
    81104endef 
    82105 
     
    199222endif 
    200223 
     224ifeq ($(CONFIG_TARGET_lantiq_svip_be),y) 
     225define Image/BuildKernel/Profile/EASY33016 
     226        $(call Image/BuildKernelGzip/Template,EASY33016,$(svip_cmdline)) 
     227endef 
     228 
     229define Image/Build/Profile/EASY33016 
     230        $(call Image/Build/$(1),$(1),EASY33016) 
     231endef 
     232 
     233define Image/BuildKernel/Profile/EASY336 
     234        $(call Image/BuildKernelGzip/Template,EASY33016,$(svip_cmdline)) 
     235endef 
     236 
     237define Image/Build/Profile/EASY336 
     238        $(call Image/Build/$(1),$(1),EASY33016) 
     239endef 
     240 
     241define Image/BuildKernel/Profile/Generic 
     242        $(call Image/BuildKernelGzip/Template,EASY33016,$(svip_cmdline)) 
     243        $(call Image/BuildKernelGzip/Template,EASY336,$(svip_cmdline)) 
     244        $(call Image/BuildKernelGzip/Template,NONE) 
     245endef 
     246 
     247define Image/Build/Profile/Generic 
     248        $(call Image/Build/$(1),$(1),EASY33016) 
     249        $(call Image/Build/$(1),$(1),EASY336) 
     250        $(call Image/Build/$(1),$(1),NONE) 
     251        $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1).rootfs 
     252endef 
     253endif 
     254 
     255ifeq ($(CONFIG_TARGET_lantiq_svip_le),y) 
     256define Image/BuildKernel/Profile/EASY336 
     257        $(call Image/BuildKernelGzip/Template,EASY33016,$(svip_cmdline)) 
     258endef 
     259 
     260define Image/Build/Profile/EASY336 
     261        $(call Image/Build/$(1),$(1),EASY33016) 
     262endef 
     263 
     264define Image/BuildKernel/Profile/Generic 
     265        $(call Image/BuildKernelGzip/Template,EASY336,$(svip_cmdline)) 
     266        $(call Image/BuildKernelGzip/Template,NONE) 
     267endef 
     268 
     269define Image/Build/Profile/Generic 
     270        $(call Image/Build/$(1),$(1),EASY336) 
     271        $(call Image/Build/$(1),$(1),NONE) 
     272        $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1).rootfs 
     273endef 
     274endif 
     275 
    201276define Image/BuildKernel 
    202277        $(call Image/BuildKernel/Profile/$(PROFILE)) 
  • trunk/target/linux/lantiq/patches-3.3/0031-MIPS-lantiq-unify-xway-prom-code.patch

    r31336 r32925  
    1919 create mode 100644 arch/mips/lantiq/xway/prom.c 
    2020 
    21 --- a/arch/mips/lantiq/xway/Makefile 
    22 +++ b/arch/mips/lantiq/xway/Makefile 
     21Index: linux-3.3.8/arch/mips/lantiq/xway/Makefile 
     22=================================================================== 
     23--- linux-3.3.8.orig/arch/mips/lantiq/xway/Makefile     2012-07-31 08:34:35.000000000 +0200 
     24+++ linux-3.3.8/arch/mips/lantiq/xway/Makefile  2012-07-31 08:52:14.155414782 +0200 
    2325@@ -1,7 +1,4 @@ 
    2426-obj-y := sysctrl.o reset.o gpio.o gpio_stp.o gpio_ebu.o devices.o dma.o clk.o 
     
    3032 obj-$(CONFIG_LANTIQ_MACH_EASY50712) += mach-easy50712.o 
    3133 obj-$(CONFIG_LANTIQ_MACH_EASY50601) += mach-easy50601.o 
    32 --- a/arch/mips/lantiq/xway/Makefile.rej 
    33 +++ /dev/null 
    34 @@ -1,11 +0,0 @@ 
    35 ---- arch/mips/lantiq/xway/Makefile 
    36 -+++ arch/mips/lantiq/xway/Makefile 
    37 -@@ -1,7 +1,4 @@ 
    38 --obj-y := sysctrl.o reset.o gpio.o gpio_stp.o gpio_ebu.o devices.o dma.o clk.o 
    39 -- 
    40 --obj-$(CONFIG_SOC_XWAY) += prom-xway.o 
    41 --obj-$(CONFIG_SOC_AMAZON_SE) += prom-ase.o 
    42 -+obj-y := prom.o sysctrl.o reset.o gpio.o gpio_stp.o gpio_ebu.o devices.o dma.o clk.o 
    43 -  
    44 - obj-$(CONFIG_LANTIQ_MACH_EASY50712) += mach-easy50712.o 
    45 - obj-$(CONFIG_LANTIQ_MACH_EASY50601) += mach-easy50601.o 
    46 --- a/arch/mips/lantiq/xway/prom-ase.c 
    47 +++ /dev/null 
     34Index: linux-3.3.8/arch/mips/lantiq/xway/prom-ase.c 
     35=================================================================== 
     36--- linux-3.3.8.orig/arch/mips/lantiq/xway/prom-ase.c   2012-07-31 08:34:34.000000000 +0200 
     37+++ /dev/null   1970-01-01 00:00:00.000000000 +0000 
    4838@@ -1,48 +0,0 @@ 
    4939-/* 
     
    9585-       ltq_register_wdt(); 
    9686-} 
    97 --- a/arch/mips/lantiq/xway/prom-xway.c 
    98 +++ /dev/null 
     87Index: linux-3.3.8/arch/mips/lantiq/xway/prom-xway.c 
     88=================================================================== 
     89--- linux-3.3.8.orig/arch/mips/lantiq/xway/prom-xway.c  2012-07-31 08:34:34.000000000 +0200 
     90+++ /dev/null   1970-01-01 00:00:00.000000000 +0000 
    9991@@ -1,64 +0,0 @@ 
    10092-/* 
     
    162154-       ltq_register_wdt(); 
    163155-} 
    164 --- /dev/null 
    165 +++ b/arch/mips/lantiq/xway/prom.c 
     156Index: linux-3.3.8/arch/mips/lantiq/xway/prom.c 
     157=================================================================== 
     158--- /dev/null   1970-01-01 00:00:00.000000000 +0000 
     159+++ linux-3.3.8/arch/mips/lantiq/xway/prom.c    2012-07-31 08:52:14.155414782 +0200 
    166160@@ -0,0 +1,79 @@ 
    167161+/* 
  • trunk/target/linux/lantiq/svip_be/profiles/000-generic.mk

    r32924 r32925  
    11define Profile/Generic 
    22  NAME:=Generic - all boards 
     3  PACKAGES:= 
    34endef 
    45 
    56$(eval $(call Profile,Generic)) 
     7 
     8 
  • trunk/target/linux/lantiq/svip_le/profiles/000-generic.mk

    r32924 r32925  
    11define Profile/Generic 
    22  NAME:=Generic - all boards 
     3  PACKAGES:= 
    34endef 
    45 
    56$(eval $(call Profile,Generic)) 
     7 
     8 
  • trunk/target/linux/lantiq/vr9/config-default

    r32794 r32925  
    4646CONFIG_SOC_TYPE_XWAY=y 
    4747CONFIG_SOC_XWAY=y 
     48# CONFIG_SOC_SVIP is not set 
    4849CONFIG_SPI=y 
    4950CONFIG_SPI_BITBANG=y 
Note: See TracChangeset for help on using the changeset viewer.