GENERIC64 revision 1.182
1# 2# $NetBSD: GENERIC64,v 1.182 2021/08/26 17:08:34 thorpej 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 255ixg* at pci? dev ? function ? # Intel 8259x 10 gigabit 256ixv* at pci? dev ? function ? # Intel 8259x 10G virtual function 257mcx* at pci? dev ? function ? # Mellanox 5th generation Ethernet 258mskc* at pci? dev ? function ? # Marvell Yukon 2 Gigabit Ethernet 259msk* at mskc? 260re* at pci? dev ? function ? # Realtek RTL8111GS 261rge* at pci? dev ? function ? # Realtek 8125 262vmx* at pci? dev ? function ? # VMware VMXNET3 263wm* at pci? dev ? function ? # Intel Gigabit Ethernet 264 265# MII/PHY support 266atphy* at mii? phy ? # Attansic/Atheros PHYs 267brgphy* at mii? phy ? # Broadcom BCM5400-family PHYs 268exphy* at mii? phy ? # 3Com internal PHYs 269gentbi* at mii? phy ? # Generic Ten-Bit 1000BASE-[CLS]X PHYs 270glxtphy* at mii? phy ? # Level One LXT-1000 PHYs 271gphyter* at mii? phy ? # NS83861 Gig-E PHY 272gxlphy* at mii? phy ? # Amlogic Meson GX internal PHY 273icsphy* at mii? phy ? # Integrated Circuit Systems ICS189x 274igphy* at mii? phy ? # Intel IGP01E1000 275ihphy* at mii? phy ? # Intel 82577 PHYs 276ikphy* at mii? phy ? # Intel 82563 PHYs 277inphy* at mii? phy ? # Intel 82555 PHYs 278iophy* at mii? phy ? # Intel 82553 PHYs 279lxtphy* at mii? phy ? # Level One LXT-970 PHYs 280makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs 281nsphy* at mii? phy ? # NS83840 PHYs 282nsphyter* at mii? phy ? # NS83843 PHYs 283pnaphy* at mii? phy ? # generic HomePNA PHYs 284rdcphy* at mii? phy ? # RDC R6040 10/100 PHY 285rgephy* at mii? phy ? # Realtek 8169S/8110S internal PHYs 286rlphy* at mii? phy ? # Realtek 8139/8201L PHYs 287smscphy* at mii? phy ? # SMSC LAN87xx PHYs 288sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs 289tlphy* at mii? phy ? # ThunderLAN PHYs 290tqphy* at mii? phy ? # TDK Semiconductor PHYs 291urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs 292ukphy* at mii? phy ? # generic unknown PHYs 293 294# Mini-PCIe Wireless 295#options ATHHAL_AR5212,ATHHAL_RF2425 # AR5BHB63 296#ath* at pci? dev ? function ? # Atheros IEEE 802.11 297#athn* at pci? dev ? function ? # Atheros IEEE 802.11 298 299# UART 300com* at fdt? pass 4 # UART 301com* at acpi? 302imxuart* at fdt? pass 4 # IMX UART 303options IMXUARTCONSOLE 304mesonuart* at fdt? pass 4 # Amlogic Meson UART 305plcom* at fdt? pass 4 # ARM PL011 UART 306plcom* at acpi? 307puc* at pci? dev ? function ? # PCI "universal" comm. cards 308com* at puc? port ? 309 310# I2C controllers 311options I2C_MAX_ADDR=0xfff 312bsciic* at fdt? # Broadcom BCM283x Serial Control 313bsciic* at acpi? 314dwiic* at fdt? # Designware I2C 315dwiic* at acpi? 316imxi2c* at fdt? pass 4 # IMX I2C 317nxpiic* at acpi? # NXP Layerscape I2C 318rkiic* at fdt? pass 4 # Rockchip I2C 319sunxirsb* at fdt? pass 4 # Allwinner RSB 320sunxitwi* at fdt? # Allwinner TWI 321tegrai2c* at fdt? pass 4 # NVIDIA Tegra I2C 322#sniiic* at fdt? # Socionext SC2A11 I2C 323#sniiic* at acpi? 324iicmux* at fdt? pass 5 # I2C mux virtual controllers 325iic* at i2cbus? 326 327# I2C devices 328titemp* at iic? 329seeprom* at iic? 330spdmem* at iic? # memory module SPD EEPROM decoder 331as3722pmic* at iic? 332as3722reg* at as3722pmic? 333axppmic* at iic? # X-Powers AXP Power Management IC 334axpreg* at axppmic? 335cwfg* at iic? # CellWise CW2015 Fuel Gauge IC 336dsrtc* at iic? # Dallas Semiconductor RTCs 337es8316ac* at iic? # Everest Semi ES8316 Audio CODEC 338fan53555reg* at iic? # FAN53555 / SY82x regulator 339max77620pmic* at iic? 340pcaiicmux* at iic? # PCA954x / PCA984x I2C switch / mux 341pcf8563rtc* at iic? # PCF8563 RTC 342rkpmic* at iic? # Rockchip Power Management IC 343rkreg* at rkpmic? 344tcagpio* at iic? 345 346# Random number generators 347amdccp* at fdt? # AMD Cryptograhic Coprocessor RNG 348amdccp* at acpi? 349bcmrng* at fdt? # Broadcom BCM283x RNG 350mesonrng* at fdt? # Amlogic Meson RNG 351sun8icrypto* at fdt? # Allwinner Crypto Engine 352rkv1crypto* at fdt? # Rockchip Crypto v1 353 354# RTC 355plrtc* at fdt? # ARM PrimeCell RTC 356sunxirtc* at fdt? pass 4 # Allwinner RTC 357tegrartc* at fdt? # NVIDIA Tegra RTC 358 359# SDMMC 360bcmsdhost* at fdt? # Broadcom BCM283x SD Host Interface 361dwcmmc* at fdt? # Designware SD/MMC 362mesongxmmc* at fdt? # Amlogic Meson GX eMMC/SD/SDIO controller 363mmcpwrseq* at fdt? pass 5 # Simple MMC power sequence provider 364rkemmcphy* at fdt? # Rockchip eMMC PHY 365sdhc* at fdt? # SD Host Controller Interface 366sdhc* at acpi? 367sunximmc* at fdt? # Allwinner SD/MMC 368#sniemmc* at fdt? # Socionext SC2A11 eMMC 369#sniemmc* at acpi? 370sdmmc* at sdmmcbus? 371ld0 at sdmmc0 372ld1 at sdmmc1 373ld2 at sdmmc2 374ld3 at sdmmc3 375ld* at sdmmc? 376bwfm* at sdmmc? # Broadcom BCM43xxx WiFi Interface 377 378# SATA 379ahcisata* at fdt? # AHCI SATA 380ahcisata* at acpi? 381ahcisata* at pci? dev ? function ? 382atabus* at ata? 383atapibus* at atapi? 384wd* at atabus? drive ? 385cd* at atapibus? drive ? 386 387# NVMe 388nvme* at pci? dev ? function ? 389ld* at nvme? nsid ? 390 391# SPI controllers 392bcmspi* at fdt? # Broadcom BCM283x SPI 393rkspi* at fdt? # Rockchip SPI 394sun6ispi* at fdt? # Allwinner SPI 395spi* at spibus? 396m25p* at spi? 397spiflash* at spiflashbus? 398 399# Broadcom VCHIQ, etc 400vchiq0 at fdt? 401vcaudio0 at vchiq0 402 403# Audio support 404hdaudio* at fdt? # Intel HDA 405hdaudio* at pci? dev ? function ? 406hdafg* at hdaudiobus? 407options HDAUDIOVERBOSE 408options HDAUDIO_ENABLE_HDMI 409options HDAUDIO_ENABLE_DISPLAYPORT 410ausoc* at fdt? # Simple SoC audio card 411simpleamp* at fdt? # Simple amplifier 412spdiftx* at fdt? # SPDIF transmitter 413rki2s* at fdt? # Rockchip I2S/PCM 414sunxicodec* at fdt? # Allwinner audio codec 415sun8icodec* at fdt? # Allwinner audio codec (sun8i/sun50i) 416h3codec* at fdt? # Allwinner H3 audio codec (analog part) 417a64acodec* at fdt? # Allwinner A64 audio codec (analog part) 418sunxii2s* at fdt? # Allwinner I2S/PCM 419audio* at audiobus? 420 421spkr* at audio? # PC speaker (synthesized) 422 423# HDMI CEC 424tegracec0 at fdt? # NVIDIA Tegra HDMI CEC 425hdmicec* at hdmicecbus? 426 427# Display 428anxdp* at fdt? # Analogix-based (e)DP 429anxedp* at iic? # Analogix eDP TX 430dispcon* at fdt? # Display connector devices 431panel* at fdt? # Display panels 432dwhdmi* at fdt? # Designware HDMI TX 433rkdrm* at fdt? pass 5 # Rockchip DRM master 434rkfb* at rkdrm? # Rockchip DRM framebuffer 435rkvop* at fdt? # Rockchip Visual Output Processor 436sunxide2bus* at fdt? pass 4 # Allwinner DE2 bus 437sunxidrm* at fdt? pass 5 # Allwinner Display Pipeline 438sunxifb* at sunxidrm? # Allwinner DRM framebuffer 439sunxihdmiphy* at fdt? pass 9 # Allwinner HDMI TX PHY 440sunxilcdc* at fdt? # Allwinner DE2 timing controller 441sunximixer* at fdt? # Allwinner DE2 mixer 442#tegradrm* at fdt? # NVIDIA Tegra Display 443#tegrafb* at tegrafbbus? 444genfb* at fdt? # Simple Framebuffer 445wsdisplay* at wsemuldisplaydev? 446options VCONS_DRAW_INTR 447options WSEMUL_VT100 448options WS_DEFAULT_FG=WSCOL_WHITE 449options WS_DEFAULT_BG=WSCOL_BLACK 450options WS_KERNEL_FG=WSCOL_GREEN 451options WS_KERNEL_BG=WSCOL_BLACK 452options WSDISPLAY_COMPAT_PCVT 453options WSDISPLAY_COMPAT_SYSCONS 454options WSDISPLAY_COMPAT_USL 455options WSDISPLAY_COMPAT_RAWKBD 456options WSDISPLAY_DEFAULTSCREENS=4 457options WSDISPLAY_MULTICONS 458options WSDISPLAY_SCROLLSUPPORT 459pseudo-device wsmux 460pseudo-device wsfont 461options FONT_BOLD8x16 462options FONT_BOLD16x32 463 464# GPU 465#nouveau* at fdt? # NVIDIA GPU 466#nouveau* at pci? dev ? function ? 467#nouveaufb* at nouveaufbbus? 468radeon* at pci? dev ? function ? # AMD Radeon 469radeondrmkmsfb* at radeonfbbus? 470 471# Backlight 472pwmbacklight* at fdt? # PWM Backlight controls 473 474# Fan 475pwmfan* at fdt? # PWM Fan controls 476 477# Thermal throttling controller 478mesonthermal* at fdt? # Amlogic thermal sensor controller 479sunxithermal* at fdt? # Allwinner thermal sensor controller 480tegrasoctherm* at fdt? # NVIDIA Tegra SOC_THERM 481rktsadc* at fdt? # RockChip TSASC 482 483# USB 484imx8mqusbphy* at fdt? pass 9 # IMX USB PHY 485mesonusbctrl* at fdt? # Amlogic Meson USB-Glue (dwc2 and dwc3) 486mesonusbphy* at fdt? pass 9 # Amlogic Meson USB2 PHY 487mesong12u2phy* at fdt? pass 9 # Amlogic Meson G12 USB2 PHY 488mesong12u3pphy* at fdt? pass 9 # Amlogic Meson G12 USB3/PCIe PHY 489mesongxlu2phy* at fdt? pass 9 # Amlogic Meson GXL USB2 PHY 490mesongxlu3phy* at fdt? pass 9 # Amlogic Meson GXL USB3 PHY 491rkusb* at fdt? pass 9 # Rockchip USB PHY 492rkusbphy* at rkusb? 493sunxiusbphy* at fdt? pass 9 # Allwinner USB PHY 494sunxiusb3phy* at fdt? pass 9 # Allwinner USB3 PHY 495tegrausbphy* at fdt? # NVIDIA Tegra USB PHY 496dwctwo* at fdt? # Designware USB DRD 497ehci* at fdt? # EHCI 498ehci* at pci? # EHCI 499ehci* at acpi? # EHCI 500motg* at fdt? # Mentor Graphics USB OTG 501ohci* at fdt? # OHCI 502ohci* at pci? # OHCI 503xhci* at fdt? # XHCI 504xhci* at pci? # XHCI 505xhci* at acpi? # XHCI 506usb* at usbus? 507 508include "dev/usb/usbdevices.config" 509midi* at midibus? 510pseudo-device sequencer # MIDI sequencer 511 512# Virtio devices 513virtio* at fdt? # Virtio MMIO device 514virtio* at acpi? 515virtio* at pci? dev ? function ? 516#viomb* at virtio? # Virtio memory balloon device 517ld* at virtio? # Virtio disk device 518vioif* at virtio? # Virtio network device 519viornd* at virtio? # Virtio entropy device 520vioscsi* at virtio? # Virtio SCSI device 521 522# SCSI controllers 523mpt* at pci? dev ? function ? 524 525# SCSI bus support 526scsibus* at scsi? 527sd* at scsibus? target ? lun ? # SCSI disk drives 528 529cinclude "arch/evbarm/conf/GENERIC64.local" 530