xref: /freebsd/sys/arm64/conf/NOTES (revision 25038e8de6b4e5f2ffca821565b50a633eea499a)
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# VirtIO support
64device		virtio
65device		virtio_pci
66device		virtio_mmio
67device		virtio_blk
68device		vtnet
69device		virtio_scmi
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		# Synopsys Designware GMAC Ethernet
98device		dwc_rk		# Rockchip Designware
99device		dwc_socfpga	# Altera SOCFPGA Ethernet MAC
100device		ice		# Intel 800 Series Physical Function
101device		ice_ddp		# Intel 800 Series DDP Package
102
103# Etherswitch devices
104device		e6000sw		# Marvell mv88e6085 based switches
105
106# MMC/SD/SDIO Card slot support
107device		sdhci_xenon		# Marvell Xenon SD/MMC controller
108device		aw_mmc			# Allwinner SD/MMC controller
109device		dwmmc
110device		dwmmc_altera
111device		rk_emmcphy
112
113# Serial (COM) ports
114device		uart_msm	# Qualcomm MSM UART driver
115device		uart_mu		# RPI3 aux port
116device		uart_mvebu	# Armada 3700 UART driver
117device		uart_ns8250	# ns8250-type UART driver
118device		uart_snps
119device		pl011
120
121# Early printf using the pl011 uart under the Arm FVP
122options 	SOCDEV_PA=0x1c090000
123options 	EARLY_PRINTF=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.
196device		clk
197device		efidev		# EFI pseudo-device
198device		efirtc		# EFI RTC
199device		phy
200device		hwreset
201device		nvmem
202device		regulator
203device		syscon
204device		aw_syscon
205
206# Backlight subsystem
207device		backlight
208
209# Misc devices.
210device		pl330		# ARM PL330 dma controller
211device		xdma		# xDMA framework for SoC on-chip dma controllers
212
213# Chip-specific errata
214options 	THUNDERX_PASS_1_1_ERRATA
215
216options 	EFIRT		# EFI Runtime Services
217options 	FDT
218device		acpi
219
220# DTBs
221makeoptions	MODULES_EXTRA="dtb/allwinner dtb/rockchip dtb/rpi"
222
223# Add CAMDEBUG stuff
224options 	CAMDEBUG
225options 	CAM_DEBUG_FLAGS=(CAM_DEBUG_INFO|CAM_DEBUG_PROBE|CAM_DEBUG_PERIPH)
226
227# bring in camified MMC too
228options 	MMCCAM
229
230# arm64 doesn't support inb/outb, so disable chipset probing which needs it
231nooptions 	PPC_PROBE_CHIPSET
232
233# These cause weird issues, not sure why
234nooptions 	DEBUG
235
236# Makes assumptions about bus tags that aren't true on arm64
237nodevice	snd_cmi
238
239# arm64 didn't exist for these releases, so doesn't have the required compat
240# support. Just disable them because they are meaningless.
241nooptions 	COMPAT_FREEBSD4
242nooptions 	COMPAT_FREEBSD5
243nooptions 	COMPAT_FREEBSD6
244nooptions 	COMPAT_FREEBSD7
245nooptions 	COMPAT_FREEBSD9
246nooptions 	COMPAT_FREEBSD10
247
248# arm64 supports 32-bit FreeBSD/arm binaries (armv[67] ABIs)
249options 	COMPAT_FREEBSD32	# Compatible with FreeBSD/arm
250
251#####################################################################
252# ZFS support
253
254options 	ZFS
255
256#
257# HID-over-I2C support
258#
259device		iichid		# HID-over-I2C support
260options 	IICHID_DEBUG	# Enable HID-over-I2C debug messages
261options 	IICHID_SAMPLING	# Workaround missing GPIO INTR support
262