1228944Sadrian# 2228944Sadrian# AR71XX -- Kernel configuration file for FreeBSD/MIPS for Atheros 71xx systems 3228944Sadrian# 4228944Sadrian# This includes all the common drivers for the AR71XX boards along with 5228944Sadrian# the usb, net80211 and atheros driver code. 6228944Sadrian# 7228944Sadrian# $FreeBSD$ 8228944Sadrian# 9228944Sadrian 10233644Sjmallettmachine mips mips 11228944Sadrianident AR71XX_BASE 12295503Sadriancpu CPU_MIPS24K 13228944Sadrianmakeoptions KERNLOADADDR=0x80050000 14263301Simpoptions HZ=1000 15263301Simpoptions HWPMC_HOOKS 16228944Sadrian 17228944Sadrianfiles "../atheros/files.ar71xx" 18228944Sadrian 19228944Sadrian# For now, hints are per-board. 20228944Sadrian 21228944Sadrianhints "AR71XX_BASE.hints" 22228944Sadrian 23228944Sadrianmakeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols 24228944Sadrian 25230152Sadrian# Build these as modules so small platform builds will have the 26230152Sadrian# modules already built. 27284959Smarkmmakeoptions MODULES_OVERRIDE="gpio ar71xx if_gif if_gre if_bridge bridgestp usb wlan wlan_xauth wlan_acl wlan_wep wlan_tkip wlan_ccmp wlan_rssadapt wlan_amrr ath ath_pci" 28228944Sadrian 29284145Sadrian# For small memory footprints 30284145Sadrianoptions VM_KMEM_SIZE_SCALE=1 31284145Sadrian 32263301Simpoptions DDB 33263301Simpoptions KDB 34228944Sadrian 35263301Simpoptions SCHED_4BSD #4BSD scheduler 36263301Simpoptions INET #InterNETworking 37263301Simpoptions INET6 # IPv6 38228944Sadrian 39263301Simp# options NFSCL #Network Filesystem Client 40228944Sadrian 41263301Simpoptions PSEUDOFS #Pseudo-filesystem framework 42263301Simpoptions _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions 43228944Sadrian 44263301Simp# options NFS_LEGACYRPC 45228944Sadrian# Debugging for use in -current 46263301Simpoptions INVARIANTS 47263301Simpoptions INVARIANT_SUPPORT 48263301Simpoptions WITNESS 49263301Simpoptions WITNESS_SKIPSPIN 50263301Simpoptions DEBUG_REDZONE 51263301Simpoptions DEBUG_MEMGUARD 52228944Sadrian 53228944Sadrianoptions FFS #Berkeley Fast Filesystem 54228944Sadrian# options SOFTUPDATES #Enable FFS soft updates support 55228944Sadrian# options UFS_ACL #Support for access control lists 56228944Sadrian# options UFS_DIRHASH #Improve performance on big directories 57263301Simp# options MSDOSFS # Read MSDOS filesystems; useful for USB/CF 58228944Sadrian 59228944Sadriandevice pci 60228944Sadriandevice ar71xx_pci 61228944Sadrian 62228944Sadrian# 802.11 framework 63263301Simpoptions IEEE80211_DEBUG 64263301Simpoptions IEEE80211_ALQ 65263301Simpoptions IEEE80211_SUPPORT_MESH 66263301Simpoptions IEEE80211_SUPPORT_TDMA 67263301Simpoptions IEEE80211_AMPDU_AGE 68228944Sadriandevice wlan # 802.11 support 69228944Sadriandevice wlan_wep # 802.11 WEP support 70228944Sadriandevice wlan_ccmp # 802.11 CCMP support 71228944Sadriandevice wlan_tkip # 802.11 TKIP support 72228944Sadriandevice wlan_xauth # 802.11 hostap support 73228944Sadrian 74228944Sadrian# Atheros wireless NICs 75228944Sadriandevice ath # Atheros interface support 76228944Sadriandevice ath_pci # Atheros PCI/Cardbus bus 77228944Sadrianoptions ATH_DEBUG 78263301Simpoptions ATH_DIAGAPI 79263301Simpoptions ATH_ENABLE_11N 80263301Simpoptions AH_DEBUG 81263301Simpoptions AH_DEBUG_ALQ 82263301Simpoptions ALQ 83228944Sadriandevice ath_hal 84228944Sadrianoption AH_SUPPORT_AR5416 85228944Sadriandevice ath_rate_sample 86228944Sadrianoption AH_RXCFG_SDMAMW_4BYTES 87228944Sadrianoption AH_AR5416_INTERRUPT_MITIGATION 88228944Sadrian# There's no DFS radar detection support yet so this won't actually 89228944Sadrian# detect radars. It however does enable the rest of the channel change 90228944Sadrian# machinery so DFS can be debugged. 91228944Sadrianoption ATH_ENABLE_DFS 92228944Sadrian 93228944Sadriandevice mii 94228944Sadriandevice arge 95228944Sadrian 96228944Sadriandevice usb 97263301Simpoptions USB_EHCI_BIG_ENDIAN_DESC # handle big-endian byte order 98263301Simpoptions USB_DEBUG 99263301Simpoptions USB_HOST_ALIGN=32 # AR71XX (MIPS in general?) requires this 100228944Sadriandevice ehci 101228944Sadrian 102228944Sadriandevice scbus 103228944Sadriandevice umass 104228944Sadriandevice da 105228944Sadrian 106228944Sadrian# On-board SPI flash 107228944Sadriandevice spibus 108228944Sadriandevice ar71xx_spi 109228944Sadriandevice mx25l 110228944Sadriandevice ar71xx_wdog 111228944Sadrian 112228944Sadriandevice uart 113243177Sadriandevice uart_ar71xx 114228944Sadrian 115276741Sadriandevice ar71xx_apb 116276741Sadrian 117228944Sadriandevice loop 118228944Sadriandevice ether 119228944Sadriandevice md 120228944Sadriandevice bpf 121228944Sadriandevice random 122228944Sadriandevice if_bridge 123228944Sadriandevice gif # ip[46] in ip[46] tunneling protocol 124228944Sadriandevice gre # generic encapsulation - only for IPv4 in IPv4 though atm 125228944Sadrian 126263301Simpoptions ARGE_DEBUG # Enable if_arge debugging for now 127228945Sadrian 128228945Sadrian# Enable GPIO 129228945Sadriandevice gpio 130228945Sadriandevice gpioled 131