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