1220295Sadrian# 2220295Sadrian# AR91XX -- Kernel configuration base file for the Atheros AR913x SoC. 3220295Sadrian# 4220295Sadrian# This file (and the hints file accompanying it) are not designed to be 5220295Sadrian# used by themselves. Instead, users of this file should create a kernel 6220295Sadrian# config file which includes this file (which gets the basic hints), then 7220295Sadrian# override the default options (adding devices as needed) and adding 8220295Sadrian# hints as needed (for example, the GPIO and LAN PHY.) 9220295Sadrian# 10220295Sadrian# $FreeBSD$ 11220295Sadrian# 12220295Sadrian 13233644Sjmallettmachine mips mips 14220295Sadrianident AR91XX_BASE 15295503Sadriancpu CPU_MIPS24K 16220295Sadrianmakeoptions KERNLOADADDR=0x80050000 17263301Simpoptions HZ=1000 18220295Sadrian 19220295Sadrianfiles "../atheros/files.ar71xx" 20220295Sadrianhints "AR91XX_BASE.hints" 21220295Sadrian 22220295Sadrianmakeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols 23284959Smarkmmakeoptions 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_ahb hwpmc" 24220295Sadrian 25263301Simpoptions DDB 26263301Simpoptions KDB 27232887Sadrianoptions ALQ 28220295Sadrian 29280779Sadrian# For small memory footprints 30280779Sadrianoptions VM_KMEM_SIZE_SCALE=1 31280779Sadrian 32263301Simpoptions SCHED_4BSD #4BSD scheduler 33263301Simpoptions INET #InterNETworking 34263301Simpoptions INET6 #InterNETworking 35263301Simp#options NFSCL #Network Filesystem Client 36263301Simpoptions PSEUDOFS #Pseudo-filesystem framework 37263301Simpoptions _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions 38220295Sadrian 39232887Sadrian# PMC 40263301Simpoptions HWPMC_HOOKS 41235346Sadriandevice hwpmc 42243180Sadriandevice hwpmc_mips24k 43232887Sadrian 44263301Simp# options NFS_LEGACYRPC 45220295Sadrian# Debugging for use in -current 46263301Simpoptions INVARIANTS 47263301Simpoptions INVARIANT_SUPPORT 48263301Simpoptions WITNESS 49263301Simpoptions WITNESS_SKIPSPIN 50263301Simpoptions FFS #Berkeley Fast Filesystem 51263301Simp#options SOFTUPDATES #Enable FFS soft updates support 52263301Simp#options UFS_ACL #Support for access control lists 53263301Simp#options UFS_DIRHASH #Improve performance on big directories 54263301Simpoptions NO_FFS_SNAPSHOT # We don't require snapshot support 55220295Sadrian 56220295Sadrian# Wireless NIC cards 57263301Simpoptions IEEE80211_DEBUG 58263301Simpoptions IEEE80211_SUPPORT_MESH 59263301Simpoptions IEEE80211_SUPPORT_TDMA 60232887Sadrianoptions IEEE80211_ALQ # 802.11 ALQ logging support 61221164Sadriandevice wlan # 802.11 support 62221164Sadriandevice wlan_wep # 802.11 WEP support 63221164Sadriandevice wlan_ccmp # 802.11 CCMP support 64221164Sadriandevice wlan_tkip # 802.11 TKIP support 65221164Sadriandevice wlan_xauth # 802.11 hostap support 66220295Sadrian 67232887Sadrian# ath(4) 68232887Sadriandevice ath # Atheros network device 69221164Sadriandevice ath_rate_sample 70232887Sadriandevice ath_ahb # Atheros host bus glue 71220295Sadrianoptions ATH_DEBUG 72263301Simpoptions ATH_DIAGAPI 73221164Sadrianoption ATH_ENABLE_11N 74221164Sadrian 75227920Sadrian# Don't bother compiling the whole HAL - AH_SUPPORT_AR9130 breaks the 76227920Sadrian# rest of the 11n chipset support at the moment and the pre-AR5212 77227920Sadrian# HALs aren't required. 78227920Sadrian# device ath_hal 79221164Sadrian 80227920Sadrian# The AR9130 code requires AR5416; and AR5416 requires the AR5212 code. 81227920Sadriandevice ath_ar5212 82227920Sadriandevice ath_ar5416 83227920Sadriandevice ath_ar9130 84227920Sadrian 85263301Simpoptions AH_DEBUG 86220295Sadrianoption AH_SUPPORT_AR5416 87221164Sadrianoption AH_SUPPORT_AR9130 # Makes other chipsets not function! 88232887Sadrianoption AH_DEBUG_ALQ 89221164Sadrian# interrupt mitigation not possible on AR9130 90221164Sadrian# option AH_AR5416_INTERRUPT_MITIGATION 91220295Sadrian 92220295Sadriandevice mii 93220295Sadriandevice arge 94220295Sadrian 95220295Sadriandevice usb 96263301Simpoptions USB_EHCI_BIG_ENDIAN_DESC # handle big-endian byte order 97263301Simpoptions USB_DEBUG 98263301Simpoptions USB_HOST_ALIGN=32 # AR71XX (MIPS in general?) requires this 99220295Sadriandevice ehci 100220295Sadrian 101220295Sadriandevice scbus 102220295Sadriandevice umass 103220295Sadriandevice da 104220295Sadrian 105220295Sadriandevice spibus 106220295Sadriandevice ar71xx_spi 107220295Sadriandevice mx25l 108220295Sadriandevice ar71xx_wdog 109220295Sadrian 110220295Sadriandevice uart 111243177Sadriandevice uart_ar71xx 112220295Sadrian 113276741Sadriandevice ar71xx_apb 114276741Sadrian 115220295Sadriandevice loop 116220295Sadriandevice ether 117220295Sadriandevice md 118220295Sadriandevice bpf 119220295Sadriandevice random 120220295Sadriandevice if_bridge 121228519Sadriandevice gpio 122228519Sadriandevice gpioled 123