xref: /freebsd/sys/arm64/conf/GENERIC (revision c66ec88f)
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 	IPSEC_SUPPORT		# Allow kldload of ipsec and tcpmd5
34options		ROUTE_MPATH		# Multipath routing support
35options 	TCP_OFFLOAD		# TCP offload
36options 	TCP_HHOOK		# hhook(9) framework for TCP
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 	EFIRT			# EFI Runtime Services support
58options 	COMPAT_FREEBSD32	# Compatible with FreeBSD/arm
59options 	COMPAT_FREEBSD11	# Compatible with FreeBSD11
60options 	COMPAT_FREEBSD12	# Compatible with FreeBSD12
61options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
62options 	KTRACE			# ktrace(1) support
63options 	STACK			# stack(9) support
64options 	SYSVSHM			# SYSV-style shared memory
65options 	SYSVMSG			# SYSV-style message queues
66options 	SYSVSEM			# SYSV-style semaphores
67options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
68options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
69options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
70options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
71options 	AUDIT			# Security event auditing
72options 	CAPABILITY_MODE		# Capsicum capability mode
73options 	CAPABILITIES		# Capsicum capabilities
74options 	MAC			# TrustedBSD MAC Framework
75options 	KDTRACE_FRAME		# Ensure frames are compiled in
76options 	KDTRACE_HOOKS		# Kernel DTrace hooks
77options 	DDB_CTF			# Kernel ELF linker loads CTF data
78options 	VFP			# Floating-point support
79options 	RACCT			# Resource accounting framework
80options 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
81options 	RCTL			# Resource limits
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.
90options 	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 	VERBOSE_SYSINIT=0	# Support debug.verbose_sysinit, off by default
99
100# Kernel Sanitizers
101#options 	COVERAGE		# Generic kernel coverage. Used by KCOV
102#options 	KCOV			# Kernel Coverage Sanitizer
103# Warning: KUBSAN can result in a kernel too large for loader to load
104#options 	KUBSAN			# Kernel Undefined Behavior Sanitizer
105#options 	KCSAN			# Kernel Concurrency Sanitizer
106
107# Kernel dump features.
108options 	EKCD			# Support for encrypted kernel dumps
109options 	GZIO			# gzip-compressed kernel and user dumps
110options 	ZSTDIO			# zstd-compressed kernel and user dumps
111options 	DEBUGNET		# debugnet networking
112options 	NETDUMP			# netdump(4) client support
113
114# Make an SMP-capable kernel by default
115options 	SMP			# Symmetric MultiProcessor Kernel
116
117# SoC support
118options 	SOC_ALLWINNER_A64
119options 	SOC_ALLWINNER_H5
120options 	SOC_ALLWINNER_H6
121options 	SOC_CAVM_THUNDERX
122options 	SOC_FREESCALE_IMX8
123options 	SOC_HISI_HI6220
124options 	SOC_INTEL_STRATIX10
125options 	SOC_BRCM_BCM2837
126options 	SOC_BRCM_BCM2838
127options 	SOC_MARVELL_8K
128options 	SOC_NVIDIA_TEGRA210
129options		SOC_NXP_LS
130options 	SOC_ROCKCHIP_RK3328
131options 	SOC_ROCKCHIP_RK3399
132options 	SOC_XILINX_ZYNQ
133
134# Timer drivers
135device		a10_timer
136
137# Annapurna Alpine drivers
138device		al_ccu			# Alpine Cache Coherency Unit
139device		al_nb_service		# Alpine North Bridge Service
140device		al_iofic		# I/O Fabric Interrupt Controller
141device		al_serdes		# Serializer/Deserializer
142device		al_udma			# Universal DMA
143
144# Qualcomm Snapdragon drivers
145device		qcom_gcc		# Global Clock Controller
146
147# CPU frequency control
148device		cpufreq
149
150# Bus drivers
151device		pci
152device		pci_n1sdp	# ARM Neoverse N1 SDP PCI
153device		al_pci		# Annapurna Alpine PCI-E
154options 	PCI_HP			# PCI-Express native HotPlug
155options 	PCI_IOV		# PCI SR-IOV support
156
157# Block devices
158device		ahci
159device		scbus
160device		da
161
162# ATA/SCSI peripherals
163device		cd		# CD
164device		pass		# Passthrough device (direct ATA/SCSI access)
165
166# NVM Express (NVMe) support
167device		nvme		# base NVMe driver
168options 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
169device		nvd		# expose NVMe namespaces as disks, depends on nvme
170
171# DMA controller
172device		a31_dmac
173
174# GPIO / PINCTRL
175device		a37x0_gpio	# Marvell Armada 37x0 GPIO controller
176device		aw_gpio		# Allwinner GPIO controller
177device		dwgpio		# Synopsys DesignWare APB GPIO Controller
178device		gpio
179device		gpioled
180device		fdt_pinctrl
181device		gpioregulator
182device		ls1046_gpio	# LS1046A GPIO controller
183device		mv_gpio		# Marvell GPIO controller
184device		mvebu_pinctrl	# Marvell Pinmux Controller
185device		pl061		# Arm PL061 GPIO controller
186device		rk_gpio		# RockChip GPIO Controller
187device		rk_pinctrl	# RockChip Pinmux Controller
188
189# I2C
190device		a37x0_iic	# Armada 37x0 I2C controller
191device		aw_rsb		# Allwinner Reduced Serial Bus
192device		bcm2835_bsc	# Broadcom BCM283x I2C bus
193device		iicbus
194device		iicmux
195device		iic
196device		icee		# Generic IIC eeprom
197device		twsi		# Allwinner I2C controller
198device		pca9547		# NPX I2C bus multiplexer
199device		pcf8563		# NXP Real-time clock/calendar
200device		rk_i2c		# RockChip I2C controller
201device		syr827		# Silergy SYR827 PMIC
202device		sy8106a		# SY8106A Buck Regulator
203device		vf_i2c		# Freescale Vybrid I2C controller
204device		fsliic		# Freescale iMX I2C controller
205
206# Clock and reset controllers
207device		aw_ccu		# Allwinner clock controller
208
209# Interrupt controllers
210device		aw_nmi		# Allwinner NMI support
211device		mv_cp110_icu	# Marvell CP110 ICU
212device		mv_ap806_gicp	# Marvell AP806 GICP
213device		mv_ap806_sei	# Marvell AP806 SEI
214
215# Real-time clock support
216device		aw_rtc		# Allwinner Real-time Clock
217device		mv_rtc		# Marvell Real-time Clock
218
219# Crypto accelerators
220device		armv8crypto	# ARMv8 OpenCrypto module
221device		safexcel	# Inside Secure EIP-97
222
223# Watchdog controllers
224device		aw_wdog		# Allwinner Watchdog
225
226# Power management controllers
227device		axp81x		# X-Powers AXP81x PMIC
228device		rk805		# RockChip RK805 PMIC
229
230# EFUSE
231device		aw_sid		# Allwinner Secure ID EFUSE
232
233# Thermal sensors
234device		aw_thermal	# Allwinner Thermal Sensor Controller
235device		mv_thermal	# Marvell Thermal Sensor Controller
236
237# SPI
238device		spibus
239device		a37x0_spi	# Marvell Armada 37x0 SPI Controller
240device		bcm2835_spi	# Broadcom BCM283x SPI bus
241device		rk_spi		# RockChip SPI controller
242
243# PWM
244device		pwm
245device		aw_pwm
246device		rk_pwm
247
248# Console
249device		vt
250device		kbdmux
251
252device		vt_efifb
253
254# EVDEV support
255device		evdev			# input event device support
256options		EVDEV_SUPPORT		# evdev support in legacy drivers
257device		uinput			# install /dev/uinput cdev
258device		aw_cir
259
260# Serial (COM) ports
261device		uart			# Generic UART driver
262device		uart_imx		# iMX8 UART
263device		uart_msm		# Qualcomm MSM UART driver
264device		uart_mu			# RPI3 aux port
265device		uart_mvebu		# Armada 3700 UART driver
266device		uart_ns8250		# ns8250-type UART driver
267device		uart_snps
268device		pl011
269
270# PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure
271device		iflib
272device		em			# Intel PRO/1000 Gigabit Ethernet Family
273device		ix			# Intel 10Gb Ethernet Family
274
275# Ethernet NICs
276device		mdio
277device		mii
278device		miibus			# MII bus support
279device		al_eth			# Annapurna Alpine Ethernet NIC
280device		awg			# Allwinner EMAC Gigabit Ethernet
281device		axa			# AMD Opteron A1100 integrated NIC
282device		cgem			# Cadence GEM Gigabit Ethernet device
283device		dwc_rk			# Rockchip Designware
284device		dwc_socfpga		# Altera SOCFPGA Ethernet MAC
285device		ffec			# iMX FFEC
286device		genet			# Broadcom on RPi4
287device		msk			# Marvell/SysKonnect Yukon II Gigabit Ethernet
288device		neta			# Marvell Armada 370/38x/XP/3700 NIC
289device		re			# RealTek 8139C+/8169/8169S/8110S
290device		smc			# SMSC LAN91C111
291device		vnic			# Cavium ThunderX NIC
292
293# Etherswitch devices
294device		etherswitch		# Enable etherswitch support
295device		miiproxy		# Required for etherswitch
296device		e6000sw			# Marvell mv88e6085 based switches
297
298
299# Pseudo devices.
300device		crypto			# core crypto support
301device		loop			# Network loopback
302device		ether			# Ethernet support
303device		vlan			# 802.1Q VLAN support
304device		tuntap			# Packet tunnel.
305device		md			# Memory "disks"
306device		gif			# IPv6 and IPv4 tunneling
307device		firmware		# firmware assist module
308
309# EXT_RESOURCES pseudo devices
310options 	EXT_RESOURCES
311device		clk
312device		phy
313device		hwreset
314device		nvmem
315device		regulator
316device		syscon
317device		aw_syscon
318
319# IO Domains
320device		rk_iodomain
321
322# The `bpf' device enables the Berkeley Packet Filter.
323# Be aware of the administrative consequences of enabling this!
324# Note that 'bpf' is required for DHCP.
325device		bpf		# Berkeley packet filter
326
327# USB support
328options 	USB_DEBUG		# enable debug msgs
329options 	USB_HOST_ALIGN=64	# Align usb buffers to cache line size.
330device		aw_usbphy		# Allwinner USB PHY
331device		rk_usb2phy		# Rockchip USB2PHY
332device		rk_typec_phy		# Rockchip TypeC PHY
333device		dwcotg			# DWC OTG controller
334device		musb			# Mentor Graphics USB OTG controller
335device		ohci			# OHCI USB interface
336device		uhci			# UHCI USB interface
337device		ehci			# EHCI USB interface (USB 2.0)
338device		ehci_mv			# Marvell EHCI USB interface
339device		xhci			# XHCI USB interface (USB 3.0)
340device		dwc3			# Synopsys DWC controller
341device		aw_dwc3			# Allwinner DWC3 controller
342device		rk_dwc3			# Rockchip DWC3 controller
343device		usb			# USB Bus (required)
344device		ukbd			# Keyboard
345device		umass			# Disks/Mass storage - Requires scbus and da
346device		tegra210_xusb_fw	# Tegra XUSB firmware
347
348# USB ethernet support
349device		muge
350device		smcphy
351device		smsc
352device		ure
353
354# Sound support
355device sound
356device a10_codec
357
358# MMC/SD/SDIO Card slot support
359device		sdhci
360device		sdhci_xenon		# Marvell Xenon SD/MMC controller
361device		aw_mmc			# Allwinner SD/MMC controller
362device		mmc			# mmc/sd bus
363device		mmcsd			# mmc/sd flash cards
364device		dwmmc
365device		dwmmc_altera
366device		dwmmc_hisi
367device		rk_dwmmc
368device		rk_emmcphy
369
370# VirtIO support
371device		virtio
372device		virtio_pci
373device		virtio_mmio
374device		virtio_blk
375device		vtnet
376
377# Chip-specific errata
378options 	THUNDERX_PASS_1_1_ERRATA
379
380options 	FDT
381device		acpi
382
383# DTBs
384makeoptions	MODULES_EXTRA="dtb/allwinner dtb/freescale dtb/imx8 dtb/nvidia dtb/mv dtb/rockchip dtb/rpi"
385
386# HID support
387options 	HID_DEBUG	# enable debug msgs
388device		hid		# Generic HID support
389