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