1253512Sadrian#
2253512Sadrian# AR91XX -- Kernel configuration base file for the Atheros AR913x SoC.
3253512Sadrian#
4253512Sadrian# This file (and the hints file accompanying it) are not designed to be
5253512Sadrian# used by themselves. Instead, users of this file should create a kernel
6253512Sadrian# config file which includes this file (which gets the basic hints), then
7253512Sadrian# override the default options (adding devices as needed) and adding
8253512Sadrian# hints as needed (for example, the GPIO and LAN PHY.)
9253512Sadrian#
10253512Sadrian# $FreeBSD$
11253512Sadrian#
12253512Sadrian
13253512Sadrianmachine         mips mips
14253512Sadrianident		AR934X_BASE
15295138Sadriancpu		CPU_MIPS74K
16253512Sadrianmakeoptions	KERNLOADADDR=0x80050000
17263301Simpoptions 	HZ=1000
18253512Sadrian
19253512Sadrianfiles		"../atheros/files.ar71xx"
20253512Sadrianhints		"AR934X_BASE.hints"
21253512Sadrian
22253512Sadrianmakeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
23299999Sadrianmakeoptions	MODULES_OVERRIDE="gpio ar71xx if_gif if_gre if_vlan if_bridge bridgestp usb wlan wlan_xauth wlan_acl wlan_wep wlan_tkip wlan_ccmp wlan_rssadapt wlan_amrr ath ath_ahb hwpmc ipfw ipfw_nat libalias urtwn urtwnfw otus otusfw"
24280317Sadrian# makeoptions	MODULES_OVERRIDE=""
25253512Sadrian
26263301Simpoptions 	DDB
27263301Simpoptions 	KDB
28253512Sadrianoptions 	ALQ
29253512Sadrian
30263301Simpoptions 	SCHED_4BSD		#4BSD scheduler
31263301Simpoptions 	INET			#InterNETworking
32263301Simp#options 	INET6			#InterNETworking
33263301Simp#options 	NFSCL			#Network Filesystem Client
34263301Simpoptions 	PSEUDOFS		#Pseudo-filesystem framework
35263301Simpoptions 	_KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
36253512Sadrian
37253512Sadrian# Don't include the SCSI/CAM strings in the default build
38253512Sadrianoptions 	SCSI_NO_SENSE_STRINGS
39253512Sadrianoptions 	SCSI_NO_OP_STRINGS
40253512Sadrian
41253512Sadrian# .. And no sysctl strings
42253512Sadrianoptions 	NO_SYSCTL_DESCR
43253512Sadrian
44253512Sadrian# Limit IO size
45263301Simpoptions 	NBUF=128
46253512Sadrian
47253512Sadrian# Limit UMTX hash size
48263301Simp# options 	UMTX_NUM_CHAINS=64
49253512Sadrian
50253512Sadrian# PMC
51263301Simp#options 	HWPMC_HOOKS
52253512Sadrian#device		hwpmc
53253512Sadrian#device		hwpmc_mips24k
54253512Sadrian
55263301Simp# options 	NFS_LEGACYRPC
56253512Sadrian# Debugging for use in -current
57263301Simp#options 	INVARIANTS
58263301Simp#options 	INVARIANT_SUPPORT
59263301Simp#options 	WITNESS
60263301Simp#options 	WITNESS_SKIPSPIN
61263301Simpoptions 	FFS                     #Berkeley Fast Filesystem
62263301Simp#options 	SOFTUPDATES             #Enable FFS soft updates support
63263301Simp#options 	UFS_ACL                 #Support for access control lists
64263301Simp#options 	UFS_DIRHASH             #Improve performance on big directories
65263301Simpoptions 	NO_FFS_SNAPSHOT		# We don't require snapshot support
66253512Sadrian
67253512Sadrian# Wireless NIC cards
68263301Simpoptions 	IEEE80211_DEBUG
69263301Simpoptions 	IEEE80211_SUPPORT_MESH
70263301Simpoptions 	IEEE80211_SUPPORT_TDMA
71263301Simpoptions 	IEEE80211_SUPPORT_SUPERG
72253512Sadrianoptions 	IEEE80211_ALQ	# 802.11 ALQ logging support
73253512Sadriandevice		wlan            # 802.11 support
74253512Sadriandevice		wlan_wep        # 802.11 WEP support
75253512Sadriandevice		wlan_ccmp       # 802.11 CCMP support
76253512Sadriandevice		wlan_tkip       # 802.11 TKIP support
77253512Sadriandevice		wlan_xauth	# 802.11 hostap support
78253512Sadrian
79253512Sadrian# ath(4)
80253512Sadriandevice		ath             # Atheros network device
81253512Sadriandevice		ath_rate_sample
82253512Sadriandevice		ath_ahb		# Atheros host bus glue
83253512Sadrianoptions 	ATH_DEBUG
84263301Simpoptions 	ATH_DIAGAPI
85253512Sadrianoption		ATH_ENABLE_11N
86253512Sadrian
87253512Sadrian#device		ath_hal
88253512Sadriandevice		ath_ar9300		# AR9330 HAL; no need for the others
89253512Sadrianoption		AH_DEBUG
90253512Sadrianoption		AH_SUPPORT_AR5416	# 11n HAL support
91253512Sadrianoption		AH_SUPPORT_AR9340	# Chipset support
92253512Sadrianoption		AH_DEBUG_ALQ
93253512Sadrianoption		AH_AR5416_INTERRUPT_MITIGATION
94253512Sadrian
95253512Sadriandevice		mii
96253512Sadriandevice		arge
97253512Sadrian
98253512Sadriandevice		usb
99263301Simpoptions 	USB_EHCI_BIG_ENDIAN_DESC        # handle big-endian byte order
100263301Simpoptions 	USB_DEBUG
101263301Simpoptions 	USB_HOST_ALIGN=32		# AR71XX (MIPS in general?) requires this
102253512Sadriandevice		ehci
103253512Sadrian
104261871Sadriandevice		pci
105261871Sadriandevice		ar724x_pci
106261871Sadrian
107253512Sadriandevice		scbus
108253512Sadriandevice		umass
109253512Sadriandevice		da
110253512Sadrian
111253512Sadriandevice		spibus
112253512Sadriandevice		ar71xx_spi
113253512Sadriandevice		mx25l
114253512Sadriandevice		ar71xx_wdog
115253512Sadrian
116253512Sadriandevice		uart
117253512Sadriandevice		uart_ar71xx
118253512Sadrian
119276741Sadrian# XXX for now; later a separate APB mux is needed to demux PCI/WLAN interrupts.
120276741Sadriandevice		ar71xx_apb
121276741Sadrian
122253512Sadriandevice		loop
123253512Sadriandevice		ether
124253512Sadriandevice		md
125253512Sadriandevice		bpf
126253512Sadriandevice		random
127253512Sadriandevice		if_bridge
128253512Sadriandevice		gpio
129253512Sadriandevice		gpioled
130