xref: /freebsd/sys/arm64/conf/GENERIC (revision c40487d49bde43806672a0917a7ccc5d1e6301fd)
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 	TCP_HHOOK		# hhook(9) framework for TCP
35options 	TCP_OFFLOAD		# TCP offload
36options		TCP_RFC7413		# TCP Fast Open
37options 	SCTP_SUPPORT		# Allow kldload of SCTP
38options 	FFS			# Berkeley Fast Filesystem
39options 	SOFTUPDATES		# Enable FFS soft updates support
40options 	UFS_ACL			# Support for access control lists
41options 	UFS_DIRHASH		# Improve performance on big directories
42options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
43options 	QUOTA			# Enable disk quotas for UFS
44options 	MD_ROOT			# MD is a potential root device
45options 	NFSCL			# Network Filesystem Client
46options 	NFSD			# Network Filesystem Server
47options 	NFSLOCKD		# Network Lock Manager
48options 	NFS_ROOT		# NFS usable as /, requires NFSCL
49options 	MSDOSFS			# MSDOS Filesystem
50options 	CD9660			# ISO 9660 Filesystem
51options 	PROCFS			# Process filesystem (requires PSEUDOFS)
52options 	PSEUDOFS		# Pseudo-filesystem framework
53options 	TMPFS			# Efficient memory filesystem
54options 	GEOM_RAID		# Soft RAID functionality.
55options 	GEOM_LABEL		# Provides labelization
56options 	COMPAT_FREEBSD32	# Compatible with FreeBSD/arm
57options 	COMPAT_FREEBSD11	# Compatible with FreeBSD11
58options 	COMPAT_FREEBSD12	# Compatible with FreeBSD12
59options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
60options 	KTRACE			# ktrace(1) support
61options 	STACK			# stack(9) support
62options 	SYSVSHM			# SYSV-style shared memory
63options 	SYSVMSG			# SYSV-style message queues
64options 	SYSVSEM			# SYSV-style semaphores
65options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
66options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
67options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
68options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
69options 	AUDIT			# Security event auditing
70options 	CAPABILITY_MODE		# Capsicum capability mode
71options 	CAPABILITIES		# Capsicum capabilities
72options 	MAC			# TrustedBSD MAC Framework
73options 	KDTRACE_FRAME		# Ensure frames are compiled in
74options 	KDTRACE_HOOKS		# Kernel DTrace hooks
75options 	DDB_CTF			# Kernel ELF linker loads CTF data
76options 	VFP			# Floating-point support
77options 	RACCT			# Resource accounting framework
78options 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
79options 	RCTL			# Resource limits
80options 	SMP
81options 	INTRNG
82options 	LINUX_BOOT_ABI		# Boot using booti command from U-Boot
83
84# Debugging support.  Always need this:
85options 	KDB			# Enable kernel debugger support.
86options 	KDB_TRACE		# Print a stack trace for a panic.
87# For full debugger support use (turn off in stable branch):
88options 	DDB			# Support DDB.
89#options 	GDB			# Support remote GDB.
90options 	DEADLKRES		# Enable the deadlock resolver
91options 	INVARIANTS		# Enable calls of extra sanity checking
92options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
93options 	WITNESS			# Enable checks to detect deadlocks and cycles
94options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
95options 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
96options 	ALT_BREAK_TO_DEBUGGER	# Enter debugger on keyboard escape sequence
97options 	USB_DEBUG		# enable debug msgs
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# SoC support
115options 	SOC_ALLWINNER_A64
116options 	SOC_ALLWINNER_H5
117options 	SOC_ALLWINNER_H6
118options 	SOC_CAVM_THUNDERX
119options 	SOC_FREESCALE_IMX8
120options 	SOC_HISI_HI6220
121options 	SOC_INTEL_STRATIX10
122options 	SOC_BRCM_BCM2837
123options 	SOC_BRCM_BCM2838
124options 	SOC_MARVELL_8K
125options		SOC_NXP_LS
126options 	SOC_ROCKCHIP_RK3328
127options 	SOC_ROCKCHIP_RK3399
128options 	SOC_XILINX_ZYNQ
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# VirtIO support
144device		virtio
145device		virtio_pci
146device		virtio_mmio
147device		virtio_blk
148device		vtnet
149
150# CPU frequency control
151device		cpufreq
152
153# Bus drivers
154device		pci
155device		pci_n1sdp	# ARM Neoverse N1 SDP PCI
156device		al_pci		# Annapurna Alpine PCI-E
157options 	PCI_HP			# PCI-Express native HotPlug
158options 	PCI_IOV		# PCI SR-IOV support
159
160# PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure
161device		iflib
162device		em		# Intel PRO/1000 Gigabit Ethernet Family
163device		ix		# Intel 10Gb Ethernet Family
164
165# Ethernet NICs
166device		mdio
167device		mii
168device		miibus		# MII bus support
169device		awg		# Allwinner EMAC Gigabit Ethernet
170device		axgbe		# AMD Opteron A1100 integrated NIC
171device		msk		# Marvell/SysKonnect Yukon II Gigabit Ethernet
172device		neta		# Marvell Armada 370/38x/XP/3700 NIC
173device  	smc		# SMSC LAN91C111
174device		vnic		# Cavium ThunderX NIC
175device		al_eth		# Annapurna Alpine Ethernet NIC
176device		dwc_rk		# Rockchip Designware
177device		dwc_socfpga	# Altera SOCFPGA Ethernet MAC
178device		genet		# Broadcom on RPi4
179device		ffec		# iMX FFEC
180
181# Etherswitch devices
182device		etherswitch	# Enable etherswitch support
183device		miiproxy	# Required for etherswitch
184device		e6000sw		# Marvell mv88e6085 based switches
185
186# Block devices
187device		ahci
188device		scbus
189device		da
190
191# ATA/SCSI peripherals
192device		cd		# CD
193device		pass		# Passthrough device (direct ATA/SCSI access)
194
195# NVM Express (NVMe) support
196device		nvme		# base NVMe driver
197options 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
198device		nvd		# expose NVMe namespaces as disks, depends on nvme
199
200# MMC/SD/SDIO Card slot support
201device		sdhci
202device		sdhci_xenon		# Marvell Xenon SD/MMC controller
203device		aw_mmc			# Allwinner SD/MMC controller
204device		mmc			# mmc/sd bus
205device		mmcsd			# mmc/sd flash cards
206device		dwmmc
207device		dwmmc_altera
208device		dwmmc_hisi
209device		rk_dwmmc
210device		rk_emmcphy
211
212# Serial (COM) ports
213device		uart		# Generic UART driver
214device		uart_imx	# iMX8 UART
215device		uart_msm	# Qualcomm MSM UART driver
216device		uart_mu		# RPI3 aux port
217device		uart_mvebu	# Armada 3700 UART driver
218device		uart_ns8250	# ns8250-type UART driver
219device		uart_snps
220device		pl011
221
222# USB support
223options 	USB_HOST_ALIGN=64	# Align usb buffers to cache line size.
224device		aw_usbphy		# Allwinner USB PHY
225device		rk_usb2phy		# Rockchip USB2PHY
226device		rk_typec_phy		# Rockchip TypeC PHY
227device		dwcotg			# DWC OTG controller
228device		musb			# Mentor Graphics USB OTG controller
229device		ohci			# OHCI USB interface
230device		ehci			# EHCI USB interface (USB 2.0)
231device		ehci_mv			# Marvell EHCI USB interface
232device		xhci			# XHCI USB interface (USB 3.0)
233device		dwc3			# Synopsys DWC controller
234device		aw_dwc3			# Allwinner DWC3 controller
235device		rk_dwc3			# Rockchip DWC3 controller
236device		usb			# USB Bus (required)
237device		ukbd			# Keyboard
238device		umass			# Disks/Mass storage - Requires scbus and da
239
240# USB ethernet support
241device		muge
242device		smcphy
243device		smsc
244
245# Sound support
246device sound
247device a10_codec
248
249# DMA controller
250device		a31_dmac
251
252# GPIO / PINCTRL
253device		a37x0_gpio	# Marvell Armada 37x0 GPIO controller
254device		aw_gpio		# Allwinner GPIO controller
255device		dwgpio		# Synopsys DesignWare APB GPIO Controller
256device		gpio
257device		gpioled
258device		fdt_pinctrl
259device		gpioregulator
260device		ls1046_gpio	# LS1046A GPIO controller
261device		mv_gpio		# Marvell GPIO controller
262device		mvebu_pinctrl	# Marvell Pinmux Controller
263device		pl061		# Arm PL061 GPIO controller
264device		rk_gpio		# RockChip GPIO Controller
265device		rk_pinctrl	# RockChip Pinmux Controller
266
267# I2C
268device		a37x0_iic	# Armada 37x0 I2C controller
269device		aw_rsb		# Allwinner Reduced Serial Bus
270device		bcm2835_bsc	# Broadcom BCM283x I2C bus
271device		iicbus
272device		iic
273device		twsi		# Allwinner I2C controller
274device		rk_i2c		# RockChip I2C controller
275device		syr827		# Silergy SYR827 PMIC
276device		sy8106a		# SY8106A Buck Regulator
277device		vf_i2c		# Freescale Vybrid I2C controller
278device		fsliic		# Freescale iMX I2C controller
279
280# Clock and reset controllers
281device		aw_ccu		# Allwinner clock controller
282
283# Interrupt controllers
284device		aw_nmi		# Allwinner NMI support
285device		mv_cp110_icu	# Marvell CP110 ICU
286device		mv_ap806_gicp	# Marvell AP806 GICP
287device		mv_ap806_sei	# Marvell AP806 SEI
288
289# Real-time clock support
290device		aw_rtc		# Allwinner Real-time Clock
291device		mv_rtc		# Marvell Real-time Clock
292
293# Crypto accelerators
294device		safexcel	# Inside Secure EIP-97
295
296# Watchdog controllers
297device		aw_wdog		# Allwinner Watchdog
298
299# Power management controllers
300device		axp81x		# X-Powers AXP81x PMIC
301device		rk805		# RockChip RK805 PMIC
302
303# EFUSE
304device		aw_sid		# Allwinner Secure ID EFUSE
305
306# Thermal sensors
307device		aw_thermal	# Allwinner Thermal Sensor Controller
308device		mv_thermal	# Marvell Thermal Sensor Controller
309
310# SPI
311device		spibus
312device		a37x0_spi	# Marvell Armada 37x0 SPI Controller
313device		bcm2835_spi	# Broadcom BCM283x SPI bus
314device		rk_spi		# RockChip SPI controller
315
316# PWM
317device		pwm
318device		aw_pwm
319device		rk_pwm
320
321# Console
322device		vt
323device		kbdmux
324
325device		vt_efifb
326
327# EVDEV support
328device		evdev			# input event device support
329options		EVDEV_SUPPORT		# evdev support in legacy drivers
330device		uinput			# install /dev/uinput cdev
331device		aw_cir
332
333# Pseudo devices.
334device		crypto		# core crypto support
335device		loop		# Network loopback
336device		ether		# Ethernet support
337device		vlan		# 802.1Q VLAN support
338device		tuntap		# Packet tunnel.
339device		md		# Memory "disks"
340device		gif		# IPv6 and IPv4 tunneling
341device		firmware	# firmware assist module
342options 	EFIRT		# EFI Runtime Services
343
344# EXT_RESOURCES pseudo devices
345options 	EXT_RESOURCES
346device		clk
347device		phy
348device		hwreset
349device		nvmem
350device		regulator
351device		syscon
352device		aw_syscon
353
354# IO Domains
355device		rk_iodomain
356
357# The `bpf' device enables the Berkeley Packet Filter.
358# Be aware of the administrative consequences of enabling this!
359# Note that 'bpf' is required for DHCP.
360device		bpf		# Berkeley packet filter
361
362# Chip-specific errata
363options 	THUNDERX_PASS_1_1_ERRATA
364
365options 	FDT
366device		acpi
367
368# DTBs
369makeoptions	MODULES_EXTRA="dtb/allwinner dtb/imx8 dtb/mv dtb/rockchip dtb/rpi"
370