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
12228944Sadriancpu		CPU_MIPS4KC
13228944Sadrianmakeoptions	KERNLOADADDR=0x80050000
14266331Sianoptions 	HZ=1000
15266331Sianoptions 	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.
27253845Sobrienmakeoptions	MODULES_OVERRIDE="random 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
29266331Sianoptions 	DDB
30266331Sianoptions 	KDB
31228944Sadrian
32266331Sianoptions 	SCHED_4BSD		#4BSD scheduler
33266331Sianoptions 	INET			#InterNETworking
34266331Sianoptions 	INET6			# IPv6
35228944Sadrian
36266331Sian# options 	NFSCL		#Network Filesystem Client
37228944Sadrian
38266331Sianoptions 	PSEUDOFS		#Pseudo-filesystem framework
39266331Sianoptions 	_KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
40228944Sadrian
41266331Sian# options 	NFS_LEGACYRPC
42228944Sadrian# Debugging for use in -current
43266331Sianoptions 	INVARIANTS
44266331Sianoptions 	INVARIANT_SUPPORT
45266331Sianoptions 	WITNESS
46266331Sianoptions 	WITNESS_SKIPSPIN
47266331Sianoptions 	DEBUG_REDZONE
48266331Sianoptions 	DEBUG_MEMGUARD
49228944Sadrian
50228944Sadrianoptions         FFS                     #Berkeley Fast Filesystem
51228944Sadrian# options         SOFTUPDATES             #Enable FFS soft updates support
52228944Sadrian# options         UFS_ACL                 #Support for access control lists
53228944Sadrian# options         UFS_DIRHASH             #Improve performance on big directories
54266331Sian# options 	MSDOSFS			# Read MSDOS filesystems; useful for USB/CF
55228944Sadrian
56228944Sadriandevice		pci
57228944Sadriandevice		ar71xx_pci
58228944Sadrian
59228944Sadrian# 802.11 framework
60266331Sianoptions 	IEEE80211_DEBUG
61266331Sianoptions 	IEEE80211_ALQ
62266331Sianoptions 	IEEE80211_SUPPORT_MESH
63228944Sadrian# This option is currently broken for if_ath_tx.
64266331Sianoptions 	IEEE80211_SUPPORT_TDMA
65266331Sianoptions 	IEEE80211_AMPDU_AGE
66228944Sadriandevice		wlan            # 802.11 support
67228944Sadriandevice		wlan_wep        # 802.11 WEP support
68228944Sadriandevice		wlan_ccmp       # 802.11 CCMP support
69228944Sadriandevice		wlan_tkip       # 802.11 TKIP support
70228944Sadriandevice		wlan_xauth	# 802.11 hostap support
71228944Sadrian
72228944Sadrian# Atheros wireless NICs
73228944Sadriandevice		ath             # Atheros interface support
74228944Sadriandevice		ath_pci		# Atheros PCI/Cardbus bus
75228944Sadrianoptions 	ATH_DEBUG
76266331Sianoptions 	ATH_DIAGAPI
77266331Sianoptions 	ATH_ENABLE_11N
78266331Sianoptions 	AH_DEBUG
79266331Sianoptions 	AH_DEBUG_ALQ
80266331Sianoptions 	ALQ
81228944Sadriandevice		ath_hal
82228944Sadrianoption		AH_SUPPORT_AR5416
83228944Sadriandevice		ath_rate_sample
84228944Sadrianoption		AH_RXCFG_SDMAMW_4BYTES
85228944Sadrianoption		AH_AR5416_INTERRUPT_MITIGATION
86228944Sadrian# There's no DFS radar detection support yet so this won't actually
87228944Sadrian# detect radars.  It however does enable the rest of the channel change
88228944Sadrian# machinery so DFS can be debugged.
89228944Sadrianoption		ATH_ENABLE_DFS
90228944Sadrian
91228944Sadriandevice		mii
92228944Sadriandevice		arge
93228944Sadrian
94228944Sadriandevice		usb
95266331Sianoptions 	USB_EHCI_BIG_ENDIAN_DESC        # handle big-endian byte order
96266331Sianoptions 	USB_DEBUG
97266331Sianoptions 	USB_HOST_ALIGN=32		# AR71XX (MIPS in general?) requires this
98228944Sadriandevice		ehci
99228944Sadrian
100228944Sadriandevice		scbus
101228944Sadriandevice		umass
102228944Sadriandevice		da
103228944Sadrian
104228944Sadrian# On-board SPI flash
105228944Sadriandevice		spibus
106228944Sadriandevice		ar71xx_spi
107228944Sadriandevice		mx25l
108228944Sadriandevice		ar71xx_wdog
109228944Sadrian
110228944Sadriandevice		uart
111243177Sadriandevice		uart_ar71xx
112228944Sadrian
113228944Sadriandevice		loop
114228944Sadriandevice		ether
115228944Sadriandevice		md
116228944Sadriandevice		bpf
117228944Sadriandevice		random
118228944Sadriandevice		if_bridge
119228944Sadriandevice		gif		# ip[46] in ip[46] tunneling protocol
120228944Sadriandevice		gre		# generic encapsulation - only for IPv4 in IPv4 though atm
121228944Sadrian
122266331Sianoptions 	ARGE_DEBUG	# Enable if_arge debugging for now
123228945Sadrian
124228945Sadrian# Enable GPIO
125228945Sadriandevice		gpio
126228945Sadriandevice		gpioled
127