GENERIC64 revision 1.21
11.21Sskrll# $NetBSD: GENERIC64,v 1.21 2025/02/08 16:12:20 skrll Exp $
21.1Sskrll#
31.1Sskrll# GENERIC machine description file
41.1Sskrll#
51.1Sskrll# This machine description file is used to generate the default NetBSD
61.1Sskrll# kernel for RV64.  The generic kernel does not include all options,
71.1Sskrll# subsystems and device drivers, but should be useful for most applications.
81.1Sskrll#
91.1Sskrll# The machine description file can be customised for your specific
101.1Sskrll# machine to reduce the kernel size and improve its performance.
111.1Sskrll#
121.1Sskrll# For further information on compiling NetBSD kernels, see the config(8)
131.1Sskrll# man page.
141.1Sskrll#
151.1Sskrll# For further information on hardware support for this architecture, see
161.1Sskrll# the intro(4) man page.  For further information about kernel options
171.1Sskrll# for this architecture, see the options(4) man page.  For an explanation
181.1Sskrll# of each device driver in this file see the section 4 man page for the
191.1Sskrll# device.
201.1Sskrll
211.1Sskrllinclude	"arch/riscv/conf/std.riscv64"
221.1Sskrllinclude	"arch/riscv/conf/files.generic64"
231.1Sskrllinclude	"arch/riscv/conf/GENERIC.common"
241.1Sskrll
251.1Sskrll#options 	EARLYCONS=com, CONSADDR=0x10000000	# qemu virt
261.1Sskrlloptions 	VERBOSE_INIT_RISCV
271.1Sskrll
281.1Sskrll# Diagnostic/debugging support options
291.1Sskrlloptions 	DIAGNOSTIC	# inexpensive kernel consistency checks
301.1Sskrll				# XXX to be commented out on release branch
311.1Sskrlloptions 	DEBUG		# expensive debugging checks/support
321.1Sskrll#options 	LOCKDEBUG	# expensive locking checks/support
331.1Sskrll#options 	KERNHIST
341.1Sskrll#options 	KERNHIST_PRINT
351.1Sskrll#options 	UVMHIST
361.1Sskrll#options 	UVMHIST_PRINT
371.1Sskrll#options 	PMAPHIST
381.1Sskrll#options 	PMAPHIST_PRINT
391.1Sskrll#options 	SYSCTL_DEBUG
401.1Sskrll#options 	SYSCTL_DEBUG_SETUP
411.1Sskrll#options 	SYSCTL_DEBUG_CREATE
421.1Sskrll#options 	PMAP_FAULTINFO
431.1Sskrll#options 	RISCV_SYSCALL_DEBUG
441.1Sskrll#options 	SYSCALL_DEBUG
451.1Sskrll
461.1Sskrll#options 	COMPAT_NETBSD32
471.1Sskrll#options 	EXEC_ELF32
481.1Sskrll
491.2Sskrll# Cache controller
501.2Sskrllccache* 	at fdt?			# SiFive FU[57]40 L2 Cache
511.2Sskrll
521.10Sskrll# Fixed Voltage/Current Regulators
531.15Sskrllfregulator* 	at fdt? pass 4
541.10Sskrll
551.10Sskrll# Clock and reset controller
561.3Sskrlljh7100clkc* 	at fdt?	pass 2		# StarFive JH7100 clock controller
571.11Sskrlljh7110clkc* 	at fdt?	pass 2		# StarFive JH7110 clock controller
581.10Sskrllsun20id1ccu* 	at fdt? pass 2		# Allwinner D1/D1s CCU
591.10Sskrll
601.10Sskrll# Security ID EFUSE
611.15Sskrllsunxisid* 	at fdt? pass 4		# Allwinner SID
621.10Sskrll
631.10Sskrll# DMA
641.10Sskrllsun6idma* 	at fdt? pass 4		# Allwinner DMA controller (sun6i)
651.3Sskrll
661.16Sskrll# PCIe PHY
671.16Sskrlljh7110pciephy* 	at fdt? pass 3		# StarFive JH7110 PCIe PHY
681.16Sskrll
691.19Sskrll# PCIe
701.19Sskrlljh7110pcie* 	at fdt?			# StarFive JH7110 PCIe
711.19Sskrll
721.8Sskrll# Pin control
731.8Sskrlljh7100pinctrl* 	at fdt? pass 2		# StarFive JH7100 pinctrl driver
741.13Sskrlljh7110pinctrl* 	at fdt? pass 2		# StarFive JH7110 pinctrl driver
751.14Sskrllsunxigpio* 	at fdt? pass 2		# Allwinner GPIO
761.10Sskrllgpio* 		at gpiobus?
771.8Sskrll
781.17Sskrll# System control
791.17Sskrlljh7110syscon* 	at fdt? pass 1
801.17Sskrll
811.5Sskrll# SDMMC
821.5Sskrlldwcmmc* 	at fdt?			# DesignWare SD/MMC
831.7Sskrllsdmmc* 		at sdmmcbus?
841.9Sskrllld0 		at sdmmc0
851.9Sskrllld1 		at sdmmc1
861.9Sskrllld2 		at sdmmc2
871.9Sskrllld3 		at sdmmc3
881.9Sskrllld* 		at sdmmc?
891.7Sskrllbwfm* 		at sdmmc?		# Broadcom BCM43xxx WiFi Interface
901.5Sskrll
911.10Sskrll# USB PHY
921.10Sskrllsunxiusbphy* 	at fdt?			# Allwinner USB PHY
931.10Sskrll
941.4Sskrll# USB
951.4Sskrlljh71x0usb* 	at fdt?			# StarFive JH71x0 usb
961.4Sskrll
971.12Sskrll# Ethernet
981.12Sskrll#awge* 		at fdt?			# DesignWare Gigabit Ethernet
991.12Sskrlleqos* 		at fdt?			# DesignWare Ethernet QoS
1001.12Sskrll
1011.12Sskrll# MII/PHY support
1021.12Sskrllmicphy* 	at mii? phy ?		# Micrel KSZ[89]xxx PHYs
1031.12Sskrllmcommphy* 	at mii? phy ?		# Motorcomm YT8511C/YT8511H PHYs
1041.12Sskrllukphy* 		at mii? phy ?		# generic unknown PHYs
1051.12Sskrll
1061.20Sskrll# Temperature sensor
1071.20Sskrlljh71x0temp* 	at fdt?			# StarFive JH71x0 Temperature sensor
1081.20Sskrll
1091.21Sskrll# Random number generators
1101.21Sskrlljh7110trng* 	at fdt?			# StarFive JH7110 True RNG
1111.21Sskrll
1121.1Sskrll# Pull in optional local configuration - always at end
1131.1Sskrllcinclude 	"arch/riscv/conf/GENERIC64.local"
114