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