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