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