1 # $NetBSD: GENERIC64,v 1.28 2026/08/25 20:46:17 riz 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 21 include "arch/riscv/conf/std.riscv64" 22 include "arch/riscv/conf/files.generic64" 23 include "arch/riscv/conf/GENERIC.common" 24 25 #options EARLYCONS=com, CONSADDR=0x10000000 # qemu virt 26 options VERBOSE_INIT_RISCV 27 28 # Diagnostic/debugging support options 29 options DIAGNOSTIC # inexpensive kernel consistency checks 30 # XXX to be commented out on release branch 31 #options DEBUG # expensive debugging checks/support 32 #options LOCKDEBUG # expensive locking checks/support 33 #options KERNHIST 34 #options KERNHIST_PRINT,KERNHIST_DELAY=0 35 #options UVMHIST 36 #options UVMHIST_PRINT,KERNHIST_DELAY=0 37 #options PMAPHIST 38 #options PMAPHIST_PRINT,KERNHIST_DELAY=0 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 #options PMAP_DEBUG 46 47 #options COMPAT_NETBSD32 48 #options EXEC_ELF32 49 50 # Cache controller 51 ccache* at fdt? # SiFive FU[57]40 L2 Cache 52 53 # Fixed Voltage/Current Regulators 54 fregulator* at fdt? pass 4 55 56 # Clock and reset controller 57 jh7100clkc* at fdt? pass 2 # StarFive JH7100 clock controller 58 jh7110clkc* at fdt? pass 2 # StarFive JH7110 clock controller 59 sun20id1ccu* at fdt? pass 2 # Allwinner D1/D1s CCU 60 61 # Security ID EFUSE 62 sunxisid* at fdt? pass 4 # Allwinner SID 63 64 # DMA 65 sun6idma* at fdt? pass 4 # Allwinner DMA controller (sun6i) 66 67 # PCIe PHY 68 jh7110pciephy* at fdt? pass 3 # StarFive JH7110 PCIe PHY 69 70 # PCIe 71 jh7110pcie* at fdt? # StarFive JH7110 PCIe 72 73 # Pin control 74 jh7100pinctrl* at fdt? pass 2 # StarFive JH7100 pinctrl driver 75 jh7110pinctrl* at fdt? pass 2 # StarFive JH7110 pinctrl driver 76 sunxigpio* at fdt? pass 2 # Allwinner GPIO 77 gpio* at gpiobus? 78 79 # System control 80 jh7110syscon* at fdt? pass 1 81 82 # Watchdog 83 jh7110wdt* at fdt? # StarFive JH7110 wdt driver 84 sunxiwdt* at fdt? # Allwinner watchdog 85 86 # SDMMC 87 dwcmmc* at fdt? # DesignWare SD/MMC 88 sunximmc* at fdt? # Allwinner SD/MMC 89 sdmmc* at sdmmcbus? 90 ld0 at sdmmc0 91 ld1 at sdmmc1 92 ld2 at sdmmc2 93 ld3 at sdmmc3 94 ld* at sdmmc? 95 bwfm* at sdmmc? # Broadcom BCM43xxx WiFi Interface 96 97 # USB PHY 98 sunxiusbphy* at fdt? # Allwinner USB PHY 99 100 # USB 101 jh71x0usb* at fdt? # StarFive JH71x0 usb 102 103 # Ethernet 104 #awge* at fdt? # DesignWare Gigabit Ethernet 105 eqos* at fdt? # DesignWare Ethernet QoS 106 107 # MII/PHY support 108 micphy* at mii? phy ? # Micrel KSZ[89]xxx PHYs 109 mcommphy* at mii? phy ? # Motorcomm YT8511C/YT8511H PHYs 110 rgephy* at mii? phy ? # Realtek 8169S/8110S internal PHYs 111 ukphy* at mii? phy ? # generic unknown PHYs 112 113 # Temperature sensor 114 jh71x0temp* at fdt? # StarFive JH71x0 Temperature sensor 115 116 # Random number generators 117 jh7110trng* at fdt? # StarFive JH7110 True RNG 118 119 # Pull in optional local configuration - always at end 120 cinclude "arch/riscv/conf/GENERIC64.local" 121