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