SAM9260EK revision 266087
1266087Sian# Kernel configuration for Atmel SAM9260-EK eval board
2235348Smarius#
3235348Smarius# For more information on this file, please read the config(5) manual page,
4235348Smarius# and/or the handbook section on Kernel Configuration Files:
5235348Smarius#
6235348Smarius#    http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
7235348Smarius#
8235348Smarius# The handbook is also available locally in /usr/share/doc/handbook
9235348Smarius# if you've installed the doc distribution, otherwise always see the
10235348Smarius# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
11235348Smarius# latest information.
12235348Smarius#
13235348Smarius# An exhaustive list of options and more detailed explanations of the
14235348Smarius# device lines is also present in the ../../conf/NOTES and NOTES files.
15235348Smarius# If you are in doubt as to the purpose or necessity of a line, check first
16235348Smarius# in NOTES.
17235348Smarius#
18235348Smarius# $FreeBSD: stable/10/sys/arm/conf/SAM9260EK 266087 2014-05-14 20:31:54Z ian $
19235348Smarius
20238785Simpident		SAM9260EK
21235348Smarius
22238785Simpinclude "../at91/std.sam9260ek"
23235348Smarius
24235348Smarius# To statically compile in device wiring instead of /boot/device.hints
25238785Simphints		"SAM9260EK.hints"
26235348Smarius
27235348Smarius#makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
28235348Smarius
29235348Smariusoptions 	SCHED_4BSD		# 4BSD scheduler
30235348Smarius#options 	PREEMPTION		# Enable kernel thread preemption
31235348Smariusoptions 	INET			# InterNETworking
32235348Smarius#options 	INET6			# IPv6 communications protocols
33235348Smarius#options 	SCTP			# Stream Control Transmission Protocol
34235348Smariusoptions 	FFS			# Berkeley Fast Filesystem
35235348Smariusoptions 	SOFTUPDATES		# Enable FFS soft updates support
36235348Smarius#options 	UFS_ACL			# Support for access control lists
37235348Smariusoptions 	UFS_DIRHASH		# Improve performance on big directories
38235348Smarius#options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
39235348Smarius#options 	MD_ROOT			# MD is a potential root device
40266087Sianoptions 	NANDFS			# NAND file system
41235348Smariusoptions 	NFSCL			# New Network Filesystem Client
42235348Smarius#options 	NFSD			# New Network Filesystem Server
43235348Smariusoptions 	NFSLOCKD		# Network Lock Manager
44235348Smariusoptions 	NFS_ROOT		# NFS usable as /, requires NFSCL
45235348Smarius#options 	MSDOSFS			# MSDOS Filesystem
46235348Smarius#options 	CD9660			# ISO 9660 Filesystem
47235348Smarius#options 	PROCFS			# Process filesystem (requires PSEUDOFS)
48235348Smarius#options 	PSEUDOFS		# Pseudo-filesystem framework
49235348Smarius#options 	GEOM_PART_GPT		# GUID Partition Tables.
50235348Smarius#options 	GEOM_LABEL		# Provides labelization
51235348Smarius#options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
52235348Smarius#options 	COMPAT_FREEBSD6		# Compatible with FreeBSD6
53235348Smarius#options 	COMPAT_FREEBSD7		# Compatible with FreeBSD7
54235348Smariusoptions 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
55235348Smariusoptions 	KTRACE			# ktrace(1) support
56235348Smarius#options 	STACK			# stack(9) support
57235348Smariusoptions 	SYSVSHM			# SYSV-style shared memory
58235348Smariusoptions 	SYSVMSG			# SYSV-style message queues
59235348Smariusoptions 	SYSVSEM			# SYSV-style semaphores
60235348Smariusoptions 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
61235348Smariusoptions 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
62235348Smarius#options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
63235348Smarius#options 	AUDIT			# Security event auditing
64235348Smarius#options 	CAPABILITY_MODE		# Capsicum capability mode
65235348Smarius#options 	CAPABILITIES		# Capsicum capabilities
66235348Smarius#options 	MAC			# TrustedBSD MAC Framework
67235348Smarius#options 	INCLUDE_CONFIG_FILE	# Include this file in kernel
68235348Smarius
69235348Smarius# required for netbooting
70238823Simp#options 	BOOTP
71238823Simp#options 	BOOTP_COMPAT
72238823Simp#options 	BOOTP_NFSROOT
73238823Simp#options 	BOOTP_NFSV3
74238823Simp#options 	BOOTP_WIRED_TO=ate0
75235348Smarius
76235348Smarius# alternatively, boot from a MMC/SD memory card
77238823Simp#options 	ROOTDEVNAME=\"ufs:/dev/mmcsd0s1a\"
78235348Smarius
79238823Simp# Alternatively, boot from a USB card.
80238823Simpoptions 	ROOTDEVNAME=\"ufs:/dev/da0s1a\"
81238823Simp
82235348Smarius# kernel/memory size reduction
83235348Smariusoptions 	MUTEX_NOINLINE
84235348Smariusoptions 	NO_FFS_SNAPSHOT
85235348Smariusoptions 	NO_SWAPPING
86235348Smariusoptions 	NO_SYSCTL_DESCR
87235348Smariusoptions 	RWLOCK_NOINLINE
88235348Smarius
89235348Smarius# Debugging support.  Always need this:
90235348Smarius#options 	KDB			# Enable kernel debugger support.
91235348Smarius# For minimum debugger support (stable branch) use:
92235348Smarius#options 	KDB_TRACE		# Print a stack trace for a panic.
93235348Smarius# For full debugger support use this instead:
94235348Smarius#options 	DDB			# Support DDB.
95235348Smarius#options 	GDB			# Support remote GDB.
96235348Smarius#options 	DEADLKRES		# Enable the deadlock resolver
97235348Smarius#options 	INVARIANTS		# Enable calls of extra sanity checking
98235348Smarius#options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
99235348Smarius#options 	WITNESS			# Enable checks to detect deadlocks and cycles
100235348Smarius#options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
101235348Smarius#options 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
102235348Smarius
103235348Smarius# The `bpf' device enables the Berkeley Packet Filter.
104235348Smarius# Be aware of the administrative consequences of enabling this!
105235348Smarius# Note that 'bpf' is required for DHCP.
106235348Smariusdevice		bpf		# Berkeley packet filter
107235348Smarius
108235348Smarius# Ethernet
109235348Smariusdevice		mii		# Minimal MII support
110238785Simpdevice		ate		# Atmel AT91 Ethernet driver
111235348Smarius
112235348Smarius# I2C
113235348Smariusdevice		at91_twi	# Atmel AT91 Two-wire Interface
114235348Smariusdevice		iic		# I2C generic I/O device driver
115235348Smariusdevice		iicbus		# I2C bus system
116238785Simpdevice		icee		# I2C eeprom
117235348Smarius
118235348Smarius# MMC/SD
119238823Simp# See comment for DataFlash below
120235348Smariusdevice		at91_mci	# Atmel AT91 Multimedia Card Interface
121238823Simpoptions 	AT91_MCI_HAS_4WIRE	# 4 wires
122238823Simpoptions 	AT91_MCI_SLOT_B		# Wired to slot B
123235348Smariusdevice		mmc		# MMC/SD bus
124235348Smariusdevice		mmcsd		# MMC/SD memory card
125235348Smarius
126236497Smarius# DataFlash
127238823Simp# The DataFlash and MMC card are wired together, so we must pick one or the
128238823Simp# other.  This is due to pin mux, and also due to the design of the
129238823Simp# SAM9260EK board.  SLOT A wouldn't have this issue.
130238823Simp#device		at91_spi	# Atmel AT91 Serial Peripheral Interface
131238823Simp#device		spibus		# SPI bus
132238823Simp#device		at45d		# Atmel AT45D
133238823Simp#device		geom_map	# GEOM partition mapping
134235348Smarius
135235348Smarius# Pseudo devices.
136235348Smariusdevice		loop		# Network loopback
137235348Smariusdevice		random		# Entropy device
138235348Smariusdevice		ether		# Ethernet support
139235348Smarius#device		vlan		# 802.1Q VLAN support
140235348Smarius#device		tun		# Packet tunnel.
141235348Smarius#device		md		# Memory "disks"
142235348Smarius#device		gif		# IPv6 and IPv4 tunneling
143235348Smarius#device		faith		# IPv6-to-IPv4 relaying (translation)
144235348Smarius#device		firmware	# firmware assist module
145235348Smarius
146235348Smarius# SCSI peripherals
147238823Simpdevice		scbus		# SCSI bus (required for ATA/SCSI)
148235348Smarius#device		ch		# SCSI media changers
149238823Simpdevice		da		# Direct Access (disks)
150235348Smarius#device		sa		# Sequential Access (tape etc)
151238823Simpdevice		cd		# CD/DVD
152238823Simpdevice		pass		# Passthrough device (direct ATA/SCSI access)
153238823Simpdevice		ses		# Enclosure Services (SES and SAF-TE)
154235348Smarius#device		ctl		# CAM Target Layer
155235348Smarius
156235348Smarius# Serial (COM) ports
157235348Smariusdevice		uart		# Multi-uart driver
158235348Smariusoptions 	ALT_BREAK_TO_DEBUGGER
159235348Smarius
160235348Smarius# USB support
161266086Sianoptions 	USB_HOST_ALIGN=32	# Align usb buffers to cache line size.
162235348Smarius#options 	USB_DEBUG	# enable debug msgs
163238823Simpdevice		ohci		# OHCI USB interface
164235348Smariusdevice		usb		# USB Bus (required)
165238823Simpdevice		umass		# Disks/Mass storage - Requires scbus and da
166235348Smarius
167235348Smarius# watchdog
168235348Smariusdevice		at91_wdt	# Atmel AT91 Watchdog Timer
169266087Sian
170266087Sian# NAND Flash - Reference design has Samsung 256MB but others possible
171266087Siandevice		nand			# NAND interface on CS3
172