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