1# $NetBSD: GENERIC64,v 1.20 2025/01/03 11:49:04 skrll Exp $ 2# 3# GENERIC machine description file 4# 5# This machine description file is used to generate the default NetBSD 6# kernel for RV64. The generic kernel does not include all options, 7# subsystems and device drivers, but should be useful for most applications. 8# 9# The machine description file can be customised for your specific 10# machine to reduce the kernel size and improve its performance. 11# 12# For further information on compiling NetBSD kernels, see the config(8) 13# man page. 14# 15# For further information on hardware support for this architecture, see 16# the intro(4) man page. For further information about kernel options 17# for this architecture, see the options(4) man page. For an explanation 18# of each device driver in this file see the section 4 man page for the 19# device. 20 21include "arch/riscv/conf/std.riscv64" 22include "arch/riscv/conf/files.generic64" 23include "arch/riscv/conf/GENERIC.common" 24 25#options EARLYCONS=com, CONSADDR=0x10000000 # qemu virt 26options VERBOSE_INIT_RISCV 27 28# Diagnostic/debugging support options 29options DIAGNOSTIC # inexpensive kernel consistency checks 30 # XXX to be commented out on release branch 31options DEBUG # expensive debugging checks/support 32#options LOCKDEBUG # expensive locking checks/support 33#options KERNHIST 34#options KERNHIST_PRINT 35#options UVMHIST 36#options UVMHIST_PRINT 37#options PMAPHIST 38#options PMAPHIST_PRINT 39#options SYSCTL_DEBUG 40#options SYSCTL_DEBUG_SETUP 41#options SYSCTL_DEBUG_CREATE 42#options PMAP_FAULTINFO 43#options RISCV_SYSCALL_DEBUG 44#options SYSCALL_DEBUG 45 46#options COMPAT_NETBSD32 47#options EXEC_ELF32 48 49# Cache controller 50ccache* at fdt? # SiFive FU[57]40 L2 Cache 51 52# Fixed Voltage/Current Regulators 53fregulator* at fdt? pass 4 54 55# Clock and reset controller 56jh7100clkc* at fdt? pass 2 # StarFive JH7100 clock controller 57jh7110clkc* at fdt? pass 2 # StarFive JH7110 clock controller 58sun20id1ccu* at fdt? pass 2 # Allwinner D1/D1s CCU 59 60# Security ID EFUSE 61sunxisid* at fdt? pass 4 # Allwinner SID 62 63# DMA 64sun6idma* at fdt? pass 4 # Allwinner DMA controller (sun6i) 65 66# PCIe PHY 67jh7110pciephy* at fdt? pass 3 # StarFive JH7110 PCIe PHY 68 69# PCIe 70jh7110pcie* at fdt? # StarFive JH7110 PCIe 71 72# Pin control 73jh7100pinctrl* at fdt? pass 2 # StarFive JH7100 pinctrl driver 74jh7110pinctrl* at fdt? pass 2 # StarFive JH7110 pinctrl driver 75sunxigpio* at fdt? pass 2 # Allwinner GPIO 76gpio* at gpiobus? 77 78# System control 79jh7110syscon* at fdt? pass 1 80 81# SDMMC 82dwcmmc* at fdt? # DesignWare SD/MMC 83sdmmc* at sdmmcbus? 84ld0 at sdmmc0 85ld1 at sdmmc1 86ld2 at sdmmc2 87ld3 at sdmmc3 88ld* at sdmmc? 89bwfm* at sdmmc? # Broadcom BCM43xxx WiFi Interface 90 91# USB PHY 92sunxiusbphy* at fdt? # Allwinner USB PHY 93 94# USB 95jh71x0usb* at fdt? # StarFive JH71x0 usb 96 97# Ethernet 98#awge* at fdt? # DesignWare Gigabit Ethernet 99eqos* at fdt? # DesignWare Ethernet QoS 100 101# MII/PHY support 102micphy* at mii? phy ? # Micrel KSZ[89]xxx PHYs 103mcommphy* at mii? phy ? # Motorcomm YT8511C/YT8511H PHYs 104ukphy* at mii? phy ? # generic unknown PHYs 105 106# Temperature sensor 107jh71x0temp* at fdt? # StarFive JH71x0 Temperature sensor 108 109# Pull in optional local configuration - always at end 110cinclude "arch/riscv/conf/GENERIC64.local" 111