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 60options SOC_TI_AM335X 61options SOC_OMAP4 62 63options SCHED_ULE # ULE scheduler 64options SMP # Enable multiple cores 65options PLATFORM 66options LINUX_BOOT_ABI 67 68# pseudo devices 69device clk 70device phy 71device hwreset 72device nvmem 73device regulator 74device syscon 75 76# CPU frequency control 77device cpufreq 78 79# Interrupt controller 80device gic 81device aw_r_intc 82 83# PMU support (for CCNT). 84device pmu 85 86# ARM Generic Timer 87device generic_timer 88device mpcore_timer 89 90# MMC/SD/SDIO Card slot support 91device dwmmc 92device sdhci # SD controller 93device mmc # mmc/sd bus 94device mmcsd # mmc/sd flash cards 95 96# ATA controllers 97device ahci # AHCI-compatible SATA controllers 98#device ata # Legacy ATA/SATA controllers 99 100# PCI 101device pci 102device pci_host_generic 103 104# PCI NICs 105device re # RealTek 8139C+/8169/8169S/8110S 106 107# VirtIO 108device virtio 109device virtio_mmio 110device virtio_pci 111device virtio_blk 112device vtnet 113 114# Console and misc 115device uart 116device uart_ns8250 117device uart_snps 118device pl011 119device pty 120device snp 121device md # Memory "disks" 122device firmware # firmware assist module 123device pl310 # PL310 L2 cache controller 124device psci 125 126# I2C support 127device iicbus 128device iic 129device twsi 130device rsb # Allwinner Reduced Serial Bus 131device p2wi # Allwinner Push-Pull Two Wire 132device axp209 # AXP209 Power Management Unit 133device axp81x # AXP813/818 Power Management Unit 134device bcm2835_bsc 135device fsliic # Freescale i2c/iic 136device icee # AT24Cxxx and compatible EEPROMs 137device sy8106a # SY8106A Buck Regulator 138 139# i2c RTCs 140device ds1307 # Dallas DS1307 RTC and compatible 141device ds13rtc # All Dallas/Maxim DS13xx RTCs 142device ds1672 # Dallas DS1672 RTC 143device ds3231 # Dallas DS3231 RTC + temperature 144device nxprtc # NXP RTCs: PCA/PFC212x PCA/PCF85xx 145device s35390a # Seiko s3539x RTCs 146 147# GPIO 148device dwgpio # Synopsys DesignWare APB GPIO Controller 149device gpio 150device gpiobacklight 151device gpioled 152device gpioregulator 153 154# EVDEV support 155device evdev # input event device support 156options EVDEV_SUPPORT # evdev support in legacy drivers 157device uinput # install /dev/uinput cdev 158device aw_cir 159 160# SPI 161device spibus 162device spigen 163device bcm2835_spi 164device mv_spi 165device zy7_qspi # Xilinx Zynq QSPI controller 166 167# PWM 168device pwm 169 170# Watchdog support 171# If we don't enable the watchdog driver, the BeagleBone could potentially 172# reboot automatically because the boot loader might have enabled the 173# watchdog. 174device imxwdt # Watchdog. WARNING: can't be disabled!!! 175device aw_wdog # Allwinner Watchdog 176 177device scbus # SCSI bus (required for ATA/SCSI) 178device da # Direct Access (disks) 179device cd # CD 180device pass # Passthrough device (direct ATA/SCSI access) 181 182# USB support 183options USB_HOST_ALIGN=64 # Align usb buffers to cache line size. 184device usb 185device uhci 186device ohci 187device ehci 188device xhci 189device dwcotg # DWC OTG controller 190device musb 191 192device axe # USB-Ethernet 193device umass # Disks/Mass storage - Requires scbus and da 194device uhid # "Human Interface Devices" 195device ukbd # Allow keyboard like HIDs to control console 196 197# Device mode support 198device usb_template # Control of the gadget 199 200# Ethernet 201device loop 202device ether 203device vlan # 802.1Q VLAN support 204device bpf 205device mii 206device mdio 207device etherswitch 208device e6000sw 209 210# Ethernet NICs that use the common MII bus controller code. 211# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! 212device miibus 213 214device awg # 10/100/1000 integrated EMAC controller 215device cgem # Cadence GEM Gigabit Ethernet device 216device dwc # 10/100/1000 integrated GMAC controller 217device emac # 10/100 integrated EMAC controller 218device ffec # Freescale Fast Ethernet Controller 219device neta # Marvell 10/100/1000 Network controller 220device smsc # SMSC LAN91C111 221 222# Sound support 223device sound 224 225# Framebuffer support 226device vt 227device kbdmux 228device ums 229device videomode 230device vchiq 231 232# IMX6 HDMI Controller 233device dwc_hdmi 234device imx6_hdmi 235device imx6_ipu 236 237# Pinmux 238device fdt_pinctrl 239 240# DMA controller 241device fslsdma 242device a10_dmac 243device a31_dmac 244 245# Extensible Firmware Interface 246options EFI 247 248# Marvell Cryptographic Engine and Security Accelerator 249device cesa 250device crypto 251device cryptodev 252 253# RTC 254device imx6_snvs # IMX6 On-chip RTC 255device aw_rtc # Allwinner On-chip RTC 256 257# EFUSE 258device aw_sid # Allwinner Secure ID EFUSE 259 260# Thermal sensors 261device aw_thermal # Allwinner Thermal Sensor Controller 262 263# HID support 264device hid # Generic HID support 265 266# Flattened Device Tree 267options FDT # Configure using FDT/DTB data 268makeoptions MODULES_EXTRA+="dtb/allwinner" 269makeoptions MODULES_EXTRA+="dtb/imx6" 270makeoptions MODULES_EXTRA+="dtb/nvidia" 271makeoptions MODULES_EXTRA+="dtb/rockchip" 272makeoptions MODULES_EXTRA+="dtb/rpi" 273makeoptions MODULES_EXTRA+="dtb/zynq" 274 275# SOC-specific modules 276makeoptions MODULES_EXTRA+="allwinner" 277makeoptions MODULES_EXTRA+="imx" 278