Changeset 37898


Ignore:
Timestamp:
2013-09-05T21:35:14+02:00 (4 years ago)
Author:
hauke
Message:

ath10k: enable Atheros 802.11ac driver

This enables usage of the ath10k driver on OpenWrt. Only 2.0 PCI hardware
is supported. The ath10k firmware is currently only available
through github so use that as its source for now.

This goes build tested, not run time tested.

[Hauke: I did some minor changes]

Cc: ath10k@…
Cc: Kalle Valo <kvalo@…>
Cc: Kathy Giori <kgiori@…>
Cc: Mathieu Olivari <mathieu@…>
Cc: Jerome Proffit <jproffit@…>
Cc: Sujith Manoharan <c_manoha@…>
Cc: Matthew McClintock <mmcclint@…>
Signed-off-by: Luis R. Rodriguez <mcgrof@…>
Signed-off-by: Hauke Mehrtens <hauke@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/mac80211/Makefile

    r37843 r37898  
    2828        rt2500-pci rt2500-usb rt61-pci rt73-usb rt2800-pci rt2800-usb \ 
    2929        rtl8180 rtl8187 zd1211rw mac80211-hwsim carl9170 b43 b43legacy \ 
    30         ath9k-common ath9k ath9k-htc ath net-libipw net-ipw2100 net-ipw2200 \ 
     30        ath9k-common ath9k ath9k-htc ath10k ath net-libipw net-ipw2100 net-ipw2200 \ 
    3131        mwl8k net-hermes net-hermes-pci net-hermes-plx net-hermes-pcmcia \ 
    3232        iwl-legacy iwl3945 iwl4965 iwlagn wl12xx lib80211 \ 
     
    126126$(eval $(call Download,linux-firmware)) 
    127127 
     128PKG_ATH10K_LINUX_FIRMWARE_NAME:=ath10k-firmware 
     129PKG_ATH10K_LINUX_FIRMWARE_VERSION:=9374d42c01bd84487855af9f9bffc622c50e7331 
     130PKG_ATH10K_LINUX_FIRMWARE_SOURCE:=$(PKG_ATH10K_LINUX_FIRMWARE_NAME)-$(PKG_ATH10K_LINUX_FIRMWARE_VERSION).tar.bz2 
     131PKG_ATH10K_LINUX_FIRMWARE_PROTO:=git 
     132PKG_ATH10K_LINUX_FIRMWARE_SOURCE_URL:=https://github.com/kvalo/ath10k-firmware.git 
     133PKG_ATH10K_LINUX_FIRMWARE_SUBDIR:=$(PKG_ATH10K_LINUX_FIRMWARE_NAME)-$(PKG_ATH10K_LINUX_FIRMWARE_VERSION) 
     134#PKG_ATH10K_LINUX_FIRMWARE_MIRROR_MD5SUM:=? 
     135 
     136define Download/ath10k-firmware 
     137  FILE:=$(PKG_ATH10K_LINUX_FIRMWARE_SOURCE) 
     138  URL:=$(PKG_ATH10K_LINUX_FIRMWARE_SOURCE_URL) 
     139  PROTO:=$(PKG_ATH10K_LINUX_FIRMWARE_PROTO) 
     140  VERSION:=$(PKG_ATH10K_LINUX_FIRMWARE_VERSION) 
     141  SUBDIR:=$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR) 
     142  #MIRROR_MD5SUM:=$(PKG_ATH10K_LINUX_FIRMWARE_MIRROR_MD5SUM) 
     143endef 
     144$(eval $(call Download,ath10k-firmware)) 
     145 
    128146# Prism54 drivers 
    129147P54PCIFW:=2.13.12.0.arm 
     
    565583This module adds support for wireless adapters based on 
    566584Atheros USB AR9271 and AR7010 family of chipsets. 
     585endef 
     586 
     587define KernelPackage/ath10k 
     588  $(call KernelPackage/mac80211/Default) 
     589  TITLE:=Atheros 802.11ac wireless cards support 
     590  URL:=http://wireless.kernel.org/en/users/Drivers/ath10k 
     591  DEPENDS+= @PCI_SUPPORT +kmod-ath +@DRIVER_11N_SUPPORT 
     592  FILES:= \ 
     593        $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_core.ko \ 
     594        $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_pci.ko 
     595  AUTOLOAD:=$(call AutoLoad,55,ath10k_core ath10k_pci) 
     596endef 
     597 
     598define KernelPackage/ath10k/description 
     599This module adds support for wireless adapters based on 
     600Atheros IEEE 802.11ac family of chipsets. For now only 
     601PCI is supported. 
    567602endef 
    568603 
     
    12991334        ATH9K_DEBUGFS \ 
    13001335        ATH9K_HTC_DEBUGFS \ 
     1336        ATH10K_DEBUGFS \ 
    13011337        CARL9170_DEBUGFS \ 
    13021338        ATH5K_DEBUG 
     
    13061342 
    13071343config-$(call config_package,ath) += ATH_CARDS ATH_COMMON 
    1308 config-$(CONFIG_PACKAGE_ATH_DEBUG) += ATH_DEBUG 
     1344config-$(CONFIG_PACKAGE_ATH_DEBUG) += ATH_DEBUG ATH10K_DEBUG 
    13091345 
    13101346config-$(call config_package,ath9k) += ATH9K 
     
    13151351 
    13161352config-$(call config_package,ath9k-htc) += ATH9K_HTC 
     1353config-$(call config_package,ath10k) += ATH10K ATH10K_PCI 
    13171354 
    13181355config-$(call config_package,ath5k) += ATH5K 
     
    14381475        $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(ZD1211FW_NAME)-$(ZD1211FW_VERSION).tar.bz2 
    14391476        $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(PKG_LINUX_FIRMWARE_SOURCE) 
     1477        $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SOURCE) 
    14401478        rm -rf \ 
    14411479                $(PKG_BUILD_DIR)/include/linux/ssb \ 
     
    15751613                $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/htc_7010.fw \ 
    15761614                $(1)/lib/firmware/ 
     1615endef 
     1616 
     1617define KernelPackage/ath10k/install 
     1618        $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0 
     1619        $(INSTALL_DATA) \ 
     1620                $(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/ath10k/QCA988X/hw2.0/board.bin \ 
     1621                $(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/ath10k/QCA988X/hw2.0/firmware.bin \ 
     1622                $(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/ath10k/QCA988X/hw2.0/otp.bin \ 
     1623                $(1)/lib/firmware/ath10k/QCA988X/hw2.0/ 
    15771624endef 
    15781625 
     
    17371784$(eval $(call KernelPackage,ath9k)) 
    17381785$(eval $(call KernelPackage,ath9k-htc)) 
     1786$(eval $(call KernelPackage,ath10k)) 
    17391787$(eval $(call KernelPackage,ath)) 
    17401788$(eval $(call KernelPackage,carl9170)) 
Note: See TracChangeset for help on using the changeset viewer.