xref: /freebsd/sys/arm64/conf/NOTES (revision 4e8d558c)
1#
2# NOTES -- Lines that can be cut/pasted into kernel and hints configs.
3#
4# This file contains machine dependent kernel configuration notes.  For
5# machine independent notes, look in /sys/conf/NOTES.
6#
7# $FreeBSD$
8#
9
10#
11# We want LINT to cover profiling as well.
12# Except it's broken.
13#profile         2
14
15#
16# Enable the kernel DTrace hooks which are required to load the DTrace
17# kernel modules.
18#
19options 	KDTRACE_HOOKS
20
21#
22# Most of the following is copied from ARM64 GENERIC.
23cpu		ARM64
24
25makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
26makeoptions	WITH_CTF=1		# Run ctfconvert(1) for DTrace support
27
28options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
29options 	KDTRACE_FRAME		# Ensure frames are compiled in
30options 	VFP			# Floating-point support
31options 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
32
33# SoC support
34options 	SOC_ALLWINNER_A64
35options 	SOC_ALLWINNER_H5
36options 	SOC_ALLWINNER_H6
37options 	SOC_BRCM_BCM2837
38options 	SOC_BRCM_BCM2838
39options 	SOC_BRCM_NS2
40options 	SOC_CAVM_THUNDERX
41options 	SOC_FREESCALE_IMX8
42options 	SOC_HISI_HI6220
43options 	SOC_INTEL_STRATIX10
44options 	SOC_MARVELL_8K
45options 	SOC_NVIDIA_TEGRA210
46options 	SOC_NXP_LS
47options 	SOC_ROCKCHIP_RK3328
48options 	SOC_ROCKCHIP_RK3399
49options 	SOC_XILINX_ZYNQ
50
51# Timer drivers
52device		a10_timer
53
54# Annapurna Alpine drivers
55device		al_ccu			# Alpine Cache Coherency Unit
56device		al_nb_service		# Alpine North Bridge Service
57device		al_iofic		# I/O Fabric Interrupt Controller
58device		al_serdes		# Serializer/Deserializer
59device		al_udma			# Universal DMA
60
61# Qualcomm Snapdragon drivers
62device		qcom_gcc		# Global Clock Controller
63
64# VirtIO support
65device		virtio
66device		virtio_pci
67device		virtio_mmio
68device		virtio_blk
69device		vtnet
70
71# Google Virtual NIC
72device		gve		# Google Virtual NIC (gVNIC) driver
73
74# Microsoft Hyper-V
75device		hyperv
76
77# CPU frequency control
78device		cpufreq
79
80# Accelerated software crypto
81device		armv8crypto		# ARMv8 OpenCrypto module
82device		ossl			# OpenSSL OpenCrypto module
83
84# Bus drivers
85device		al_pci		# Annapurna Alpine PCI-E
86options 	PCI_HP			# PCI-Express native HotPlug
87options 	PCI_IOV		# PCI SR-IOV support
88
89# Ethernet NICs
90device		mdio
91device		awg		# Allwinner EMAC Gigabit Ethernet
92device		axa		# AMD Opteron A1100 integrated NIC
93device		neta		# Marvell Armada 370/38x/XP/3700 NIC
94device  	smc		# SMSC LAN91C111
95device		vnic		# Cavium ThunderX NIC
96device		al_eth		# Annapurna Alpine Ethernet NIC
97device		dwc_rk		# Rockchip Designware
98device		dwc_socfpga	# Altera SOCFPGA Ethernet MAC
99device		ice		# Intel 800 Series Physical Function
100device		ice_ddp		# Intel 800 Series DDP Package
101
102# Etherswitch devices
103device		e6000sw		# Marvell mv88e6085 based switches
104
105# NVM Express (NVMe) support
106device		nvme		# base NVMe driver
107options 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
108device		nvd		# expose NVMe namespaces as disks, depends on nvme
109
110# MMC/SD/SDIO Card slot support
111device		sdhci_xenon		# Marvell Xenon SD/MMC controller
112device		aw_mmc			# Allwinner SD/MMC controller
113device		dwmmc
114device		dwmmc_altera
115device		rk_emmcphy
116
117# Serial (COM) ports
118device		uart_msm	# Qualcomm MSM UART driver
119device		uart_mu		# RPI3 aux port
120device		uart_mvebu	# Armada 3700 UART driver
121device		uart_ns8250	# ns8250-type UART driver
122device		uart_snps
123device		pl011
124
125# USB support
126device		aw_usbphy		# Allwinner USB PHY
127device		dwcotg			# DWC OTG controller
128device		ehci_mv			# Marvell EHCI USB interface
129
130# USB ethernet support
131device		muge
132device		smsc
133
134# Sound support
135device a10_codec
136
137# DMA controller
138device		a31_dmac
139
140# GPIO / PINCTRL
141device		a37x0_gpio	# Marvell Armada 37x0 GPIO controller
142device		aw_gpio		# Allwinner GPIO controller
143device		fdt_pinctrl
144device		mv_gpio		# Marvell GPIO controller
145device		mvebu_pinctrl	# Marvell Pinmux Controller
146device		rk_gpio		# RockChip GPIO Controller
147device		rk_pinctrl	# RockChip Pinmux Controller
148
149# I2C
150device		aw_rsb		# Allwinner Reduced Serial Bus
151device		bcm2835_bsc	# Broadcom BCM283x I2C bus
152device		twsi		# Allwinner I2C controller
153device		rk_i2c		# RockChip I2C controller
154
155# Clock and reset controllers
156device		aw_ccu		# Allwinner clock controller
157
158# Interrupt controllers
159device		aw_nmi		# Allwinner NMI support
160device		mv_cp110_icu	# Marvell CP110 ICU
161device		mv_ap806_gicp	# Marvell AP806 GICP
162
163# Real-time clock support
164device		aw_rtc		# Allwinner Real-time Clock
165device		mv_rtc		# Marvell Real-time Clock
166
167# Watchdog controllers
168device		aw_wdog		# Allwinner Watchdog
169
170# Power management controllers
171device		axp81x		# X-Powers AXP81x PMIC
172device		rk805		# RockChip RK805 PMIC
173
174# EFUSE
175device		aw_sid		# Allwinner Secure ID EFUSE
176
177# Thermal sensors
178device		aw_thermal	# Allwinner Thermal Sensor Controller
179device		mv_thermal	# Marvell Thermal Sensor Controller
180
181# SPI
182device		bcm2835_spi	# Broadcom BCM283x SPI bus
183
184# PWM
185device		pwm
186device		aw_pwm
187
188device		vt_efifb
189device		vt_simplefb
190
191# EVDEV support
192options 	EVDEV_SUPPORT		# evdev support in legacy drivers
193device		aw_cir
194
195# Pseudo devices.
196options 	EFIRT		# EFI Runtime Services
197device		clk
198device		phy
199device		hwreset
200device		nvmem
201device		regulator
202device		syscon
203device		aw_syscon
204
205# Backlight subsystem
206device		backlight
207
208# Misc devices.
209device		pl330		# ARM PL330 dma controller
210device		xdma		# xDMA framework for SoC on-chip dma controllers
211
212# Chip-specific errata
213options 	THUNDERX_PASS_1_1_ERRATA
214
215options 	FDT
216device		acpi
217
218# DTBs
219makeoptions	MODULES_EXTRA="dtb/allwinner dtb/rockchip dtb/rpi"
220
221# Add CAMDEBUG stuff
222options 	CAMDEBUG
223options 	CAM_DEBUG_FLAGS=(CAM_DEBUG_INFO|CAM_DEBUG_PROBE|CAM_DEBUG_PERIPH)
224
225# bring in camified MMC too
226options 	MMCCAM
227
228# arm64 doesn't support inb/outb, so disable chipset probing which needs it
229nooptions 	PPC_PROBE_CHIPSET
230
231# These cause weird issues, not sure why
232nooptions 	DEBUG
233
234# Makes assumptions about bus tags that aren't true on arm64
235nodevice	snd_cmi
236
237# arm64 didn't exist for these releases, so doesn't have the required compat
238# support. Just disable them because they are meaningless.
239nooptions 	COMPAT_FREEBSD4
240nooptions 	COMPAT_FREEBSD5
241nooptions 	COMPAT_FREEBSD6
242nooptions 	COMPAT_FREEBSD7
243nooptions 	COMPAT_FREEBSD9
244nooptions 	COMPAT_FREEBSD10
245
246# arm64 supports 32-bit FreeBSD/arm binaries (armv[67] ABIs)
247options 	COMPAT_FREEBSD32	# Compatible with FreeBSD/arm
248
249#####################################################################
250# ZFS support
251
252options 	ZFS
253
254#
255# HID-over-I2C support
256#
257device		iichid		# HID-over-I2C support
258options 	IICHID_DEBUG	# Enable HID-over-I2C debug messages
259options 	IICHID_SAMPLING	# Workaround missing GPIO INTR support
260