xref: /freebsd-13-stable/sys/arm64/conf/GENERIC (revision 677a7402cea46eb253a241b443471ab072e2b6a7)
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://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config
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
20cpu		ARM64
21ident		GENERIC
22
23makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
24makeoptions	WITH_CTF=1		# Run ctfconvert(1) for DTrace support
25
26options 	SCHED_ULE		# ULE scheduler
27options 	NUMA			# Non-Uniform Memory Architecture support
28options 	PREEMPTION		# Enable kernel thread preemption
29options 	VIMAGE			# Subsystem virtualization, e.g. VNET
30options 	INET			# InterNETworking
31options 	INET6			# IPv6 communications protocols
32options 	IPSEC_SUPPORT		# Allow kldload of ipsec and tcpmd5
33options		NETLINK			# netlink(4) support
34options		ROUTE_MPATH		# Multipath routing support
35options		FIB_ALGO		# Modular fib lookups
36options 	TCP_OFFLOAD		# TCP offload
37options 	TCP_BLACKBOX		# Enhanced TCP event logging
38options 	TCP_HHOOK		# hhook(9) framework for TCP
39options		TCP_RFC7413		# TCP Fast Open
40options 	SCTP_SUPPORT		# Allow kldload of SCTP
41options		KERN_TLS		# TLS transmit & receive offload
42options 	FFS			# Berkeley Fast Filesystem
43options 	SOFTUPDATES		# Enable FFS soft updates support
44options 	UFS_ACL			# Support for access control lists
45options 	UFS_DIRHASH		# Improve performance on big directories
46options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
47options 	QUOTA			# Enable disk quotas for UFS
48options 	MD_ROOT			# MD is a potential root device
49options 	NFSCL			# Network Filesystem Client
50options 	NFSD			# Network Filesystem Server
51options 	NFSLOCKD		# Network Lock Manager
52options 	NFS_ROOT		# NFS usable as /, requires NFSCL
53options 	MSDOSFS			# MSDOS Filesystem
54options 	CD9660			# ISO 9660 Filesystem
55options 	PROCFS			# Process filesystem (requires PSEUDOFS)
56options 	PSEUDOFS		# Pseudo-filesystem framework
57options 	TMPFS			# Efficient memory filesystem
58options 	GEOM_RAID		# Soft RAID functionality.
59options 	GEOM_LABEL		# Provides labelization
60options 	EFIRT			# EFI Runtime Services support
61options 	COMPAT_FREEBSD32	# Compatible with FreeBSD/arm
62options 	COMPAT_FREEBSD11	# Compatible with FreeBSD11
63options 	COMPAT_FREEBSD12	# Compatible with FreeBSD12
64options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
65options 	KTRACE			# ktrace(1) support
66options 	STACK			# stack(9) support
67options 	SYSVSHM			# SYSV-style shared memory
68options 	SYSVMSG			# SYSV-style message queues
69options 	SYSVSEM			# SYSV-style semaphores
70options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
71options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
72options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
73options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
74options 	AUDIT			# Security event auditing
75options 	CAPABILITY_MODE		# Capsicum capability mode
76options 	CAPABILITIES		# Capsicum capabilities
77options 	MAC			# TrustedBSD MAC Framework
78options 	KDTRACE_FRAME		# Ensure frames are compiled in
79options 	KDTRACE_HOOKS		# Kernel DTrace hooks
80options 	DDB_CTF			# Kernel ELF linker loads CTF data
81options 	VFP			# Floating-point support
82options 	RACCT			# Resource accounting framework
83options 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
84options 	RCTL			# Resource limits
85options 	INTRNG
86options 	LINUX_BOOT_ABI		# Boot using booti command from U-Boot
87options 	PERTHREAD_SSP		# Per-thread SSP canary
88
89# Debugging support.  Always need this:
90options 	KDB			# Enable kernel debugger support.
91options 	KDB_TRACE		# Print a stack trace for a panic.
92
93# Kernel Sanitizers
94#options 	COVERAGE		# Generic kernel coverage. Used by KCOV
95#options 	KCOV			# Kernel Coverage Sanitizer
96# Warning: KUBSAN can result in a kernel too large for loader to load
97#options 	KUBSAN			# Kernel Undefined Behavior Sanitizer
98#options 	KCSAN			# Kernel Concurrency Sanitizer
99
100# Kernel dump features.
101options 	EKCD			# Support for encrypted kernel dumps
102options 	GZIO			# gzip-compressed kernel and user dumps
103options 	ZSTDIO			# zstd-compressed kernel and user dumps
104options 	DEBUGNET		# debugnet networking
105options 	NETDUMP			# netdump(4) client support
106
107# Make an SMP-capable kernel by default
108options 	SMP			# Symmetric MultiProcessor Kernel
109
110# SoC support
111options 	SOC_ALLWINNER_A64
112options 	SOC_ALLWINNER_H5
113options 	SOC_ALLWINNER_H6
114options 	SOC_CAVM_THUNDERX
115options 	SOC_FREESCALE_IMX8
116options 	SOC_HISI_HI6220
117options 	SOC_INTEL_STRATIX10
118options 	SOC_BRCM_BCM2837
119options 	SOC_BRCM_BCM2838
120options 	SOC_BRCM_NS2
121options 	SOC_MARVELL_8K
122options 	SOC_NVIDIA_TEGRA210
123options		SOC_NXP_LS
124options 	SOC_ROCKCHIP_RK3328
125options 	SOC_ROCKCHIP_RK3399
126options 	SOC_XILINX_ZYNQ
127
128options 	PPS_SYNC
129
130# Timer drivers
131device		a10_timer
132
133# Annapurna Alpine drivers
134device		al_ccu			# Alpine Cache Coherency Unit
135device		al_nb_service		# Alpine North Bridge Service
136device		al_iofic		# I/O Fabric Interrupt Controller
137device		al_serdes		# Serializer/Deserializer
138device		al_udma			# Universal DMA
139
140# Qualcomm Snapdragon drivers
141device		qcom_gcc		# Global Clock Controller
142
143# CPU frequency control
144device		cpufreq
145
146# Bus drivers
147device		pci
148device		pci_n1sdp	# ARM Neoverse N1 SDP PCI
149device		al_pci		# Annapurna Alpine PCI-E
150options 	PCI_HP			# PCI-Express native HotPlug
151options 	PCI_IOV		# PCI SR-IOV support
152
153# Block devices
154device		ahci
155device		scbus
156device		da
157device		pvscsi			# VMware PVSCSI
158
159# ATA/SCSI peripherals
160device		cd		# CD
161device		pass		# Passthrough device (direct ATA/SCSI access)
162
163# NVM Express (NVMe) support
164device		nvme		# base NVMe driver
165options 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
166device		nvd		# expose NVMe namespaces as disks, depends on nvme
167
168# DMA controller
169device		a31_dmac
170
171# GPIO / PINCTRL
172device		a37x0_gpio	# Marvell Armada 37x0 GPIO controller
173device		aw_gpio		# Allwinner GPIO controller
174device		dwgpio		# Synopsys DesignWare APB GPIO Controller
175device		gpio
176device		gpioled
177device		fdt_pinctrl
178device		gpioregulator
179device		ls1046_gpio	# LS1046A GPIO controller
180device		mv_gpio		# Marvell GPIO controller
181device		mvebu_pinctrl	# Marvell Pinmux Controller
182device		pl061		# Arm PL061 GPIO controller
183device		rk_gpio		# RockChip GPIO Controller
184device		rk_pinctrl	# RockChip Pinmux Controller
185
186# I2C
187device		a37x0_iic	# Armada 37x0 I2C controller
188device		aw_rsb		# Allwinner Reduced Serial Bus
189device		bcm2835_bsc	# Broadcom BCM283x I2C bus
190device		iicbus
191device		iicmux
192device		iic
193device		icee		# Generic IIC eeprom
194device		twsi		# Allwinner I2C controller
195device		pca954x		# NPX I2C bus multiplexer
196device		pcf8563		# NXP Real-time clock/calendar
197device		rk_i2c		# RockChip I2C controller
198device		syr827		# Silergy SYR827 PMIC
199device		sy8106a		# SY8106A Buck Regulator
200device		vf_i2c		# Freescale Vybrid I2C controller
201device		fsliic		# Freescale iMX I2C controller
202
203# Clock and reset controllers
204device		aw_ccu		# Allwinner clock controller
205
206# Interrupt controllers
207device		aw_nmi		# Allwinner NMI support
208device		aw_r_intc	# Allwinner RINTC support
209device		mv_cp110_icu	# Marvell CP110 ICU
210device		mv_ap806_gicp	# Marvell AP806 GICP
211device		mv_ap806_sei	# Marvell AP806 SEI
212
213# Real-time clock support
214device		aw_rtc		# Allwinner Real-time Clock
215device		mv_rtc		# Marvell Real-time Clock
216
217# Crypto accelerators
218device		armv8crypto	# ARMv8 OpenCrypto module
219device		safexcel	# Inside Secure EIP-97
220
221# Watchdog controllers
222device		aw_wdog		# Allwinner Watchdog
223
224# Power management controllers
225device		axp81x		# X-Powers AXP81x PMIC
226device		rk805		# RockChip RK805 PMIC
227
228# EFUSE
229device		aw_sid		# Allwinner Secure ID EFUSE
230
231# Thermal sensors
232device		aw_thermal	# Allwinner Thermal Sensor Controller
233device		mv_thermal	# Marvell Thermal Sensor Controller
234
235# SPI
236device		spibus
237device		a37x0_spi	# Marvell Armada 37x0 SPI Controller
238device		bcm2835_spi	# Broadcom BCM283x SPI bus
239device		rk_spi		# RockChip SPI controller
240
241# PWM
242device		pwm
243device		aw_pwm
244device		rk_pwm
245
246# Console
247device		vt
248device		kbdmux
249
250device		vt_efifb
251
252# EVDEV support
253device		evdev			# input event device support
254options		EVDEV_SUPPORT		# evdev support in legacy drivers
255device		uinput			# install /dev/uinput cdev
256device		aw_cir
257
258# Serial (COM) ports
259device		uart			# Generic UART driver
260device		uart_imx		# iMX8 UART
261device		uart_msm		# Qualcomm MSM UART driver
262device		uart_mu			# RPI3 aux port
263device		uart_mvebu		# Armada 3700 UART driver
264device		uart_ns8250		# ns8250-type UART driver
265device		uart_snps
266device		pl011
267
268# PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure
269device		iflib
270device		em			# Intel PRO/1000 Gigabit Ethernet Family
271device		ix			# Intel 10Gb Ethernet Family
272device		vmx			# VMware VMXNET3 Ethernet
273
274# Ethernet NICs
275device		mdio
276device		mii
277device		miibus			# MII bus support
278device		al_eth			# Annapurna Alpine Ethernet NIC
279device		awg			# Allwinner EMAC Gigabit Ethernet
280device		axa			# AMD Opteron A1100 integrated NIC
281device		cgem			# Cadence GEM Gigabit Ethernet device
282device		dwc_rk			# Rockchip Designware
283device		dwc_socfpga		# Altera SOCFPGA Ethernet MAC
284device		ffec			# iMX FFEC
285device		genet			# Broadcom on RPi4
286device		msk			# Marvell/SysKonnect Yukon II Gigabit Ethernet
287device		neta			# Marvell Armada 370/38x/XP/3700 NIC
288device		re			# RealTek 8139C+/8169/8169S/8110S
289device		smc			# SMSC LAN91C111
290device		vnic			# Cavium ThunderX NIC
291device		dpaa2			# Data Path Acceleration Architecture (2nd Gen)
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			# Generic VirtIO bus (required)
372device		virtio_pci		# VirtIO PCI device
373device		virtio_mmio		# VirtIO Memory Mapped IO device
374device		virtio_blk		# VirtIO Block device
375device		virtio_scsi		# VirtIO SCSI device
376device		vtnet			# VirtIO Ethernet device
377
378# Chip-specific errata
379options 	THUNDERX_PASS_1_1_ERRATA
380
381options 	FDT
382device		acpi
383
384# DTBs
385makeoptions	MODULES_EXTRA="dtb/allwinner dtb/freescale dtb/imx8 dtb/nvidia dtb/mv dtb/rockchip dtb/rpi"
386
387# HID support
388options 	HID_DEBUG	# enable debug msgs
389device		hid		# Generic HID support
390