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