A10 revision 287316
1276003Sandrew#
2287306Sloos# A20 -- Custom configuration for the Allwinner A20 ARM SoC
3254056Sganbold#
4276003Sandrew# For more information on this file, please read the config(5) manual page,
5276003Sandrew# and/or the handbook section on Kernel Configuration Files:
6254056Sganbold#
7254056Sganbold#    http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
8254056Sganbold#
9254056Sganbold# The handbook is also available locally in /usr/share/doc/handbook
10254056Sganbold# if you've installed the doc distribution, otherwise always see the
11254056Sganbold# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
12254056Sganbold# latest information.
13254056Sganbold#
14254056Sganbold# An exhaustive list of options and more detailed explanations of the
15254056Sganbold# device lines is also present in the ../../conf/NOTES and NOTES files.
16254056Sganbold# If you are in doubt as to the purpose or necessity of a line, check first
17254056Sganbold# in NOTES.
18254056Sganbold#
19254056Sganbold# $FreeBSD: head/sys/arm/conf/A20 287316 2015-08-30 23:20:00Z loos $
20254056Sganbold
21287306Sloosident		A20
22254056Sganbold
23282576Sandrewinclude 	"std.armv6"
24282576Sandrewinclude 	"../allwinner/a20/std.a20"
25254056Sganbold
26254056Sganboldoptions 	HZ=100
27276644Sianoptions 	SCHED_ULE		# ULE scheduler
28276003Sandrewoptions 	SMP			# Enable multiple cores
29254056Sganbold
30276003Sandrew# Debugging for use in -current
31263245Simpmakeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
32283547Sianoptions 	ALT_BREAK_TO_DEBUGGER
33263245Simp#options 	VERBOSE_SYSINIT		# Enable verbose sysinit messages
34276003Sandrewoptions 	KDB			# Enable kernel debugger support
35276003Sandrew# For minimum debugger support (stable branch) use:
36276003Sandrew#options 	KDB_TRACE		# Print a stack trace for a panic
37276003Sandrew# For full debugger support use this instead:
38263245Simpoptions 	DDB			# Enable the kernel debugger
39263245Simpoptions 	INVARIANTS		# Enable calls of extra sanity checking
40263245Simpoptions 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
41275962Sandrewoptions 	WITNESS			# Enable checks to detect deadlocks and cycles
42263245Simpoptions 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
43254056Sganbold#options 	DIAGNOSTIC
44254056Sganbold
45276003Sandrew# NFS root from boopt/dhcp
46276003Sandrew#options 	BOOTP
47254056Sganbold#options 	BOOTP_NFSROOT
48254056Sganbold#options 	BOOTP_COMPAT
49254056Sganbold#options 	BOOTP_NFSV3
50254056Sganbold#options 	BOOTP_WIRED_TO=cpsw0
51254056Sganbold
52276003Sandrew# Boot device is 2nd slice on MMC/SD card
53276003Sandrewoptions 	ROOTDEVNAME=\"ufs:/dev/da0s2\"
54276003Sandrew
55282715Sandrew# Interrupt controller
56282715Sandrewdevice		gic
57282715Sandrew
58276003Sandrew# MMC/SD/SDIO Card slot support
59283253Sloosdevice		mmc			# mmc/sd bus
60283253Sloosdevice		mmcsd			# mmc/sd flash cards
61254056Sganbold
62254056Sganbold# ATA controllers
63285090Sloosdevice		ahci			# AHCI-compatible SATA controllers
64275962Sandrew#device		ata			# Legacy ATA/SATA controllers
65276004Sandrew#options 	ATA_STATIC_ID		# Static device numbering
66254056Sganbold
67254056Sganbold# Console and misc
68254056Sganbolddevice		uart
69254056Sganbolddevice		uart_ns8250
70254056Sganbolddevice		pty
71254056Sganbolddevice		snp
72254056Sganbolddevice		md
73254056Sganbolddevice		random			# Entropy device
74254056Sganbold
75254056Sganbold# I2C support
76275962Sandrew#device		iicbus
77275962Sandrew#device		iic
78254056Sganbold
79254056Sganbold# GPIO
80254056Sganbolddevice		gpio
81287316Sloosdevice		gpioled
82254056Sganbold
83270912Simpdevice		scbus			# SCSI bus (required for ATA/SCSI)
84254056Sganbolddevice		da			# Direct Access (disks)
85285090Sloosdevice		pass			# Passthrough device (direct ATA/SCSI access)
86254056Sganbold
87254056Sganbold# USB support
88261572Sianoptions 	USB_HOST_ALIGN=64	# Align usb buffers to cache line size.
89254056Sganbolddevice		usb
90254056Sganboldoptions 	USB_DEBUG
91254056Sganbold#options 	USB_REQ_DEBUG
92254056Sganbold#options 	USB_VERBOSE
93275962Sandrew#device		uhci
94275962Sandrew#device		ohci
95254056Sganbolddevice		ehci
96254056Sganbold
97254056Sganbolddevice		umass
98254056Sganbold
99254056Sganbold# Ethernet
100254056Sganbolddevice		loop
101254056Sganbolddevice		ether
102254056Sganbolddevice		mii
103254056Sganbolddevice		bpf
104254056Sganbold
105262711Sganbolddevice		emac
106262711Sganbold
107254056Sganbold# USB ethernet support, requires miibus
108254056Sganbolddevice		miibus
109254056Sganbold
110254056Sganbold# Flattened Device Tree
111276003Sandrewoptions 	FDT			# Configure using FDT/DTB data
112281799Sloosmakeoptions	MODULES_EXTRA=dtb/allwinner
113