1# 2# GENERIC -- Generic(ish) kernel config. 3# 4# For more information on this file, please read the config(5) manual page, 5# and/or the handbook section on Kernel Configuration Files: 6# 7# https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config 8# 9# The handbook is also available locally in /usr/share/doc/handbook 10# if you've installed the doc distribution, otherwise always see the 11# FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the 12# latest information. 13# 14# An exhaustive list of options and more detailed explanations of the 15# device lines is also present in the ../../conf/NOTES and NOTES files. 16# If you are in doubt as to the purpose or necessity of a line, check first 17# in NOTES. 18# 19 20ident GENERIC 21 22cpu CPU_CORTEXA 23cpu CPU_MV_PJ4B 24options SMP_ON_UP 25machine arm armv7 26makeoptions CONF_CFLAGS="-march=armv7a" 27 28include "std.armv7" 29files "../allwinner/files.allwinner" 30files "../allwinner/files.allwinner_up" 31files "../allwinner/a10/files.a10" 32files "../allwinner/a13/files.a13" 33files "../allwinner/a20/files.a20" 34files "../allwinner/a31/files.a31" 35files "../allwinner/a33/files.a33" 36files "../allwinner/a83t/files.a83t" 37files "../allwinner/h3/files.h3" 38files "../broadcom/bcm2835/files.bcm2836" 39files "../broadcom/bcm2835/files.bcm283x" 40files "../freescale/imx/files.imx6" 41files "../mv/files.arm7" 42files "../nvidia/tegra124/files.tegra124" 43files "../qemu/files.qemu" 44files "../rockchip/files.rk32xx" 45files "../xilinx/files.zynq7" 46 47options SOC_ALLWINNER_A10 48options SOC_ALLWINNER_A13 49options SOC_ALLWINNER_A20 50options SOC_ALLWINNER_A31 51options SOC_ALLWINNER_A31S 52options SOC_ALLWINNER_A33 53options SOC_ALLWINNER_A83T 54options SOC_ALLWINNER_H2PLUS 55options SOC_ALLWINNER_H3 56options SOC_BCM2836 57options SOC_BRCM_BCM2837 58options SOC_MV_ARMADA38X 59options SOC_MV_ARMADAXP 60 61options SCHED_ULE # ULE scheduler 62options SMP # Enable multiple cores 63options PLATFORM 64options LINUX_BOOT_ABI 65 66# pseudo devices 67device clk 68device phy 69device hwreset 70device nvmem 71device regulator 72device syscon 73 74# CPU frequency control 75device cpufreq 76 77# Interrupt controller 78device gic 79device aw_r_intc 80 81# PMU support (for CCNT). 82device pmu 83 84# ARM Generic Timer 85device generic_timer 86device mpcore_timer 87 88# MMC/SD/SDIO Card slot support 89device dwmmc 90device sdhci # SD controller 91device mmc # mmc/sd bus 92device mmcsd # mmc/sd flash cards 93 94# ATA controllers 95device ahci # AHCI-compatible SATA controllers 96#device ata # Legacy ATA/SATA controllers 97 98# PCI 99device pci 100device pci_host_generic 101 102# PCI NICs 103device re # RealTek 8139C+/8169/8169S/8110S 104 105# VirtIO 106device virtio 107device virtio_mmio 108device virtio_pci 109device virtio_blk 110device vtnet 111 112# Console and misc 113device uart 114device uart_ns8250 115device uart_snps 116device pl011 117device pty 118device snp 119device md # Memory "disks" 120device firmware # firmware assist module 121device pl310 # PL310 L2 cache controller 122device psci 123 124# I2C support 125device iicbus 126device iic 127device twsi 128device rsb # Allwinner Reduced Serial Bus 129device p2wi # Allwinner Push-Pull Two Wire 130device axp209 # AXP209 Power Management Unit 131device axp81x # AXP813/818 Power Management Unit 132device bcm2835_bsc 133device fsliic # Freescale i2c/iic 134device icee # AT24Cxxx and compatible EEPROMs 135device sy8106a # SY8106A Buck Regulator 136 137# i2c RTCs 138device ds1307 # Dallas DS1307 RTC and compatible 139device ds13rtc # All Dallas/Maxim DS13xx RTCs 140device ds1672 # Dallas DS1672 RTC 141device ds3231 # Dallas DS3231 RTC + temperature 142device nxprtc # NXP RTCs: PCA/PFC212x PCA/PCF85xx 143device s35390a # Seiko s3539x RTCs 144 145# GPIO 146device dwgpio # Synopsys DesignWare APB GPIO Controller 147device gpio 148device gpiobacklight 149device gpioled 150device gpioregulator 151 152# EVDEV support 153device evdev # input event device support 154options EVDEV_SUPPORT # evdev support in legacy drivers 155device uinput # install /dev/uinput cdev 156device aw_cir 157 158# SPI 159device spibus 160device spigen 161device bcm2835_spi 162device mv_spi 163device zy7_qspi # Xilinx Zynq QSPI controller 164 165# PWM 166device pwm 167 168# Watchdog support 169device imxwdt # Watchdog. WARNING: can't be disabled!!! 170device aw_wdog # Allwinner Watchdog 171 172device scbus # SCSI bus (required for ATA/SCSI) 173device da # Direct Access (disks) 174device cd # CD 175device pass # Passthrough device (direct ATA/SCSI access) 176 177# USB support 178options USB_HOST_ALIGN=64 # Align usb buffers to cache line size. 179device usb 180device uhci 181device ohci 182device ehci 183device xhci 184device dwcotg # DWC OTG controller 185device musb 186 187device axe # USB-Ethernet 188device umass # Disks/Mass storage - Requires scbus and da 189device usbhid # USB HID Transport 190device uhid # "Human Interface Devices" 191device hkbd # Allow keyboard like HIDs to control console 192device ukbd # Allow keyboard like HIDs to control console 193 194# Device mode support 195device usb_template # Control of the gadget 196 197# Ethernet 198device loop 199device ether 200device vlan # 802.1Q VLAN support 201device bpf 202device mii 203device mdio 204device etherswitch 205device e6000sw 206 207# Ethernet NICs that use the common MII bus controller code. 208# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! 209device miibus 210 211device awg # 10/100/1000 integrated EMAC controller 212device cgem # Cadence GEM Gigabit Ethernet device 213device dwc # 10/100/1000 integrated GMAC controller 214device emac # 10/100 integrated EMAC controller 215device ffec # Freescale Fast Ethernet Controller 216device neta # Marvell 10/100/1000 Network controller 217device smsc # SMSC LAN91C111 218 219# Sound support 220device sound 221 222# Framebuffer support 223device vt 224device kbdmux 225device hms 226device ums 227device videomode 228device vchiq 229 230# IMX6 HDMI Controller 231device dwc_hdmi 232device imx6_hdmi 233device imx6_ipu 234 235# Pinmux 236device fdt_pinctrl 237 238# DMA controller 239device fslsdma 240device a10_dmac 241device a31_dmac 242 243# Extensible Firmware Interface 244options EFI 245 246# Marvell Cryptographic Engine and Security Accelerator 247device cesa 248device crypto 249device cryptodev 250 251# RTC 252device imx6_snvs # IMX6 On-chip RTC 253device aw_rtc # Allwinner On-chip RTC 254 255# EFUSE 256device aw_sid # Allwinner Secure ID EFUSE 257 258# Thermal sensors 259device aw_thermal # Allwinner Thermal Sensor Controller 260 261# HID support 262device hid # Generic HID support 263device hidbus # Generic HID Bus 264 265# Flattened Device Tree 266options FDT # Configure using FDT/DTB data 267makeoptions MODULES_EXTRA+="dtb/allwinner" 268makeoptions MODULES_EXTRA+="dtb/imx6" 269makeoptions MODULES_EXTRA+="dtb/nvidia" 270makeoptions MODULES_EXTRA+="dtb/rockchip" 271makeoptions MODULES_EXTRA+="dtb/rpi" 272makeoptions MODULES_EXTRA+="dtb/zynq" 273 274# SOC-specific modules 275makeoptions MODULES_EXTRA+="allwinner" 276makeoptions MODULES_EXTRA+="imx" 277