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# 856abac3fSWarner Losh 956abac3fSWarner Losh# 1056abac3fSWarner Losh# We want LINT to cover profiling as well. 1156abac3fSWarner Losh# Except it's broken. 1256abac3fSWarner Losh#profile 2 1356abac3fSWarner Losh 1456abac3fSWarner Losh# 1556abac3fSWarner Losh# Enable the kernel DTrace hooks which are required to load the DTrace 1656abac3fSWarner Losh# kernel modules. 1756abac3fSWarner Losh# 1856abac3fSWarner Loshoptions KDTRACE_HOOKS 1956abac3fSWarner Losh 2056abac3fSWarner Losh# 2156abac3fSWarner Losh# Most of the following is copied from ARM64 GENERIC. 2256abac3fSWarner Loshcpu ARM64 2356abac3fSWarner Losh 2456abac3fSWarner Loshmakeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols 2556abac3fSWarner Loshmakeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support 2656abac3fSWarner Losh 2756abac3fSWarner Loshoptions PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. 2856abac3fSWarner Loshoptions KDTRACE_FRAME # Ensure frames are compiled in 2956abac3fSWarner Loshoptions VFP # Floating-point support 3056abac3fSWarner Loshoptions RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default 3156abac3fSWarner Losh 3256abac3fSWarner Losh# SoC support 3356abac3fSWarner Loshoptions SOC_ALLWINNER_A64 3456abac3fSWarner Loshoptions SOC_ALLWINNER_H5 35402c04afSAndrew Turneroptions SOC_ALLWINNER_H6 3656abac3fSWarner Loshoptions SOC_BRCM_BCM2837 370227a149SKyle Evansoptions SOC_BRCM_BCM2838 38402c04afSAndrew Turneroptions SOC_BRCM_NS2 392222b0e7SAndrew Turneroptions SOC_CAVM_THUNDERX 40402c04afSAndrew Turneroptions SOC_FREESCALE_IMX8 412222b0e7SAndrew Turneroptions SOC_HISI_HI6220 42402c04afSAndrew Turneroptions SOC_INTEL_STRATIX10 4356abac3fSWarner Loshoptions SOC_MARVELL_8K 44402c04afSAndrew Turneroptions SOC_NVIDIA_TEGRA210 45402c04afSAndrew Turneroptions SOC_NXP_LS 4656abac3fSWarner Loshoptions SOC_ROCKCHIP_RK3328 4756abac3fSWarner Loshoptions SOC_ROCKCHIP_RK3399 4856abac3fSWarner Loshoptions SOC_XILINX_ZYNQ 4956abac3fSWarner Losh 5056abac3fSWarner Losh# Timer drivers 5156abac3fSWarner Loshdevice a10_timer 5256abac3fSWarner Losh 5356abac3fSWarner Losh# Annapurna Alpine drivers 5456abac3fSWarner Loshdevice al_ccu # Alpine Cache Coherency Unit 5556abac3fSWarner Loshdevice al_nb_service # Alpine North Bridge Service 5656abac3fSWarner Loshdevice al_iofic # I/O Fabric Interrupt Controller 5756abac3fSWarner Loshdevice al_serdes # Serializer/Deserializer 5856abac3fSWarner Loshdevice al_udma # Universal DMA 5956abac3fSWarner Losh 6056abac3fSWarner Losh# Qualcomm Snapdragon drivers 6156abac3fSWarner Loshdevice qcom_gcc # Global Clock Controller 6256abac3fSWarner Losh 6356abac3fSWarner Losh# VirtIO support 6456abac3fSWarner Loshdevice virtio 6556abac3fSWarner Loshdevice virtio_pci 6656abac3fSWarner Loshdevice virtio_mmio 6756abac3fSWarner Loshdevice virtio_blk 6856abac3fSWarner Loshdevice vtnet 6956abac3fSWarner Losh 704d779448SXin LI# Google Virtual NIC 714d779448SXin LIdevice gve # Google Virtual NIC (gVNIC) driver 724d779448SXin LI 73b6a72a9fSAndrew Turner# Microsoft Hyper-V 74b6a72a9fSAndrew Turnerdevice hyperv 75b6a72a9fSAndrew Turner 7656abac3fSWarner Losh# CPU frequency control 7756abac3fSWarner Loshdevice cpufreq 7856abac3fSWarner Losh 79c3e77ab4SJohn Baldwin# Accelerated software crypto 80c3e77ab4SJohn Baldwindevice armv8crypto # ARMv8 OpenCrypto module 81c3e77ab4SJohn Baldwindevice ossl # OpenSSL OpenCrypto module 82c3e77ab4SJohn Baldwin 8356abac3fSWarner Losh# Bus drivers 8456abac3fSWarner Loshdevice al_pci # Annapurna Alpine PCI-E 8556abac3fSWarner Loshoptions PCI_HP # PCI-Express native HotPlug 8656abac3fSWarner Loshoptions PCI_IOV # PCI SR-IOV support 8756abac3fSWarner Losh 8856abac3fSWarner Losh# Ethernet NICs 8956abac3fSWarner Loshdevice mdio 9056abac3fSWarner Loshdevice awg # Allwinner EMAC Gigabit Ethernet 917113afc8SEmmanuel Vadotdevice axa # AMD Opteron A1100 integrated NIC 9256abac3fSWarner Loshdevice neta # Marvell Armada 370/38x/XP/3700 NIC 9356abac3fSWarner Loshdevice smc # SMSC LAN91C111 9456abac3fSWarner Loshdevice vnic # Cavium ThunderX NIC 9556abac3fSWarner Loshdevice al_eth # Annapurna Alpine Ethernet NIC 96*a01dc140SMitchell Hornedevice dwc # Synopsys Designware GMAC Ethernet 9756abac3fSWarner Loshdevice dwc_rk # Rockchip Designware 9856abac3fSWarner Loshdevice dwc_socfpga # Altera SOCFPGA Ethernet MAC 9971d10453SEric Joynerdevice ice # Intel 800 Series Physical Function 10071d10453SEric Joynerdevice ice_ddp # Intel 800 Series DDP Package 10156abac3fSWarner Losh 10256abac3fSWarner Losh# Etherswitch devices 10356abac3fSWarner Loshdevice e6000sw # Marvell mv88e6085 based switches 10456abac3fSWarner Losh 10556abac3fSWarner Losh# NVM Express (NVMe) support 10656abac3fSWarner Loshdevice nvme # base NVMe driver 10756abac3fSWarner Loshoptions NVME_USE_NVD=0 # prefer the cam(4) based nda(4) driver 10856abac3fSWarner Loshdevice nvd # expose NVMe namespaces as disks, depends on nvme 10956abac3fSWarner Losh 11056abac3fSWarner Losh# MMC/SD/SDIO Card slot support 11156abac3fSWarner Loshdevice sdhci_xenon # Marvell Xenon SD/MMC controller 11256abac3fSWarner Loshdevice aw_mmc # Allwinner SD/MMC controller 11356abac3fSWarner Loshdevice dwmmc 11456abac3fSWarner Loshdevice dwmmc_altera 11556abac3fSWarner Loshdevice rk_emmcphy 11656abac3fSWarner Losh 11756abac3fSWarner Losh# Serial (COM) ports 11856abac3fSWarner Loshdevice uart_msm # Qualcomm MSM UART driver 11956abac3fSWarner Loshdevice uart_mu # RPI3 aux port 12056abac3fSWarner Loshdevice uart_mvebu # Armada 3700 UART driver 12156abac3fSWarner Loshdevice uart_ns8250 # ns8250-type UART driver 12256abac3fSWarner Loshdevice uart_snps 12356abac3fSWarner Loshdevice pl011 12456abac3fSWarner Losh 125b889b90aSAndrew Turner# Early printf using the pl011 uart under the Arm FVP 126b889b90aSAndrew Turneroptions SOCDEV_PA=0x1c090000 127b889b90aSAndrew Turneroptions EARLY_PRINTF=pl011 128b889b90aSAndrew Turner 12956abac3fSWarner Losh# USB support 13056abac3fSWarner Loshdevice aw_usbphy # Allwinner USB PHY 13156abac3fSWarner Loshdevice dwcotg # DWC OTG controller 13256abac3fSWarner Loshdevice ehci_mv # Marvell EHCI USB interface 13356abac3fSWarner Losh 13456abac3fSWarner Losh# USB ethernet support 13556abac3fSWarner Loshdevice muge 13656abac3fSWarner Loshdevice smsc 13756abac3fSWarner Losh 13856abac3fSWarner Losh# Sound support 13956abac3fSWarner Loshdevice a10_codec 14056abac3fSWarner Losh 14156abac3fSWarner Losh# DMA controller 14256abac3fSWarner Loshdevice a31_dmac 14356abac3fSWarner Losh 14456abac3fSWarner Losh# GPIO / PINCTRL 14556abac3fSWarner Loshdevice a37x0_gpio # Marvell Armada 37x0 GPIO controller 14656abac3fSWarner Loshdevice aw_gpio # Allwinner GPIO controller 14756abac3fSWarner Loshdevice fdt_pinctrl 14856abac3fSWarner Loshdevice mv_gpio # Marvell GPIO controller 14956abac3fSWarner Loshdevice mvebu_pinctrl # Marvell Pinmux Controller 15056abac3fSWarner Loshdevice rk_gpio # RockChip GPIO Controller 15156abac3fSWarner Loshdevice rk_pinctrl # RockChip Pinmux Controller 15256abac3fSWarner Losh 15356abac3fSWarner Losh# I2C 15456abac3fSWarner Loshdevice aw_rsb # Allwinner Reduced Serial Bus 15556abac3fSWarner Loshdevice bcm2835_bsc # Broadcom BCM283x I2C bus 15656abac3fSWarner Loshdevice twsi # Allwinner I2C controller 15756abac3fSWarner Loshdevice rk_i2c # RockChip I2C controller 15856abac3fSWarner Losh 15956abac3fSWarner Losh# Clock and reset controllers 16056abac3fSWarner Loshdevice aw_ccu # Allwinner clock controller 16156abac3fSWarner Losh 16256abac3fSWarner Losh# Interrupt controllers 16356abac3fSWarner Loshdevice aw_nmi # Allwinner NMI support 16456abac3fSWarner Loshdevice mv_cp110_icu # Marvell CP110 ICU 16556abac3fSWarner Loshdevice mv_ap806_gicp # Marvell AP806 GICP 16656abac3fSWarner Losh 16756abac3fSWarner Losh# Real-time clock support 16856abac3fSWarner Loshdevice aw_rtc # Allwinner Real-time Clock 16956abac3fSWarner Loshdevice mv_rtc # Marvell Real-time Clock 17056abac3fSWarner Losh 17156abac3fSWarner Losh# Watchdog controllers 17256abac3fSWarner Loshdevice aw_wdog # Allwinner Watchdog 17356abac3fSWarner Losh 17456abac3fSWarner Losh# Power management controllers 17556abac3fSWarner Loshdevice axp81x # X-Powers AXP81x PMIC 17656abac3fSWarner Loshdevice rk805 # RockChip RK805 PMIC 17756abac3fSWarner Losh 17856abac3fSWarner Losh# EFUSE 17956abac3fSWarner Loshdevice aw_sid # Allwinner Secure ID EFUSE 18056abac3fSWarner Losh 18156abac3fSWarner Losh# Thermal sensors 18256abac3fSWarner Loshdevice aw_thermal # Allwinner Thermal Sensor Controller 18356abac3fSWarner Loshdevice mv_thermal # Marvell Thermal Sensor Controller 18456abac3fSWarner Losh 18556abac3fSWarner Losh# SPI 18656abac3fSWarner Loshdevice bcm2835_spi # Broadcom BCM283x SPI bus 18756abac3fSWarner Losh 18856abac3fSWarner Losh# PWM 18956abac3fSWarner Loshdevice pwm 19056abac3fSWarner Loshdevice aw_pwm 19156abac3fSWarner Losh 19256abac3fSWarner Loshdevice vt_efifb 193f8c451d2SAndrew Turnerdevice vt_simplefb 19456abac3fSWarner Losh 19556abac3fSWarner Losh# EVDEV support 19656abac3fSWarner Loshoptions EVDEV_SUPPORT # evdev support in legacy drivers 19756abac3fSWarner Loshdevice aw_cir 19856abac3fSWarner Losh 19956abac3fSWarner Losh# Pseudo devices. 20056abac3fSWarner Loshoptions EFIRT # EFI Runtime Services 20156abac3fSWarner Loshdevice clk 20256abac3fSWarner Loshdevice phy 20356abac3fSWarner Loshdevice hwreset 20456abac3fSWarner Loshdevice nvmem 20556abac3fSWarner Loshdevice regulator 20656abac3fSWarner Loshdevice syscon 20756abac3fSWarner Loshdevice aw_syscon 20856abac3fSWarner Losh 20990b8c0eaSEmmanuel Vadot# Backlight subsystem 21090b8c0eaSEmmanuel Vadotdevice backlight 21190b8c0eaSEmmanuel Vadot 212fce985b0SIan Lepore# Misc devices. 213fce985b0SIan Leporedevice pl330 # ARM PL330 dma controller 214fce985b0SIan Leporedevice xdma # xDMA framework for SoC on-chip dma controllers 215fce985b0SIan Lepore 21656abac3fSWarner Losh# Chip-specific errata 21756abac3fSWarner Loshoptions THUNDERX_PASS_1_1_ERRATA 21856abac3fSWarner Losh 21956abac3fSWarner Loshoptions FDT 22056abac3fSWarner Loshdevice acpi 22156abac3fSWarner Losh 22256abac3fSWarner Losh# DTBs 22356abac3fSWarner Loshmakeoptions MODULES_EXTRA="dtb/allwinner dtb/rockchip dtb/rpi" 22456abac3fSWarner Losh 22556abac3fSWarner Losh# Add CAMDEBUG stuff 22656abac3fSWarner Loshoptions CAMDEBUG 22756abac3fSWarner Loshoptions CAM_DEBUG_FLAGS=(CAM_DEBUG_INFO|CAM_DEBUG_PROBE|CAM_DEBUG_PERIPH) 22856abac3fSWarner Losh 22956abac3fSWarner Losh# bring in camified MMC too 23056abac3fSWarner Loshoptions MMCCAM 23156abac3fSWarner Losh 23256abac3fSWarner Losh# arm64 doesn't support inb/outb, so disable chipset probing which needs it 23356abac3fSWarner Loshnooptions PPC_PROBE_CHIPSET 23456abac3fSWarner Losh 23556abac3fSWarner Losh# These cause weird issues, not sure why 23656abac3fSWarner Loshnooptions DEBUG 23756abac3fSWarner Losh 23856abac3fSWarner Losh# Makes assumptions about bus tags that aren't true on arm64 23956abac3fSWarner Loshnodevice snd_cmi 24056abac3fSWarner Losh 24156abac3fSWarner Losh# arm64 didn't exist for these releases, so doesn't have the required compat 24256abac3fSWarner Losh# support. Just disable them because they are meaningless. 24356abac3fSWarner Loshnooptions COMPAT_FREEBSD4 24456abac3fSWarner Loshnooptions COMPAT_FREEBSD5 24556abac3fSWarner Loshnooptions COMPAT_FREEBSD6 24656abac3fSWarner Loshnooptions COMPAT_FREEBSD7 24756abac3fSWarner Loshnooptions COMPAT_FREEBSD9 24856abac3fSWarner Loshnooptions COMPAT_FREEBSD10 24956abac3fSWarner Losh 25056abac3fSWarner Losh# arm64 supports 32-bit FreeBSD/arm binaries (armv[67] ABIs) 25156abac3fSWarner Loshoptions COMPAT_FREEBSD32 # Compatible with FreeBSD/arm 2526dfd7f4bSMatt Macy 2536dfd7f4bSMatt Macy##################################################################### 2546dfd7f4bSMatt Macy# ZFS support 2556dfd7f4bSMatt Macy 2566dfd7f4bSMatt Macyoptions ZFS 2570f0379faSVladimir Kondratyev 2580f0379faSVladimir Kondratyev# 2590f0379faSVladimir Kondratyev# HID-over-I2C support 2600f0379faSVladimir Kondratyev# 2610f0379faSVladimir Kondratyevdevice iichid # HID-over-I2C support 2620f0379faSVladimir Kondratyevoptions IICHID_DEBUG # Enable HID-over-I2C debug messages 2630f0379faSVladimir Kondratyevoptions IICHID_SAMPLING # Workaround missing GPIO INTR support 264