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