xref: /freebsd-11-stable/sys/arm/conf/SAM9260EK (revision 7b3c77a2bb9e605384d3ef7acfdfa9ffe806137a)
1# Kernel configuration for Atmel SAM9260-EK eval board
2#
3# For more information on this file, please read the config(5) manual page,
4# and/or the handbook section on Kernel Configuration Files:
5#
6#    http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
7#
8# The handbook is also available locally in /usr/share/doc/handbook
9# if you've installed the doc distribution, otherwise always see the
10# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
11# latest information.
12#
13# An exhaustive list of options and more detailed explanations of the
14# device lines is also present in the ../../conf/NOTES and NOTES files.
15# If you are in doubt as to the purpose or necessity of a line, check first
16# in NOTES.
17#
18# $FreeBSD$
19
20#NO_UNIVERSE
21
22ident		SAM9260EK
23
24include 	"std.arm"
25include 	"../at91/std.sam9260ek"
26
27# Coming soon, but not yet
28#options 	FDT
29#options 	FDT_DTB_STATIC
30#makeoptions	FDT_DTS_FILE=sam9260ek.dts
31
32options 	EARLY_PRINTF
33options 	SOCDEV_PA=0xfc000000
34options 	SOCDEV_VA=0xdc000000
35
36# To statically compile in device wiring instead of /boot/device.hints
37hints		"SAM9260EK.hints"
38
39makeoptions	MODULES_OVERRIDE=""
40
41options 	SCHED_4BSD		# 4BSD scheduler
42#options 	PREEMPTION		# Enable kernel thread preemption
43options 	INET			# InterNETworking
44#options 	INET6			# IPv6 communications protocols
45#options 	SCTP			# Stream Control Transmission Protocol
46options 	FFS			# Berkeley Fast Filesystem
47options 	SOFTUPDATES		# Enable FFS soft updates support
48#options 	UFS_ACL			# Support for access control lists
49options 	UFS_DIRHASH		# Improve performance on big directories
50#options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
51#options 	MD_ROOT			# MD is a potential root device
52options 	NANDFS			# NAND file system
53options 	NFSCL			# Network Filesystem Client
54#options 	NFSD			# Network Filesystem Server
55options 	NFSLOCKD		# Network Lock Manager
56options 	NFS_ROOT		# NFS usable as /, requires NFSCL
57options 	TMPFS			# Efficient memory filesystem
58#options 	MSDOSFS			# MSDOS Filesystem
59#options 	CD9660			# ISO 9660 Filesystem
60#options 	PROCFS			# Process filesystem (requires PSEUDOFS)
61#options 	PSEUDOFS		# Pseudo-filesystem framework
62options 	GEOM_PART_BSD		# BSD partition scheme
63options 	GEOM_PART_MBR		# MBR partition scheme
64#options 	GEOM_PART_GPT		# GUID Partition Tables.
65#options 	GEOM_LABEL		# Provides labelization
66options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
67options 	KTRACE			# ktrace(1) support
68#options 	STACK			# stack(9) support
69options 	SYSVSHM			# SYSV-style shared memory
70options 	SYSVMSG			# SYSV-style message queues
71options 	SYSVSEM			# SYSV-style semaphores
72options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
73options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
74#options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
75#options 	AUDIT			# Security event auditing
76#options 	CAPABILITY_MODE		# Capsicum capability mode
77#options 	CAPABILITIES		# Capsicum capabilities
78#options 	MAC			# TrustedBSD MAC Framework
79#options 	INCLUDE_CONFIG_FILE	# Include this file in kernel
80
81# NFS root from boopt/dhcp
82#options 	BOOTP
83#options 	BOOTP_NFSROOT
84#options 	BOOTP_COMPAT
85#options 	BOOTP_NFSV3
86#options 	BOOTP_WIRED_TO=macb0
87
88# s3 because s1 is reserved for the DOS parittions sometimes needed to
89# boot off SD cards on the G20 and newer chips. s2 is reserved for
90# nanobsd's config partition. s3 and s4 are for the ping-pong upgrade
91# path. 9260 doesn't boot off SD, but let's keep things sane.
92options 	ROOTDEVNAME=\"ufs:/dev/mmcsd0s3a\"
93
94# Alternatively, boot from a USB card.
95#options 	ROOTDEVNAME=\"ufs:/dev/da0s1a\"
96
97# kernel/memory size reduction
98options 	MUTEX_NOINLINE
99options 	NO_FFS_SNAPSHOT
100options 	NO_SWAPPING
101options 	NO_SYSCTL_DESCR
102options 	RWLOCK_NOINLINE
103
104# The `bpf' device enables the Berkeley Packet Filter.
105# Be aware of the administrative consequences of enabling this!
106# Note that 'bpf' is required for DHCP.
107device		bpf			# Berkeley packet filter
108
109# Ethernet
110device		mii			# Minimal MII support
111device		macb			# Atmel AT91 Ethernet driver
112
113# I2C
114device		at91_twi		# Atmel AT91 Two-wire Interface
115device		iic			# I2C generic I/O device driver
116device		iicbus			# I2C bus system
117device		icee			# I2C eeprom
118
119# MMC/SD
120# See comment for DataFlash below
121device		at91_mci		# Atmel AT91 Multimedia Card Interface
122options 	AT91_MCI_HAS_4WIRE	# 4 wires
123options 	AT91_MCI_SLOT_B		# Wired to slot B
124device		mmc			# MMC/SD bus
125device		mmcsd			# MMC/SD memory card
126
127# DataFlash
128# The DataFlash and MMC card are wired together, so we must pick one or the
129# other.  This is due to pin mux, and also due to the design of the
130# SAM9260EK board.  SLOT A wouldn't have this issue.
131#device		at91_spi		# Atmel AT91 Serial Peripheral Interface
132#device		spibus			# SPI bus
133#device		at45d			# Atmel AT45D
134#device		geom_map		# GEOM partition mapping
135
136# Pseudo devices.
137device		loop			# Network loopback
138device		random			# Entropy device
139device		ether			# Ethernet support
140#device		vlan			# 802.1Q VLAN support
141#device		tun			# Packet tunnel.
142device		md			# Memory "disks"
143#device		gif			# IPv6 and IPv4 tunneling
144#device		firmware		# firmware assist module
145
146# SCSI peripherals
147#device		scbus			# SCSI bus (required for ATA/SCSI)
148#device		ch			# SCSI media changers
149#device		da			# Direct Access (disks)
150#device		sa			# Sequential Access (tape etc)
151#device		cd			# CD/DVD
152#device		pass			# Passthrough device (direct ATA/SCSI access)
153#device		ses			# Enclosure Services (SES and SAF-TE)
154#device		ctl			# CAM Target Layer
155
156# Serial (COM) ports
157device		uart			# Multi-uart driver
158
159# USB support
160#device		ohci			# OHCI USB interface
161#device		usb			# USB Bus (required)
162#device		umass			# Disks/Mass storage - Requires scbus and da
163
164# watchdog
165device		at91_wdt		# Atmel AT91 Watchdog Timer
166
167# NAND Flash - Reference design has Samsung 256MB but others possible
168device		nand			# NAND interface on CS3
169
170options		NSFBUFS=128
171maxusers	32
172
173# Limit IO size
174options		NBUF=128
175
176# Don't include the SCSI/CAM strings in the default build
177options 	SCSI_NO_SENSE_STRINGS
178options 	SCSI_NO_OP_STRINGS
179
180# .. And no sysctl strings
181options 	NO_SYSCTL_DESCR
182
183# For small memory footprints
184options		VM_KMEM_SIZE_SCALE=1
185