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