1# 2# $NetBSD: GENERIC64,v 1.177 2021/03/01 18:12:58 jakllsch Exp $ 3# 4# GENERIC ARM (aarch64) kernel 5# 6 7include "arch/evbarm/conf/std.generic64" 8include "arch/evbarm/conf/files.generic64" 9include "arch/evbarm/conf/GENERIC.common" 10 11maxusers 64 12 13options CPU_CORTEX 14options CPU_THUNDERX 15options SOC_BCM2837 16options SOC_MESONG12 17options SOC_MESONGXBB 18options SOC_MESONGXL 19options SOC_RK3328 20options SOC_RK3399 21options SOC_SUN50I_A64 22options SOC_SUN50I_H5 23options SOC_SUN50I_H6 24options SOC_TEGRA210 25options SOC_VIRT 26options MULTIPROCESSOR 27 28pseudo-device openfirm # /dev/openfirm 29 30#options DIAGNOSTIC # internal consistency checks 31#options DEBUG 32#options LOCKDEBUG 33#options VERBOSE_INIT_ARM # verbose bootstrapping messages 34options INCLUDE_CONFIG_FILE 35#options UVMHIST # kernhist for uvm/pmap subsystems 36#options UVMHIST_PRINT,KERNHIST_DELAY=0 37#options PCI_CONFIG_DUMP # verbosely dump PCI config space 38 39# EARLYCONS is required for early init messages from VERBOSE_INIT_ARM. 40#options EARLYCONS=bcm2837, CONSADDR=0x3f215040 41#options EARLYCONS=bcm2711, CONSADDR=0xfe215040 42#options EARLYCONS=meson, CONSADDR=0xc81004c0 43#options EARLYCONS=rk3328, CONSADDR=0xff130000 44#options EARLYCONS=rk3399, CONSADDR=0xff1a0000 45#options EARLYCONS=sunxi, CONSADDR=0x01c28000 46#options EARLYCONS=tegra, CONSADDR=0x70006000 47#options EARLYCONS=thunderx, CONSADDR=0x87e024000000 48#options EARLYCONS=virt, CONSADDR=0x09000000 49 50# Privileged Access Never (PAN). 51options ARMV81_PAN 52 53# Pointer Authentication (PAC). 54#makeoptions ARMV83_PAC=1 55#options ARMV83_PAC 56 57# Branch Target Identification (BTI). 58#makeoptions ARMV85_BTI=1 59#options ARMV85_BTI 60 61# Kernel Undefined Behavior Sanitizer (kUBSan). Use UBSAN_ALWAYS_FATAL 62# if you want panics instead of warnings. 63#options KUBSAN # mandatory 64#options UBSAN_ALWAYS_FATAL # optional 65 66# Kernel Address Sanitizer (kASan). The quarantine is optional and can 67# help KASAN find more use-after-frees. Use KASAN_PANIC if you want panics 68# instead of warnings. 69#makeoptions KASAN=1 # mandatory 70#options KASAN # mandatory 71#options POOL_QUARANTINE # optional 72#options KASAN_PANIC # optional 73 74# These options enable verbose messages for several subsystems. 75# Warning, these may compile large string tables into the kernel! 76#options ACPIVERBOSE # verbose ACPI configuration messages 77#options MIIVERBOSE # verbose PHY autoconfig messages 78#options PCIVERBOSE # verbose PCI device autoconfig messages 79#options PCMCIAVERBOSE # verbose PCMCIA configuration messages 80#options SCSIVERBOSE # human readable SCSI error messages 81#options USBVERBOSE # verbose USB device autoconfig messages 82 83makeoptions DEBUG="-g" # compile full symbol table 84makeoptions COPY_SYMTAB=1 85 86config netbsd root on ? type ? 87 88options COMPAT_NETBSD32 89options EXEC_ELF32 90 91# EFI runtime support 92options EFI_RUNTIME 93 94# Device tree support 95armfdt0 at root 96simplebus* at fdt? pass 0 97 98# ACPI support 99acpifdt* at fdt? pass 1 100acpi* at acpifdt? 101acpiacad* at acpi? 102acpibat* at acpi? 103acpibut* at acpi? 104acpicppc* at acpi? 105acpipcd* at acpi? 106acpipcc* at acpi? 107acpifan* at acpi? 108acpiged* at acpi? 109acpilid* at acpi? 110acpitz* at acpi? 111 112# CPUs 113cpus* at fdt? pass 0 114cpu* at fdt? pass 0 115cpu* at acpi? 116 117vmt* at fdt? # VMware Tools 118 119# Performance monitors 120armpmu* at fdt? 121pseudo-device tprof 122 123# CPU frequency scaling 124cpufreqdt* at cpu? 125 126# Power State Coordination Interface (PSCI) 127psci* at fdt? pass 0 128 129fclock* at fdt? pass 1 130ffclock* at fdt? pass 1 131fregulator* at fdt? pass 4 132gregulator* at fdt? pass 4 133pregulator* at fdt? pass 4 134gpiokeys* at fdt? 135wskbd* at gpiokeys? console ? mux 1 136gpioleds* at fdt? 137 138# System Controller 139syscon* at fdt? pass 1 # Generic System Controller 140sunxisramc* at fdt? pass 1 # Allwinner System Control 141 142# Timer 143gtmr* at fdt? pass 1 # ARM Generic Timer 144gtmr* at acpi? 145armgtmr0 at gtmr? 146tegratimer* at fdt? # Timers 147 148# Watchdog 149bcmpmwdog* at fdt? # Broadcom BCM283x watchdog 150dwcwdt* at fdt? # DesignWare watchdog 151mesongxwdt* at fdt? # Amlogic Meson GX watchdog 152sbsawdt* at acpi? # ARM SBSA-compliant watchdog 153sunxiwdt* at fdt? # Allwinner watchdog 154 155# Interrupt controller 156bcmicu* at fdt? pass 1 # Broadcom BCM283x ICU 157tegralic* at fdt? pass 1 # NVIDIA Tegra LIC 158gic* at fdt? pass 1 # ARM GICv2 159gic* at acpi? 160armgic0 at gic? 161gicvthree* at fdt? pass 1 # ARM GICv3 162gicvthree* at acpi? 163imx7gpc* at fdt? pass 2 # IMX GPCv2 164sunxinmi* at fdt? pass 2 # Allwinner NMI / R_INTC 165 166# Memory controller 167tegramc* at fdt? pass 4 # NVIDIA Tegra MC 168 169# Firmware devices 170bcmmbox* at fdt? # Broadcom VideoCore IV mailbox 171bcmmbox* at acpi? 172vcmbox* at bcmmbox? 173qemufwcfg* at fdt? # QEMU Firmware Configuration device 174qemufwcfg* at acpi? 175 176# DMA controller 177bcmdmac* at fdt? # Broadcom BCM283x DMA controller 178sun6idma* at fdt? pass 4 # Allwinner DMA controller (sun6i) 179tegraapbdma* at fdt? pass 4 # NVIDIA Tegra APB DMA 180 181# FUSE controller 182sunxisid* at fdt? pass 4 # Allwinner SID 183tegrafuse* at fdt? pass 4 # NVIDIA Tegra FUSE 184 185# Power management controller 186tegrapmc* at fdt? pass 4 # NVIDIA Tegra PMC 187 188# Clock and Reset controller 189bcmcprman* at fdt? pass 1 # Broadcom BCM283x Clock Manager 190bcmaux* at fdt? pass 1 # Broadcom BCM283x Aux Periph Clocks 191g12aoclkc* at fdt? pass 2 # Amlogic Meson G12 AO clock controller 192g12clkc* at fdt? pass 2 # Amlogic Meson G12 EE clock controller 193gxbbaoclkc* at fdt? pass 2 # Amlogic Meson GXBB AO clock controller 194gxbbclkc* at fdt? pass 2 # Amlogic Meson GXBB/GXL EE clock controller 195imx8mqccm* at fdt? pass 2 # NXP iMX8MQ CCM 196mesonresets* at fdt? pass 2 # Amlogic Meson misc. clock resets 197rkcru* at fdt? pass 2 # Rockchip RK3328 CRU 198sun8ih3ccu* at fdt? pass 2 # Allwinner H3/H5 CCU 199sun8ih3rccu* at fdt? pass 2 # Allwinner H3/H5 CCU (PRCM) 200sun50ia64ccu* at fdt? pass 2 # Allwinner A64 CCU 201sun50ia64rccu* at fdt? pass 2 # Allwinner A64 CCU (PRCM) 202sun50ih6ccu* at fdt? pass 2 # Allwinner H6 CCU 203sun50ih6rccu* at fdt? pass 2 # Allwinner H6 CCU (PRCM) 204sunxide2ccu* at fdt? pass 3 # Allwinner DE2 clock controller 205sunxiresets* at fdt? pass 1 # Allwinner misc. resets 206sunxigates* at fdt? pass 1 # Allwinner misc. gates 207sunxigmacclk* at fdt? pass 2 # Allwinner GMAC MII/RGMII clock mux 208tegra210car* at fdt? pass 3 # NVIDIA Tegra CAR (T210) 209 210# GPIO controller 211bcmgpio* at fdt? pass 3 # Broadcom BCM283x GPIO 212imxgpio* at fdt? pass 3 # IMX GPIO 213mesonpinctrl* at fdt? pass 2 # Amlogic Meson GPIO 214plgpio* at fdt? # ARM PrimeCell PL061 GPIO 215plgpio* at acpi? 216sunxigpio* at fdt? pass 3 # Allwinner GPIO 217tegragpio* at fdt? pass 2 # NVIDIA Tegra GPIO 218rkgpio* at rkiomux? # Rockchip GPIO 219gpio* at gpiobus? 220 221# PWM controller 222mesonpwm* at fdt? pass 3 # Amlogic PWM 223rkpwm* at fdt? pass 3 # Rockchip PWM 224sunxipwm* at fdt? pass 3 # Allwinner PWM 225 226# MPIO / Pinmux 227imxiomux* at fdt? pass 2 # IMX IOMUX 228rkiomux* at fdt? pass 3 # Rockchip IOMUX 229tegrapinmux* at fdt? # NVIDIA Tegra MPIO 230 231# XUSB PADCTL 232tegra210xpad* at fdt? # NVIDIA Tegra XUSB PADCTL (T210) 233tegra210xphy* at tegra210xpad? 234 235# PCIE 236pcihost* at fdt? # Generic PCI host controller 237acpipchb* at acpi? # ACPI PCIe host bridge 238rkpcie* at fdt? # Rockchip AXI PCIE 239rkpciephy* at fdt? pass 9 # Rockchip AXI PCIE PHY 240tegrapcie0 at fdt? # NVIDIA Tegra PCIE 241pci* at pcibus? 242ppb* at pci? dev ? function ? 243pci* at ppb? 244 245# Ethernet 246awge* at fdt? # DesignWare Gigabit Ethernet 247emac* at fdt? # Allwinner Gigabit Ethernet (EMAC) 248enet* at fdt? # IMX FEC 249genet* at acpi? # Broadcom GENET v5 250genet* at fdt? 251#scx* at acpi? # Socionext Gigabit Ethernet 252#scx* at fdt? 253aq* at pci? dev ? function ? # Aquantia AQC 10 gigabit 254ena* at pci? dev ? function ? # Amazon.com Elastic Network Adapter 255mcx* at pci? dev ? function ? # Mellanox 5th generation Ethernet 256mskc* at pci? dev ? function ? # Marvell Yukon 2 Gigabit Ethernet 257msk* at mskc? 258re* at pci? dev ? function ? # Realtek RTL8111GS 259rge* at pci? dev ? function ? # Realtek 8125 260vmx* at pci? dev ? function ? # VMware VMXNET3 261wm* at pci? dev ? function ? # Intel Gigabit Ethernet 262 263# MII/PHY support 264atphy* at mii? phy ? # Attansic/Atheros PHYs 265brgphy* at mii? phy ? # Broadcom BCM5400-family PHYs 266exphy* at mii? phy ? # 3Com internal PHYs 267gentbi* at mii? phy ? # Generic Ten-Bit 1000BASE-[CLS]X PHYs 268glxtphy* at mii? phy ? # Level One LXT-1000 PHYs 269gphyter* at mii? phy ? # NS83861 Gig-E PHY 270gxlphy* at mii? phy ? # Amlogic Meson GX internal PHY 271icsphy* at mii? phy ? # Integrated Circuit Systems ICS189x 272igphy* at mii? phy ? # Intel IGP01E1000 273ihphy* at mii? phy ? # Intel 82577 PHYs 274ikphy* at mii? phy ? # Intel 82563 PHYs 275inphy* at mii? phy ? # Intel 82555 PHYs 276iophy* at mii? phy ? # Intel 82553 PHYs 277lxtphy* at mii? phy ? # Level One LXT-970 PHYs 278makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs 279nsphy* at mii? phy ? # NS83840 PHYs 280nsphyter* at mii? phy ? # NS83843 PHYs 281pnaphy* at mii? phy ? # generic HomePNA PHYs 282rdcphy* at mii? phy ? # RDC R6040 10/100 PHY 283rgephy* at mii? phy ? # Realtek 8169S/8110S internal PHYs 284rlphy* at mii? phy ? # Realtek 8139/8201L PHYs 285smscphy* at mii? phy ? # SMSC LAN87xx PHYs 286sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs 287tlphy* at mii? phy ? # ThunderLAN PHYs 288tqphy* at mii? phy ? # TDK Semiconductor PHYs 289urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs 290ukphy* at mii? phy ? # generic unknown PHYs 291 292# Mini-PCIe Wireless 293#options ATHHAL_AR5212,ATHHAL_RF2425 # AR5BHB63 294#ath* at pci? dev ? function ? # Atheros IEEE 802.11 295#athn* at pci? dev ? function ? # Atheros IEEE 802.11 296 297# UART 298com* at fdt? pass 4 # UART 299com* at acpi? 300imxuart* at fdt? pass 4 # IMX UART 301options IMXUARTCONSOLE 302mesonuart* at fdt? pass 4 # Amlogic Meson UART 303plcom* at fdt? pass 4 # ARM PL011 UART 304plcom* at acpi? 305puc* at pci? dev ? function ? # PCI "universal" comm. cards 306com* at puc? port ? 307 308# I2C controllers 309options I2C_MAX_ADDR=0xfff 310bsciic* at fdt? # Broadcom BCM283x Serial Control 311bsciic* at acpi? 312dwiic* at fdt? # Designware I2C 313dwiic* at acpi? 314imxi2c* at fdt? pass 4 # IMX I2C 315nxpiic* at acpi? # NXP Layerscape I2C 316rkiic* at fdt? pass 4 # Rockchip I2C 317sunxirsb* at fdt? pass 4 # Allwinner RSB 318sunxitwi* at fdt? # Allwinner TWI 319tegrai2c* at fdt? pass 4 # NVIDIA Tegra I2C 320#sniiic* at fdt? # Socionext SC2A11 I2C 321#sniiic* at acpi? 322iicmux* at fdt? pass 5 # I2C mux virtual controllers 323iic* at i2cbus? 324 325# I2C devices 326titemp* at iic? 327seeprom* at iic? 328spdmem* at iic? # memory module SPD EEPROM decoder 329as3722pmic* at iic? 330as3722reg* at as3722pmic? 331axppmic* at iic? # X-Powers AXP Power Management IC 332axpreg* at axppmic? 333cwfg* at iic? # CellWise CW2015 Fuel Gauge IC 334es8316ac* at iic? # Everest Semi ES8316 Audio CODEC 335fan53555reg* at iic? # FAN53555 / SY82x regulator 336max77620pmic* at iic? 337pcaiicmux* at iic? # PCA954x / PCA984x I2C switch / mux 338pcf8563rtc* at iic? # PCF8563 RTC 339rkpmic* at iic? # Rockchip Power Management IC 340rkreg* at rkpmic? 341tcagpio* at iic? 342 343# Random number generators 344amdccp* at fdt? # AMD Cryptograhic Coprocessor RNG 345amdccp* at acpi? 346bcmrng* at fdt? # Broadcom BCM283x RNG 347mesonrng* at fdt? # Amlogic Meson RNG 348sun8icrypto* at fdt? # Allwinner Crypto Engine 349rkv1crypto* at fdt? # Rockchip Crypto v1 350 351# RTC 352plrtc* at fdt? # ARM PrimeCell RTC 353sunxirtc* at fdt? pass 4 # Allwinner RTC 354tegrartc* at fdt? # NVIDIA Tegra RTC 355 356# SDMMC 357bcmsdhost* at fdt? # Broadcom BCM283x SD Host Interface 358dwcmmc* at fdt? # Designware SD/MMC 359mesongxmmc* at fdt? # Amlogic Meson GX eMMC/SD/SDIO controller 360mmcpwrseq* at fdt? pass 5 # Simple MMC power sequence provider 361rkemmcphy* at fdt? # Rockchip eMMC PHY 362sdhc* at fdt? # SD Host Controller Interface 363sdhc* at acpi? 364sunximmc* at fdt? # Allwinner SD/MMC 365#sniemmc* at fdt? # Socionext SC2A11 eMMC 366#sniemmc* at acpi? 367sdmmc* at sdmmcbus? 368ld0 at sdmmc0 369ld1 at sdmmc1 370ld2 at sdmmc2 371ld3 at sdmmc3 372ld* at sdmmc? 373bwfm* at sdmmc? # Broadcom BCM43xxx WiFi Interface 374 375# SATA 376ahcisata* at fdt? # AHCI SATA 377ahcisata* at acpi? 378ahcisata* at pci? dev ? function ? 379atabus* at ata? 380atapibus* at atapi? 381wd* at atabus? drive ? 382cd* at atapibus? drive ? 383 384# NVMe 385nvme* at pci? dev ? function ? 386ld* at nvme? nsid ? 387 388# SPI controllers 389bcmspi* at fdt? # Broadcom BCM283x SPI 390rkspi* at fdt? # Rockchip SPI 391sun6ispi* at fdt? # Allwinner SPI 392spi* at spibus? 393m25p* at spi? 394spiflash* at spiflashbus? 395 396# Broadcom VCHIQ, etc 397vchiq0 at fdt? 398vcaudio0 at vchiq0 399 400# Audio support 401hdaudio* at fdt? # Intel HDA 402hdaudio* at pci? dev ? function ? 403hdafg* at hdaudiobus? 404options HDAUDIOVERBOSE 405options HDAUDIO_ENABLE_HDMI 406options HDAUDIO_ENABLE_DISPLAYPORT 407ausoc* at fdt? # Simple SoC audio card 408simpleamp* at fdt? # Simple amplifier 409spdiftx* at fdt? # SPDIF transmitter 410rki2s* at fdt? # Rockchip I2S/PCM 411sunxicodec* at fdt? # Allwinner audio codec 412sun8icodec* at fdt? # Allwinner audio codec (sun8i/sun50i) 413h3codec* at fdt? # Allwinner H3 audio codec (analog part) 414a64acodec* at fdt? # Allwinner A64 audio codec (analog part) 415sunxii2s* at fdt? # Allwinner I2S/PCM 416audio* at audiobus? 417 418spkr* at audio? # PC speaker (synthesized) 419 420# HDMI CEC 421tegracec0 at fdt? # NVIDIA Tegra HDMI CEC 422hdmicec* at hdmicecbus? 423 424# Display 425anxdp* at fdt? # Analogix-based (e)DP 426anxedp* at iic? # Analogix eDP TX 427dispcon* at fdt? # Display connector devices 428panel* at fdt? # Display panels 429dwhdmi* at fdt? # Designware HDMI TX 430rkdrm* at fdt? pass 5 # Rockchip DRM master 431rkfb* at rkdrm? # Rockchip DRM framebuffer 432rkvop* at fdt? # Rockchip Visual Output Processor 433sunxide2bus* at fdt? pass 4 # Allwinner DE2 bus 434sunxidrm* at fdt? pass 5 # Allwinner Display Pipeline 435sunxifb* at sunxidrm? # Allwinner DRM framebuffer 436sunxihdmiphy* at fdt? pass 9 # Allwinner HDMI TX PHY 437sunxilcdc* at fdt? # Allwinner DE2 timing controller 438sunximixer* at fdt? # Allwinner DE2 mixer 439#tegradrm* at fdt? # NVIDIA Tegra Display 440#tegrafb* at tegrafbbus? 441genfb* at fdt? # Simple Framebuffer 442wsdisplay* at wsemuldisplaydev? 443options VCONS_DRAW_INTR 444options WSEMUL_VT100 445options WS_DEFAULT_FG=WSCOL_WHITE 446options WS_DEFAULT_BG=WSCOL_BLACK 447options WS_KERNEL_FG=WSCOL_GREEN 448options WS_KERNEL_BG=WSCOL_BLACK 449options WSDISPLAY_COMPAT_PCVT 450options WSDISPLAY_COMPAT_SYSCONS 451options WSDISPLAY_COMPAT_USL 452options WSDISPLAY_COMPAT_RAWKBD 453options WSDISPLAY_DEFAULTSCREENS=4 454options WSDISPLAY_MULTICONS 455options WSDISPLAY_SCROLLSUPPORT 456pseudo-device wsmux 457pseudo-device wsfont 458options FONT_BOLD8x16 459options FONT_BOLD16x32 460 461# GPU 462#nouveau* at fdt? # NVIDIA GPU 463#nouveau* at pci? dev ? function ? 464#nouveaufb* at nouveaufbbus? 465radeon* at pci? dev ? function ? # AMD Radeon 466radeondrmkmsfb* at radeonfbbus? 467 468# Backlight 469pwmbacklight* at fdt? # PWM Backlight controls 470 471# Fan 472pwmfan* at fdt? # PWM Fan controls 473 474# Thermal throttling controller 475mesonthermal* at fdt? # Amlogic thermal sensor controller 476sunxithermal* at fdt? # Allwinner thermal sensor controller 477tegrasoctherm* at fdt? # NVIDIA Tegra SOC_THERM 478rktsadc* at fdt? # RockChip TSASC 479 480# USB 481imx8mqusbphy* at fdt? pass 9 # IMX USB PHY 482mesonusbctrl* at fdt? # Amlogic Meson USB-Glue (dwc2 and dwc3) 483mesonusbphy* at fdt? pass 9 # Amlogic Meson USB2 PHY 484mesong12u2phy* at fdt? pass 9 # Amlogic Meson G12 USB2 PHY 485mesong12u3pphy* at fdt? pass 9 # Amlogic Meson G12 USB3/PCIe PHY 486mesongxlu2phy* at fdt? pass 9 # Amlogic Meson GXL USB2 PHY 487mesongxlu3phy* at fdt? pass 9 # Amlogic Meson GXL USB3 PHY 488rkusb* at fdt? pass 9 # Rockchip USB PHY 489rkusbphy* at rkusb? 490sunxiusbphy* at fdt? pass 9 # Allwinner USB PHY 491sunxiusb3phy* at fdt? pass 9 # Allwinner USB3 PHY 492tegrausbphy* at fdt? # NVIDIA Tegra USB PHY 493dwctwo* at fdt? # Designware USB DRD 494ehci* at fdt? # EHCI 495ehci* at pci? # EHCI 496ehci* at acpi? # EHCI 497motg* at fdt? # Mentor Graphics USB OTG 498ohci* at fdt? # OHCI 499ohci* at pci? # OHCI 500xhci* at fdt? # XHCI 501xhci* at pci? # XHCI 502xhci* at acpi? # XHCI 503usb* at usbus? 504 505include "dev/usb/usbdevices.config" 506midi* at midibus? 507pseudo-device sequencer # MIDI sequencer 508 509# Virtio devices 510virtio* at fdt? # Virtio MMIO device 511virtio* at acpi? 512virtio* at pci? dev ? function ? 513#viomb* at virtio? # Virtio memory balloon device 514ld* at virtio? # Virtio disk device 515vioif* at virtio? # Virtio network device 516viornd* at virtio? # Virtio entropy device 517vioscsi* at virtio? # Virtio SCSI device 518 519# SCSI controllers 520mpt* at pci? dev ? function ? 521 522# SCSI bus support 523scsibus* at scsi? 524sd* at scsibus? target ? lun ? # SCSI disk drives 525 526cinclude "arch/evbarm/conf/GENERIC64.local" 527