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