Changeset 34096


Ignore:
Timestamp:
2012-11-06T08:38:18+01:00 (5 years ago)
Author:
blogic
Message:

[lantiq] prepare dsl driver for 3.6 and split fw into a seperate package

Location:
trunk/package/system
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/system/ltq-dsl/Makefile

    r33830 r34096  
    1010 
    1111PKG_NAME:=ltq-dsl 
    12 PKG_BASE_NAME:=drv_dsl_cpe_api_danube 
    1312PKG_VERSION:=3.24.4.4 
    14 PKG_RELEASE:=3 
    15 PKG_SOURCE:=$(PKG_BASE_NAME)-$(PKG_VERSION).tar.gz 
    16 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/drv_dsl_cpe_api-$(PKG_VERSION) 
     13PKG_RELEASE:=4 
     14PKG_SOURCE:=drv_dsl_cpe_api_danube-$(PKG_VERSION).tar.gz 
     15PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/ltq-dsl-$(BUILD_VARIANT)/drv_dsl_cpe_api-$(PKG_VERSION) 
    1716PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/ 
    1817PKG_MD5SUM:=c45bc531c1ed2ac80f68fb986b63bb87 
    1918PKG_MAINTAINER:=John Crispin <blogic@openwrt.org> 
    2019 
    21 FW_NAME:=ltq-dsl-fw-0.1 
    22 FW_MD5:=4700a36b66b955b4c5544227267356f4 
    23  
    2420include $(INCLUDE_DIR)/package.mk 
    25  
    26 define Download/ltq-dsl-fw 
    27         FILE:=$(FW_NAME).tar.bz2 
    28         MD5SUM:=$(FW_MD5) 
    29         URL:=http://mirror2.openwrt.org/sources/ 
    30 endef 
    31 $(eval $(call Download,ltq-dsl-fw)) 
    3221 
    3322define KernelPackage/ltq-dsl-template 
     
    3827  URL:=http://www.lantiq.com/ 
    3928  VARIANT:=$(1) 
    40   DEPENDS:=@TARGET_lantiq_$(1) +kmod-atm 
     29  DEPENDS:=@(TARGET_lantiq_$(1)||TARGET_lantiq_$(2)) +kmod-atm 
    4130  FILES:=$(PKG_BUILD_DIR)/src/mei/lantiq_mei.ko \ 
    4231        $(PKG_BUILD_DIR)/src/drv_dsl_cpe_api.ko \ 
     
    4534endef 
    4635 
    47 KernelPackage/ltq-dsl-danube=$(call KernelPackage/ltq-dsl-template,danube) 
    48 KernelPackage/ltq-dsl-ase=$(call KernelPackage/ltq-dsl-template,ase) 
    49 KernelPackage/ltq-dsl-ar9=$(call KernelPackage/ltq-dsl-template,ar9) 
    50 KernelPackage/ltq-dsl-vr9=$(call KernelPackage/ltq-dsl-template,vr9) 
    51  
    52 define Package/kmod-ltq-dsl-firmware-template 
    53   TITLE+=Firmware Annex-$(1) $(2) 
    54   SECTION:=sys 
    55   CATEGORY:=Kernel modules 
    56   SUBMENU:=Network Devices 
    57   VARIANT:= $(1)-$(2) 
    58   URL:=http://www.lantiq.com/ 
    59   DEPENDS:=@TARGET_lantiq_$(2) kmod-ltq-dsl-$(2) 
    60 endef 
    61  
    62 Package/kmod-ltq-dsl-firmware-a-danube=$(call Package/kmod-ltq-dsl-firmware-template,a,danube) 
    63 Package/kmod-ltq-dsl-firmware-b-danube=$(call Package/kmod-ltq-dsl-firmware-template,b,danube) 
    64 Package/kmod-ltq-dsl-firmware-a-ase=$(call Package/kmod-ltq-dsl-firmware-template,a,ase) 
    65 Package/kmod-ltq-dsl-firmware-b-ase=$(call Package/kmod-ltq-dsl-firmware-template,b,ase) 
    66 Package/kmod-ltq-dsl-firmware-a-ar9=$(call Package/kmod-ltq-dsl-firmware-template,a,ar9) 
    67 Package/kmod-ltq-dsl-firmware-b-ar9=$(call Package/kmod-ltq-dsl-firmware-template,b,ar9) 
    68 Package/kmod-ltq-dsl-firmware-a-vr9=$(call Package/kmod-ltq-dsl-firmware-template,a,vr9) 
    69 Package/kmod-ltq-dsl-firmware-b-vr9=$(call Package/kmod-ltq-dsl-firmware-template,b,vr9) 
    70  
    71 define KernelPackage/ltq-dsl/description 
    72         Lantiq DSL driver for AR9, Amazon SE, Danube and VR9 
    73 endef 
     36KernelPackage/ltq-dsl-danube=$(call KernelPackage/ltq-dsl-template,danube,xway) 
     37KernelPackage/ltq-dsl-ar9=$(call KernelPackage/ltq-dsl-template,ar9,xway) 
     38KernelPackage/ltq-dsl-ase=$(call KernelPackage/ltq-dsl-template,ase,ase) 
    7439 
    7540define KernelPackage/ltq-dsl/config 
     
    10671CONFIG_TAG_ase:=AMAZON_SE 
    10772CONFIG_TAG_ar9:=AR9 
    108 CONFIG_TAG_vr9:=VR9 
    10973CONFIGURE_ARGS += --enable-add-drv-cflags="-DMODULE -DCONFIG_$(CONFIG_TAG_$(BUILD_VARIANT))" 
    11074 
    111 ifeq ($(BUILD_VARIANT),vr9) 
    112 CONFIGURE_ARGS += --enable-vinax 
    113 else 
    11475CONFIGURE_ARGS += --enable-danube 
    115 endif 
    11676 
    11777ifeq ($(CONFIG_LANTIQ_DSL_DEBUG),y) 
     
    12686define Build/Prepare 
    12787        $(PKG_UNPACK) 
     88        $(Build/Patch) 
    12889        $(INSTALL_DIR) $(PKG_BUILD_DIR)/src/mei/  
    12990        $(CP) ./src/* $(PKG_BUILD_DIR)/src/mei/ 
    130         $(Build/Patch) 
    131         $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(FW_NAME).tar.bz2 
    13291endef 
    13392 
     
    158117endef 
    159118 
    160 define Package/kmod-ltq-dsl-firmware-$(BUILD_VARIANT)/install 
    161         $(INSTALL_DIR) $(1)/lib/firmware/ 
    162         $(CP) $(PKG_BUILD_DIR)/$(FW_NAME)/ltq-dsl-fw-$(BUILD_VARIANT).bin $(1)/lib/firmware/dsl-fw-$(word 1, $(subst -, ,$(BUILD_VARIANT))).bin 
    163         ln -s /lib/firmware/dsl-fw-$(word 1, $(subst -, ,$(BUILD_VARIANT))).bin $(1)/lib/firmware/ModemHWE.bin 
    164 endef 
    165  
    166 $(eval $(call BuildPackage,kmod-ltq-dsl-firmware-a-danube)) 
    167 $(eval $(call BuildPackage,kmod-ltq-dsl-firmware-b-danube)) 
    168 $(eval $(call BuildPackage,kmod-ltq-dsl-firmware-a-ase)) 
    169 $(eval $(call BuildPackage,kmod-ltq-dsl-firmware-b-ase)) 
    170 $(eval $(call BuildPackage,kmod-ltq-dsl-firmware-a-ar9)) 
    171 $(eval $(call BuildPackage,kmod-ltq-dsl-firmware-b-ar9)) 
    172 #$(eval $(call BuildPackage,kmod-ltq-dsl-firmware-a-vr9)) 
    173 #$(eval $(call BuildPackage,kmod-ltq-dsl-firmware-b-vr9)) 
    174119$(eval $(call KernelPackage,ltq-dsl-danube)) 
    175120$(eval $(call KernelPackage,ltq-dsl-ase)) 
    176121$(eval $(call KernelPackage,ltq-dsl-ar9)) 
    177 #$(eval $(call KernelPackage,ltq-dsl-vr9)) 
  • trunk/package/system/ltq-dsl/src/Makefile

    r33830 r34096  
    22lantiq_atm-objs := ifxmips_atm_core.o 
    33 
     4CFLAGS_MODULE+=-DSOC_TYPE_XWAY 
     5EXTRA_CFLAGS+=-DSOC_TYPE_XWAY 
    46ifeq ($(BUILD_VARIANT),danube) 
    57  CFLAGS_MODULE+=-DCONFIG_DANUBE 
  • trunk/package/system/ltq-dsl/src/ifxmips_atm_ppe_danube.h

    r33830 r34096  
    123123 *  Mailbox IGU1 Interrupt 
    124124 */ 
     125#define LTQ_PPE_MBOX_INT     (INT_NUM_IM2_IRL0 + 24) 
    125126#define PPE_MAILBOX_IGU1_INT            LTQ_PPE_MBOX_INT 
    126127 
  • trunk/package/system/ltq-dsl/src/lantiq_mei.c

    r33830 r34096  
    8181#define ltq_w32_mask(clear, set, reg)       ltq_w32((ltq_r32(reg) & ~clear) | set, reg) 
    8282*/ 
     83 
     84#define LTQ_RCU_BASE_ADDR   0x1F203000 
     85#define LTQ_ICU_BASE_ADDR       0x1F880200 
     86#define LTQ_MEI_BASE_ADDR       0x1E116000 
     87#define LTQ_PMU_BASE_ADDR       0x1F102000 
     88#define LTQ_MEI_DYING_GASP_INT  (INT_NUM_IM1_IRL0 + 21) 
     89#define LTQ_USB_OC_INT          (INT_NUM_IM4_IRL0 + 23) 
     90#define LTQ_MEI_INT             (INT_NUM_IM1_IRL0 + 23) 
    8391 
    8492#define LTQ_RCU_RST_REQ_DFE             (1 << 7) 
Note: See TracChangeset for help on using the changeset viewer.