1237883Simp# Kernel configuration to test compile all the atmel bits with one
2237883Simp# configuration.  This kernel will not (presently) boot.  Do not copy
3237883Simp# it to create your own custom config file.
4237883Simp#
5237883Simp# $FreeBSD: releng/10.3/sys/arm/conf/ATMEL 283930 2015-06-02 21:24:47Z imp $
6237883Simp
7237883Simpident		ATMEL
8237883Simp
9237883Simpinclude "../at91/std.atmel"
10237883Simp
11238956Simp# Typical values for most SoCs and board configurations.  Will not work for
12238956Simp# at91sam9g45 or on some boards with non u-boot boot loaders.
13237883Simpmakeoptions	KERNPHYSADDR=0x20000000
14237883Simpmakeoptions	KERNVIRTADDR=0xc0000000
15237883Simpoptions 	KERNPHYSADDR=0x20000000
16237883Simpoptions 	KERNVIRTADDR=0xc0000000
17237883Simp
18283930Simpmakeoptions	MODULES_OVERRIDE="dtb/atmel"
19237883Simp
20237883Simp# list all boards here, but not just yet (no multiboard in mainline).
21238189Simpoptions 	ARM_MANY_BOARD
22238189Simpdevice		at91_board_bwct
23238189Simpdevice		at91_board_ethernut5
24238189Simpdevice		at91_board_hl200
25238189Simpdevice		at91_board_hl201
26238189Simpdevice		at91_board_kb920x
27238189Simpdevice		at91_board_qila9g20
28238443Simpdevice		at91_board_sam9260ek
29237883Simpdevice		at91_board_sam9g20ek
30238189Simpdevice		at91_board_sam9x25ek
31238846Simpdevice		at91_board_sn9g45
32238189Simpdevice		at91_board_tsc4370
33237883Simp
34237883Simp#makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
35237883Simp
36237883Simpoptions 	SCHED_4BSD		# 4BSD scheduler
37237883Simp#options 	PREEMPTION		# Enable kernel thread preemption
38237883Simpoptions 	INET			# InterNETworking
39237883Simpoptions 	INET6			# IPv6 communications protocols
40237883Simpoptions 	SCTP			# Stream Control Transmission Protocol
41237883Simpoptions 	FFS			# Berkeley Fast Filesystem
42237883Simpoptions 	SOFTUPDATES		# Enable FFS soft updates support
43237883Simpoptions 	UFS_ACL			# Support for access control lists
44237883Simpoptions 	UFS_DIRHASH		# Improve performance on big directories
45237883Simpoptions 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
46237883Simpoptions 	MD_ROOT			# MD is a potential root device
47237883Simpoptions 	NFSCL			# New Network Filesystem Client
48237883Simpoptions 	NFSD			# New Network Filesystem Server
49237883Simpoptions 	NFSLOCKD		# Network Lock Manager
50237883Simpoptions 	NFS_ROOT		# NFS usable as /, requires NFSCL
51266331Sianoptions 	TMPFS			# Efficient memory filesystem
52237883Simpoptions 	MSDOSFS			# MSDOS Filesystem
53237883Simpoptions 	CD9660			# ISO 9660 Filesystem
54237883Simpoptions 	PROCFS			# Process filesystem (requires PSEUDOFS)
55237883Simpoptions 	PSEUDOFS		# Pseudo-filesystem framework
56266328Sianoptions 	GEOM_PART_BSD		# BSD partition scheme
57266328Sianoptions 	GEOM_PART_MBR		# MBR partition scheme
58237883Simpoptions 	GEOM_PART_GPT		# GUID Partition Tables.
59237883Simpoptions 	GEOM_LABEL		# Provides labelization
60237883Simpoptions 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
61237883Simpoptions 	COMPAT_FREEBSD6		# Compatible with FreeBSD6
62237883Simpoptions 	COMPAT_FREEBSD7		# Compatible with FreeBSD7
63237883Simpoptions 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
64237883Simpoptions 	KTRACE			# ktrace(1) support
65237883Simpoptions 	STACK			# stack(9) support
66237883Simpoptions 	SYSVSHM			# SYSV-style shared memory
67237883Simpoptions 	SYSVMSG			# SYSV-style message queues
68237883Simpoptions 	SYSVSEM			# SYSV-style semaphores
69237883Simpoptions 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
70237883Simpoptions 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
71237883Simp#options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
72237883Simp#options 	AUDIT			# Security event auditing
73237883Simp#options 	CAPABILITY_MODE		# Capsicum capability mode
74237883Simp#options 	CAPABILITIES		# Capsicum capabilities
75237883Simp#options 	MAC			# TrustedBSD MAC Framework
76237883Simp#options 	INCLUDE_CONFIG_FILE	# Include this file in kernel
77237883Simp
78237883Simp# required for netbooting
79237883Simpoptions 	BOOTP
80237883Simpoptions 	BOOTP_COMPAT
81237883Simpoptions 	BOOTP_NFSROOT
82237883Simpoptions 	BOOTP_NFSV3
83237883Simpoptions 	BOOTP_WIRED_TO=ate0
84237883Simp
85237883Simp# alternatively, boot from a MMC/SD memory card
86237883Simp#options 	ROOTDEVNAME=\"ufs:/dev/mmcsd0a\"
87237883Simp
88237883Simp# kernel/memory size reduction
89237883Simpoptions 	MUTEX_NOINLINE
90237883Simpoptions 	NO_FFS_SNAPSHOT
91237883Simpoptions 	NO_SWAPPING
92237883Simpoptions 	NO_SYSCTL_DESCR
93237883Simpoptions 	RWLOCK_NOINLINE
94237883Simp
95237883Simp# Debugging support.  Always need this:
96237883Simpoptions 	KDB			# Enable kernel debugger support.
97237883Simp# For minimum debugger support (stable branch) use:
98237883Simpoptions 	KDB_TRACE		# Print a stack trace for a panic.
99237883Simp# For full debugger support use this instead:
100237883Simpoptions 	DDB			# Support DDB.
101237883Simpoptions 	GDB			# Support remote GDB.
102237883Simp#options 	DEADLKRES		# Enable the deadlock resolver
103237883Simp#options 	INVARIANTS		# Enable calls of extra sanity checking
104237883Simp#options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
105237883Simp#options 	WITNESS			# Enable checks to detect deadlocks and cycles
106237883Simp#options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
107237883Simp#options 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
108237883Simp
109237883Simp# The `bpf' device enables the Berkeley Packet Filter.
110237883Simp# Be aware of the administrative consequences of enabling this!
111237883Simp# Note that 'bpf' is required for DHCP.
112266328Siandevice		bpf			# Berkeley packet filter
113237883Simp
114237883Simp# Ethernet
115266328Siandevice		mii			# Minimal MII support
116266328Siandevice		ate			# Atmel AT91 Ethernet friver
117237883Simp
118237883Simp# I2C
119266328Siandevice		at91_twi		# Atmel AT91 Two-wire Interface
120266328Siandevice		iic			# I2C generic I/O device driver
121266328Siandevice		iicbus			# I2C bus system
122266328Siandevice		pcf8563			# NXP PCF8563 clock/calendar
123237883Simp
124237883Simp# MMC/SD
125266328Siandevice		at91_mci		# Atmel AT91 Multimedia Card Interface
126237883Simpoptions 	AT91_MCI_HAS_4WIRE
127266328Siandevice		mmc			# MMC/SD bus
128266328Siandevice		mmcsd			# MMC/SD memory card
129237883Simp
130237883Simp# DataFlash
131266328Siandevice		at91_spi		# Atmel AT91 Serial Peripheral Interface
132266328Siandevice		spibus			# SPI bus
133266328Siandevice		at45d			# Atmel AT45D
134266328Siandevice		geom_map		# GEOM partition mapping
135237883Simp
136237883Simp# Pseudo devices.
137266328Siandevice		loop			# Network loopback
138266328Siandevice		random			# Entropy device
139266328Siandevice		ether			# Ethernet support
140266328Siandevice		vlan			# 802.1Q VLAN support
141266328Siandevice		tun			# Packet tunnel.
142266328Siandevice		md			# Memory "disks"
143266328Siandevice		gif			# IPv6 and IPv4 tunneling
144266328Siandevice		faith			# IPv6-to-IPv4 relaying (translation)
145266328Sian#device		firmware		# firmware assist module
146237883Simp
147237883Simp# SCSI peripherals
148266328Siandevice		scbus			# SCSI bus (required for ATA/SCSI)
149266328Siandevice		ch			# SCSI media changers
150266328Siandevice		da			# Direct Access (disks)
151266328Siandevice		sa			# Sequential Access (tape etc)
152266328Siandevice		cd			# CD
153266328Siandevice		pass			# Passthrough device (direct ATA/SCSI access)
154266328Siandevice		ses			# Enclosure Services (SES and SAF-TE)
155266328Sian#device		ctl			# CAM Target Layer
156237883Simp
157237883Simp# Serial (COM) ports
158266328Siandevice		uart			# Multi-uart driver
159237883Simpoptions 	ALT_BREAK_TO_DEBUGGER
160237883Simp
161237883Simp# USB support
162266328Sianoptions 	USB_DEBUG		# enable debug msgs
163266328Siandevice		ohci			# OHCI USB interface
164266328Siandevice		usb			# USB Bus (required)
165266328Siandevice		umass			# Disks/Mass storage - Requires scbus and da
166237883Simp
167238850Simp# USB device (gadget) support
168266328Siandevice		at91_dci		# Atmel's usb device
169266328Siandevice		usfs			# emulate a flash
170266328Siandevice		cdce			# emulate an ethernet
171266328Siandevice		usb_template		# Control of the gadget
172238850Simp
173237883Simp# watchdog
174266328Siandevice		at91_wdt		# Atmel AT91 Watchdog Timer
175237883Simp
176237883Simpdevice		at91_rtc
177237883Simpdevice		at91_ssc
178266328Sian#device		at91_tc			# missing?
179266087Sian
180266087Sian# NAND Flash - Reference design has Samsung 256MB but others possible
181266087Siandevice		nand			# NAND interface on CS3
182