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