xref: /freebsd/sys/arm64/conf/NOTES (revision 71d104536b513298902be65342afe6f3792f29e4)
156abac3fSWarner Losh#
256abac3fSWarner Losh# NOTES -- Lines that can be cut/pasted into kernel and hints configs.
356abac3fSWarner Losh#
456abac3fSWarner Losh# This file contains machine dependent kernel configuration notes.  For
556abac3fSWarner Losh# machine independent notes, look in /sys/conf/NOTES.
656abac3fSWarner Losh#
756abac3fSWarner Losh# $FreeBSD$
856abac3fSWarner Losh#
956abac3fSWarner Losh
1056abac3fSWarner Losh#
1156abac3fSWarner Losh# We want LINT to cover profiling as well.
1256abac3fSWarner Losh# Except it's broken.
1356abac3fSWarner Losh#profile         2
1456abac3fSWarner Losh
1556abac3fSWarner Losh#
1656abac3fSWarner Losh# Enable the kernel DTrace hooks which are required to load the DTrace
1756abac3fSWarner Losh# kernel modules.
1856abac3fSWarner Losh#
1956abac3fSWarner Loshoptions 	KDTRACE_HOOKS
2056abac3fSWarner Losh
2156abac3fSWarner Losh#
2256abac3fSWarner Losh# Most of the following is copied from ARM64 GENERIC.
2356abac3fSWarner Loshcpu		ARM64
2456abac3fSWarner Losh
2556abac3fSWarner Loshmakeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
2656abac3fSWarner Loshmakeoptions	WITH_CTF=1		# Run ctfconvert(1) for DTrace support
2756abac3fSWarner Losh
2856abac3fSWarner Loshoptions 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
2956abac3fSWarner Loshoptions 	KDTRACE_FRAME		# Ensure frames are compiled in
3056abac3fSWarner Loshoptions 	VFP			# Floating-point support
3156abac3fSWarner Loshoptions 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
3256abac3fSWarner Loshoptions 	INTRNG
3356abac3fSWarner Losh
3456abac3fSWarner Loshnooptions 	GDB			# Support remote GDB -- not supported
3556abac3fSWarner Losh
3656abac3fSWarner Losh# SoC support
3756abac3fSWarner Loshoptions 	SOC_ALLWINNER_A64
3856abac3fSWarner Loshoptions 	SOC_ALLWINNER_H5
3956abac3fSWarner Loshoptions 	SOC_CAVM_THUNDERX
4056abac3fSWarner Loshoptions 	SOC_HISI_HI6220
4156abac3fSWarner Loshoptions 	SOC_BRCM_BCM2837
420227a149SKyle Evansoptions 	SOC_BRCM_BCM2838
4356abac3fSWarner Loshoptions 	SOC_MARVELL_8K
4456abac3fSWarner Loshoptions 	SOC_ROCKCHIP_RK3328
4556abac3fSWarner Loshoptions 	SOC_ROCKCHIP_RK3399
4656abac3fSWarner Loshoptions 	SOC_XILINX_ZYNQ
4756abac3fSWarner Losh
4856abac3fSWarner Losh# Timer drivers
4956abac3fSWarner Loshdevice		a10_timer
5056abac3fSWarner Losh
5156abac3fSWarner Losh# Annapurna Alpine drivers
5256abac3fSWarner Loshdevice		al_ccu			# Alpine Cache Coherency Unit
5356abac3fSWarner Loshdevice		al_nb_service		# Alpine North Bridge Service
5456abac3fSWarner Loshdevice		al_iofic		# I/O Fabric Interrupt Controller
5556abac3fSWarner Loshdevice		al_serdes		# Serializer/Deserializer
5656abac3fSWarner Loshdevice		al_udma			# Universal DMA
5756abac3fSWarner Losh
5856abac3fSWarner Losh# Qualcomm Snapdragon drivers
5956abac3fSWarner Loshdevice		qcom_gcc		# Global Clock Controller
6056abac3fSWarner Losh
6156abac3fSWarner Losh# VirtIO support
6256abac3fSWarner Loshdevice		virtio
6356abac3fSWarner Loshdevice		virtio_pci
6456abac3fSWarner Loshdevice		virtio_mmio
6556abac3fSWarner Loshdevice		virtio_blk
6656abac3fSWarner Loshdevice		vtnet
6756abac3fSWarner Losh
6856abac3fSWarner Losh# CPU frequency control
6956abac3fSWarner Loshdevice		cpufreq
7056abac3fSWarner Losh
7156abac3fSWarner Losh# Bus drivers
7256abac3fSWarner Loshdevice		al_pci		# Annapurna Alpine PCI-E
7356abac3fSWarner Loshoptions 	PCI_HP			# PCI-Express native HotPlug
7456abac3fSWarner Loshoptions 	PCI_IOV		# PCI SR-IOV support
7556abac3fSWarner Losh
7656abac3fSWarner Losh# Ethernet NICs
7756abac3fSWarner Loshdevice		mdio
7856abac3fSWarner Loshdevice		awg		# Allwinner EMAC Gigabit Ethernet
7956abac3fSWarner Loshdevice		axgbe		# AMD Opteron A1100 integrated NIC
8056abac3fSWarner Loshdevice		neta		# Marvell Armada 370/38x/XP/3700 NIC
8156abac3fSWarner Loshdevice  	smc		# SMSC LAN91C111
8256abac3fSWarner Loshdevice		vnic		# Cavium ThunderX NIC
8356abac3fSWarner Loshdevice		al_eth		# Annapurna Alpine Ethernet NIC
8456abac3fSWarner Loshdevice		dwc_rk		# Rockchip Designware
8556abac3fSWarner Loshdevice		dwc_socfpga	# Altera SOCFPGA Ethernet MAC
86*71d10453SEric Joynerdevice		ice		# Intel 800 Series Physical Function
87*71d10453SEric Joynerdevice		ice_ddp		# Intel 800 Series DDP Package
8856abac3fSWarner Losh
8956abac3fSWarner Losh# Etherswitch devices
9056abac3fSWarner Loshdevice		e6000sw		# Marvell mv88e6085 based switches
9156abac3fSWarner Losh
9256abac3fSWarner Losh# NVM Express (NVMe) support
9356abac3fSWarner Loshdevice		nvme		# base NVMe driver
9456abac3fSWarner Loshoptions 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
9556abac3fSWarner Loshdevice		nvd		# expose NVMe namespaces as disks, depends on nvme
9656abac3fSWarner Losh
9756abac3fSWarner Losh# MMC/SD/SDIO Card slot support
9856abac3fSWarner Loshdevice		sdhci_xenon		# Marvell Xenon SD/MMC controller
9956abac3fSWarner Loshdevice		aw_mmc			# Allwinner SD/MMC controller
10056abac3fSWarner Loshdevice		dwmmc
10156abac3fSWarner Loshdevice		dwmmc_altera
10256abac3fSWarner Loshdevice		rk_emmcphy
10356abac3fSWarner Losh
10456abac3fSWarner Losh# Serial (COM) ports
10556abac3fSWarner Loshdevice		uart_msm	# Qualcomm MSM UART driver
10656abac3fSWarner Loshdevice		uart_mu		# RPI3 aux port
10756abac3fSWarner Loshdevice		uart_mvebu	# Armada 3700 UART driver
10856abac3fSWarner Loshdevice		uart_ns8250	# ns8250-type UART driver
10956abac3fSWarner Loshdevice		uart_snps
11056abac3fSWarner Loshdevice		pl011
11156abac3fSWarner Losh
11256abac3fSWarner Losh# USB support
11356abac3fSWarner Loshdevice		aw_usbphy		# Allwinner USB PHY
11456abac3fSWarner Loshdevice		dwcotg			# DWC OTG controller
11556abac3fSWarner Loshdevice		ehci_mv			# Marvell EHCI USB interface
11656abac3fSWarner Losh
11756abac3fSWarner Losh# USB ethernet support
11856abac3fSWarner Loshdevice		muge
11956abac3fSWarner Loshdevice		smsc
12056abac3fSWarner Losh
12156abac3fSWarner Losh# Sound support
12256abac3fSWarner Loshdevice a10_codec
12356abac3fSWarner Losh
12456abac3fSWarner Losh# DMA controller
12556abac3fSWarner Loshdevice		a31_dmac
12656abac3fSWarner Losh
12756abac3fSWarner Losh# GPIO / PINCTRL
12856abac3fSWarner Loshdevice		a37x0_gpio	# Marvell Armada 37x0 GPIO controller
12956abac3fSWarner Loshdevice		aw_gpio		# Allwinner GPIO controller
13056abac3fSWarner Loshdevice		fdt_pinctrl
13156abac3fSWarner Loshdevice		mv_gpio		# Marvell GPIO controller
13256abac3fSWarner Loshdevice		mvebu_pinctrl	# Marvell Pinmux Controller
13356abac3fSWarner Loshdevice		rk_gpio		# RockChip GPIO Controller
13456abac3fSWarner Loshdevice		rk_pinctrl	# RockChip Pinmux Controller
13556abac3fSWarner Losh
13656abac3fSWarner Losh# I2C
13756abac3fSWarner Loshdevice		aw_rsb		# Allwinner Reduced Serial Bus
13856abac3fSWarner Loshdevice		bcm2835_bsc	# Broadcom BCM283x I2C bus
13956abac3fSWarner Loshdevice		twsi		# Allwinner I2C controller
14056abac3fSWarner Loshdevice		rk_i2c		# RockChip I2C controller
14156abac3fSWarner Losh
14256abac3fSWarner Losh# Clock and reset controllers
14356abac3fSWarner Loshdevice		aw_ccu		# Allwinner clock controller
14456abac3fSWarner Losh
14556abac3fSWarner Losh# Interrupt controllers
14656abac3fSWarner Loshdevice		aw_nmi		# Allwinner NMI support
14756abac3fSWarner Loshdevice		mv_cp110_icu	# Marvell CP110 ICU
14856abac3fSWarner Loshdevice		mv_ap806_gicp	# Marvell AP806 GICP
14956abac3fSWarner Losh
15056abac3fSWarner Losh# Real-time clock support
15156abac3fSWarner Loshdevice		aw_rtc		# Allwinner Real-time Clock
15256abac3fSWarner Loshdevice		mv_rtc		# Marvell Real-time Clock
15356abac3fSWarner Losh
15456abac3fSWarner Losh# Watchdog controllers
15556abac3fSWarner Loshdevice		aw_wdog		# Allwinner Watchdog
15656abac3fSWarner Losh
15756abac3fSWarner Losh# Power management controllers
15856abac3fSWarner Loshdevice		axp81x		# X-Powers AXP81x PMIC
15956abac3fSWarner Loshdevice		rk805		# RockChip RK805 PMIC
16056abac3fSWarner Losh
16156abac3fSWarner Losh# EFUSE
16256abac3fSWarner Loshdevice		aw_sid		# Allwinner Secure ID EFUSE
16356abac3fSWarner Losh
16456abac3fSWarner Losh# Thermal sensors
16556abac3fSWarner Loshdevice		aw_thermal	# Allwinner Thermal Sensor Controller
16656abac3fSWarner Loshdevice		mv_thermal	# Marvell Thermal Sensor Controller
16756abac3fSWarner Losh
16856abac3fSWarner Losh# SPI
16956abac3fSWarner Loshdevice		bcm2835_spi	# Broadcom BCM283x SPI bus
17056abac3fSWarner Losh
17156abac3fSWarner Losh# PWM
17256abac3fSWarner Loshdevice		pwm
17356abac3fSWarner Loshdevice		aw_pwm
17456abac3fSWarner Losh
17556abac3fSWarner Loshdevice		vt_efifb
17656abac3fSWarner Losh
17756abac3fSWarner Losh# EVDEV support
17856abac3fSWarner Loshoptions		EVDEV_SUPPORT		# evdev support in legacy drivers
17956abac3fSWarner Loshdevice		aw_cir
18056abac3fSWarner Losh
18156abac3fSWarner Losh# Pseudo devices.
18256abac3fSWarner Loshoptions 	EFIRT		# EFI Runtime Services
18356abac3fSWarner Losh
18456abac3fSWarner Losh# EXT_RESOURCES pseudo devices
18556abac3fSWarner Loshoptions 	EXT_RESOURCES
18656abac3fSWarner Loshdevice		clk
18756abac3fSWarner Loshdevice		phy
18856abac3fSWarner Loshdevice		hwreset
18956abac3fSWarner Loshdevice		nvmem
19056abac3fSWarner Loshdevice		regulator
19156abac3fSWarner Loshdevice		syscon
19256abac3fSWarner Loshdevice		aw_syscon
19356abac3fSWarner Losh
194fce985b0SIan Lepore# Misc devices.
195fce985b0SIan Leporedevice		pl330		# ARM PL330 dma controller
196fce985b0SIan Leporedevice		xdma		# xDMA framework for SoC on-chip dma controllers
197fce985b0SIan Lepore
19856abac3fSWarner Losh# Chip-specific errata
19956abac3fSWarner Loshoptions 	THUNDERX_PASS_1_1_ERRATA
20056abac3fSWarner Losh
20156abac3fSWarner Loshoptions 	FDT
20256abac3fSWarner Loshdevice		acpi
20356abac3fSWarner Losh
20456abac3fSWarner Losh# DTBs
20556abac3fSWarner Loshmakeoptions	MODULES_EXTRA="dtb/allwinner dtb/rockchip dtb/rpi"
20656abac3fSWarner Losh
20756abac3fSWarner Losh# Add CAMDEBUG stuff
20856abac3fSWarner Loshoptions 	CAMDEBUG
20956abac3fSWarner Loshoptions 	CAM_DEBUG_FLAGS=(CAM_DEBUG_INFO|CAM_DEBUG_PROBE|CAM_DEBUG_PERIPH)
21056abac3fSWarner Losh
21156abac3fSWarner Losh# bring in camified MMC too
21256abac3fSWarner Loshoptions		MMCCAM
21356abac3fSWarner Losh
21456abac3fSWarner Losh# arm64 doesn't support inb/outb, so disable chipset probing which needs it
21556abac3fSWarner Loshnooptions 	PPC_PROBE_CHIPSET
21656abac3fSWarner Losh
21756abac3fSWarner Losh# These cause weird issues, not sure why
21856abac3fSWarner Loshnooptions 	DEBUG
21956abac3fSWarner Losh
22056abac3fSWarner Losh# Makes assumptions about bus tags that aren't true on arm64
22156abac3fSWarner Loshnodevice	snd_cmi
22256abac3fSWarner Losh
22356abac3fSWarner Losh# arm64 didn't exist for these releases, so doesn't have the required compat
22456abac3fSWarner Losh# support. Just disable them because they are meaningless.
22556abac3fSWarner Loshnooptions 	COMPAT_FREEBSD4
22656abac3fSWarner Loshnooptions 	COMPAT_FREEBSD5
22756abac3fSWarner Loshnooptions 	COMPAT_FREEBSD6
22856abac3fSWarner Loshnooptions 	COMPAT_FREEBSD7
22956abac3fSWarner Loshnooptions 	COMPAT_FREEBSD9
23056abac3fSWarner Loshnooptions 	COMPAT_FREEBSD10
23156abac3fSWarner Losh
23256abac3fSWarner Losh# arm64 supports 32-bit FreeBSD/arm binaries (armv[67] ABIs)
23356abac3fSWarner Loshoptions 	COMPAT_FREEBSD32	# Compatible with FreeBSD/arm
234