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