xref: /freebsd/sys/arm64/conf/GENERIC (revision 82397d791966b09d344251bc709cd9db2b3a1902)
1#
2# GENERIC -- Generic kernel configuration file for FreeBSD/arm64
3#
4# For more information on this file, please read the config(5) manual page,
5# and/or the handbook section on Kernel Configuration Files:
6#
7#    https://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
8#
9# The handbook is also available locally in /usr/share/doc/handbook
10# if you've installed the doc distribution, otherwise always see the
11# FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the
12# latest information.
13#
14# An exhaustive list of options and more detailed explanations of the
15# device lines is also present in the ../../conf/NOTES and NOTES files.
16# If you are in doubt as to the purpose or necessity of a line, check first
17# in NOTES.
18#
19# $FreeBSD$
20
21cpu		ARM64
22ident		GENERIC
23
24makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
25makeoptions	WITH_CTF=1		# Run ctfconvert(1) for DTrace support
26
27options 	SCHED_ULE		# ULE scheduler
28options 	NUMA			# Non-Uniform Memory Architecture support
29options 	PREEMPTION		# Enable kernel thread preemption
30options 	VIMAGE			# Subsystem virtualization, e.g. VNET
31options 	INET			# InterNETworking
32options 	INET6			# IPv6 communications protocols
33options		ROUTE_MPATH		# Multipath routing support
34options 	IPSEC_SUPPORT		# Allow kldload of ipsec and tcpmd5
35options 	TCP_HHOOK		# hhook(9) framework for TCP
36options 	TCP_OFFLOAD		# TCP offload
37options		TCP_RFC7413		# TCP Fast Open
38options 	SCTP_SUPPORT		# Allow kldload of SCTP
39options 	FFS			# Berkeley Fast Filesystem
40options 	SOFTUPDATES		# Enable FFS soft updates support
41options 	UFS_ACL			# Support for access control lists
42options 	UFS_DIRHASH		# Improve performance on big directories
43options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
44options 	QUOTA			# Enable disk quotas for UFS
45options 	MD_ROOT			# MD is a potential root device
46options 	NFSCL			# Network Filesystem Client
47options 	NFSD			# Network Filesystem Server
48options 	NFSLOCKD		# Network Lock Manager
49options 	NFS_ROOT		# NFS usable as /, requires NFSCL
50options 	MSDOSFS			# MSDOS Filesystem
51options 	CD9660			# ISO 9660 Filesystem
52options 	PROCFS			# Process filesystem (requires PSEUDOFS)
53options 	PSEUDOFS		# Pseudo-filesystem framework
54options 	TMPFS			# Efficient memory filesystem
55options 	GEOM_RAID		# Soft RAID functionality.
56options 	GEOM_LABEL		# Provides labelization
57options 	COMPAT_FREEBSD32	# Compatible with FreeBSD/arm
58options 	COMPAT_FREEBSD11	# Compatible with FreeBSD11
59options 	COMPAT_FREEBSD12	# Compatible with FreeBSD12
60options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
61options 	KTRACE			# ktrace(1) support
62options 	STACK			# stack(9) support
63options 	SYSVSHM			# SYSV-style shared memory
64options 	SYSVMSG			# SYSV-style message queues
65options 	SYSVSEM			# SYSV-style semaphores
66options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
67options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
68options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
69options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
70options 	AUDIT			# Security event auditing
71options 	CAPABILITY_MODE		# Capsicum capability mode
72options 	CAPABILITIES		# Capsicum capabilities
73options 	MAC			# TrustedBSD MAC Framework
74options 	KDTRACE_FRAME		# Ensure frames are compiled in
75options 	KDTRACE_HOOKS		# Kernel DTrace hooks
76options 	DDB_CTF			# Kernel ELF linker loads CTF data
77options 	VFP			# Floating-point support
78options 	RACCT			# Resource accounting framework
79options 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
80options 	RCTL			# Resource limits
81options 	SMP
82options 	INTRNG
83options 	LINUX_BOOT_ABI		# Boot using booti command from U-Boot
84
85# Debugging support.  Always need this:
86options 	KDB			# Enable kernel debugger support.
87options 	KDB_TRACE		# Print a stack trace for a panic.
88# For full debugger support use (turn off in stable branch):
89options 	DDB			# Support DDB.
90#options 	GDB			# Support remote GDB.
91options 	DEADLKRES		# Enable the deadlock resolver
92options 	INVARIANTS		# Enable calls of extra sanity checking
93options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
94options 	WITNESS			# Enable checks to detect deadlocks and cycles
95options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
96options 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
97options 	ALT_BREAK_TO_DEBUGGER	# Enter debugger on keyboard escape sequence
98options 	USB_DEBUG		# enable debug msgs
99options 	VERBOSE_SYSINIT=0	# Support debug.verbose_sysinit, off by default
100
101# Kernel Sanitizers
102#options 	COVERAGE		# Generic kernel coverage. Used by KCOV
103#options 	KCOV			# Kernel Coverage Sanitizer
104# Warning: KUBSAN can result in a kernel too large for loader to load
105#options 	KUBSAN			# Kernel Undefined Behavior Sanitizer
106#options 	KCSAN			# Kernel Concurrency Sanitizer
107
108# Kernel dump features.
109options 	EKCD			# Support for encrypted kernel dumps
110options 	GZIO			# gzip-compressed kernel and user dumps
111options 	ZSTDIO			# zstd-compressed kernel and user dumps
112options 	DEBUGNET		# debugnet networking
113options 	NETDUMP			# netdump(4) client support
114
115# SoC support
116options 	SOC_ALLWINNER_A64
117options 	SOC_ALLWINNER_H5
118options 	SOC_ALLWINNER_H6
119options 	SOC_CAVM_THUNDERX
120options 	SOC_FREESCALE_IMX8
121options 	SOC_HISI_HI6220
122options 	SOC_INTEL_STRATIX10
123options 	SOC_BRCM_BCM2837
124options 	SOC_BRCM_BCM2838
125options 	SOC_MARVELL_8K
126options 	SOC_NVIDIA_TEGRA210
127options		SOC_NXP_LS
128options 	SOC_ROCKCHIP_RK3328
129options 	SOC_ROCKCHIP_RK3399
130options 	SOC_XILINX_ZYNQ
131
132# Timer drivers
133device		a10_timer
134
135# Annapurna Alpine drivers
136device		al_ccu			# Alpine Cache Coherency Unit
137device		al_nb_service		# Alpine North Bridge Service
138device		al_iofic		# I/O Fabric Interrupt Controller
139device		al_serdes		# Serializer/Deserializer
140device		al_udma			# Universal DMA
141
142# Qualcomm Snapdragon drivers
143device		qcom_gcc		# Global Clock Controller
144
145# VirtIO support
146device		virtio
147device		virtio_pci
148device		virtio_mmio
149device		virtio_blk
150device		vtnet
151
152# CPU frequency control
153device		cpufreq
154
155# Bus drivers
156device		pci
157device		pci_n1sdp	# ARM Neoverse N1 SDP PCI
158device		al_pci		# Annapurna Alpine PCI-E
159options 	PCI_HP			# PCI-Express native HotPlug
160options 	PCI_IOV		# PCI SR-IOV support
161
162# PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure
163device		iflib
164device		em		# Intel PRO/1000 Gigabit Ethernet Family
165device		ix		# Intel 10Gb Ethernet Family
166
167# Ethernet NICs
168device		mdio
169device		mii
170device		miibus		# MII bus support
171device		awg		# Allwinner EMAC Gigabit Ethernet
172device		axa		# AMD Opteron A1100 integrated NIC
173device		msk		# Marvell/SysKonnect Yukon II Gigabit Ethernet
174device		neta		# Marvell Armada 370/38x/XP/3700 NIC
175device		re		# RealTek 8139C+/8169/8169S/8110S
176device		smc		# SMSC LAN91C111
177device		vnic		# Cavium ThunderX NIC
178device		al_eth		# Annapurna Alpine Ethernet NIC
179device		dwc_rk		# Rockchip Designware
180device		dwc_socfpga	# Altera SOCFPGA Ethernet MAC
181device		genet		# Broadcom on RPi4
182device		ffec		# iMX FFEC
183
184# Etherswitch devices
185device		etherswitch	# Enable etherswitch support
186device		miiproxy	# Required for etherswitch
187device		e6000sw		# Marvell mv88e6085 based switches
188
189# Block devices
190device		ahci
191device		scbus
192device		da
193
194# ATA/SCSI peripherals
195device		cd		# CD
196device		pass		# Passthrough device (direct ATA/SCSI access)
197
198# NVM Express (NVMe) support
199device		nvme		# base NVMe driver
200options 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
201device		nvd		# expose NVMe namespaces as disks, depends on nvme
202
203# MMC/SD/SDIO Card slot support
204device		sdhci
205device		sdhci_xenon		# Marvell Xenon SD/MMC controller
206device		aw_mmc			# Allwinner SD/MMC controller
207device		mmc			# mmc/sd bus
208device		mmcsd			# mmc/sd flash cards
209device		dwmmc
210device		dwmmc_altera
211device		dwmmc_hisi
212device		rk_dwmmc
213device		rk_emmcphy
214
215# Serial (COM) ports
216device		uart		# Generic UART driver
217device		uart_imx	# iMX8 UART
218device		uart_msm	# Qualcomm MSM UART driver
219device		uart_mu		# RPI3 aux port
220device		uart_mvebu	# Armada 3700 UART driver
221device		uart_ns8250	# ns8250-type UART driver
222device		uart_snps
223device		pl011
224
225# USB support
226options 	USB_HOST_ALIGN=64	# Align usb buffers to cache line size.
227device		aw_usbphy		# Allwinner USB PHY
228device		rk_usb2phy		# Rockchip USB2PHY
229device		rk_typec_phy		# Rockchip TypeC PHY
230device		dwcotg			# DWC OTG controller
231device		musb			# Mentor Graphics USB OTG controller
232device		ohci			# OHCI USB interface
233device		uhci			# UHCI USB interface
234device		ehci			# EHCI USB interface (USB 2.0)
235device		ehci_mv			# Marvell EHCI USB interface
236device		xhci			# XHCI USB interface (USB 3.0)
237device		dwc3			# Synopsys DWC controller
238device		aw_dwc3			# Allwinner DWC3 controller
239device		rk_dwc3			# Rockchip DWC3 controller
240device		usb			# USB Bus (required)
241device		ukbd			# Keyboard
242device		umass			# Disks/Mass storage - Requires scbus and da
243device		tegra210_xusb_fw	# Tegra XUSB firmware
244
245# USB ethernet support
246device		muge
247device		smcphy
248device		smsc
249device		ure
250
251# Sound support
252device sound
253device a10_codec
254
255# DMA controller
256device		a31_dmac
257
258# GPIO / PINCTRL
259device		a37x0_gpio	# Marvell Armada 37x0 GPIO controller
260device		aw_gpio		# Allwinner GPIO controller
261device		dwgpio		# Synopsys DesignWare APB GPIO Controller
262device		gpio
263device		gpioled
264device		fdt_pinctrl
265device		gpioregulator
266device		ls1046_gpio	# LS1046A GPIO controller
267device		mv_gpio		# Marvell GPIO controller
268device		mvebu_pinctrl	# Marvell Pinmux Controller
269device		pl061		# Arm PL061 GPIO controller
270device		rk_gpio		# RockChip GPIO Controller
271device		rk_pinctrl	# RockChip Pinmux Controller
272
273# I2C
274device		a37x0_iic	# Armada 37x0 I2C controller
275device		aw_rsb		# Allwinner Reduced Serial Bus
276device		bcm2835_bsc	# Broadcom BCM283x I2C bus
277device		iicbus
278device		iicmux
279device		iic
280device		icee		# Generic IIC eeprom
281device		twsi		# Allwinner I2C controller
282device		pca9547		# NPX I2C bus multiplexer
283device		pcf8563		# NXP Real-time clock/calendar
284device		rk_i2c		# RockChip I2C controller
285device		syr827		# Silergy SYR827 PMIC
286device		sy8106a		# SY8106A Buck Regulator
287device		vf_i2c		# Freescale Vybrid I2C controller
288device		fsliic		# Freescale iMX I2C controller
289
290# Clock and reset controllers
291device		aw_ccu		# Allwinner clock controller
292
293# Interrupt controllers
294device		aw_nmi		# Allwinner NMI support
295device		mv_cp110_icu	# Marvell CP110 ICU
296device		mv_ap806_gicp	# Marvell AP806 GICP
297device		mv_ap806_sei	# Marvell AP806 SEI
298
299# Real-time clock support
300device		aw_rtc		# Allwinner Real-time Clock
301device		mv_rtc		# Marvell Real-time Clock
302
303# Crypto accelerators
304device		safexcel	# Inside Secure EIP-97
305
306# Watchdog controllers
307device		aw_wdog		# Allwinner Watchdog
308
309# Power management controllers
310device		axp81x		# X-Powers AXP81x PMIC
311device		rk805		# RockChip RK805 PMIC
312
313# EFUSE
314device		aw_sid		# Allwinner Secure ID EFUSE
315
316# Thermal sensors
317device		aw_thermal	# Allwinner Thermal Sensor Controller
318device		mv_thermal	# Marvell Thermal Sensor Controller
319
320# SPI
321device		spibus
322device		a37x0_spi	# Marvell Armada 37x0 SPI Controller
323device		bcm2835_spi	# Broadcom BCM283x SPI bus
324device		rk_spi		# RockChip SPI controller
325
326# PWM
327device		pwm
328device		aw_pwm
329device		rk_pwm
330
331# Console
332device		vt
333device		kbdmux
334
335device		vt_efifb
336
337# EVDEV support
338device		evdev			# input event device support
339options		EVDEV_SUPPORT		# evdev support in legacy drivers
340device		uinput			# install /dev/uinput cdev
341device		aw_cir
342
343# Pseudo devices.
344device		crypto		# core crypto support
345device		loop		# Network loopback
346device		ether		# Ethernet support
347device		vlan		# 802.1Q VLAN support
348device		tuntap		# Packet tunnel.
349device		md		# Memory "disks"
350device		gif		# IPv6 and IPv4 tunneling
351device		firmware	# firmware assist module
352options 	EFIRT		# EFI Runtime Services
353
354# EXT_RESOURCES pseudo devices
355options 	EXT_RESOURCES
356device		clk
357device		phy
358device		hwreset
359device		nvmem
360device		regulator
361device		syscon
362device		aw_syscon
363
364# IO Domains
365device		rk_iodomain
366
367# The `bpf' device enables the Berkeley Packet Filter.
368# Be aware of the administrative consequences of enabling this!
369# Note that 'bpf' is required for DHCP.
370device		bpf		# Berkeley packet filter
371
372# Chip-specific errata
373options 	THUNDERX_PASS_1_1_ERRATA
374
375options 	FDT
376device		acpi
377
378# DTBs
379makeoptions	MODULES_EXTRA="dtb/allwinner dtb/freescale dtb/imx8 dtb/nvidia dtb/mv dtb/rockchip dtb/rpi"
380