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