RPI revision 1.62
1#
2#	$NetBSD: RPI,v 1.62 2015/04/18 11:30:22 skrll Exp $
3#
4#	RPi -- Raspberry Pi
5#
6
7include	"arch/evbarm/conf/std.rpi"
8include "arch/evbarm/conf/GENERIC.common"
9
10# CPU options
11
12options 	CPU_ARM1176
13options 	TPIDRPRW_IS_CURLWP
14options 	ARM11_COMPAT_MMU
15options 	__HAVE_MM_MD_CACHE_ALIASING
16makeoptions 	CPUFLAGS="-march=armv6z -mtune=arm1176jzf-s -mfpu=vfp"
17
18# Architecture options
19
20# Development and Debugging options
21#options 	KGDB,KGDB_PLCOMUNIT=0,KGDB_DEVRATE=115200,KGDB_CONMODE=0xB00
22makeoptions	DEBUG="-g"	# compile full symbol table
23makeoptions	COPY_SYMTAB=1
24options 	PLCONSOLE
25#options 	PLCONSOLE,PLCOMCNUNIT=0,PLCONSPEED=115200,PLCONMODE=0xB00
26
27## USB Debugging options
28options USB_DEBUG
29#options EHCI_DEBUG
30#options OHCI_DEBUG
31#options UHUB_DEBUG
32
33
34# Valid options for BOOT_ARGS:
35#  single		Boot to single user only
36#  kdb			Give control to kernel debugger
37#  ask			Ask for file name to reboot from
38#  pmapdebug=<n>	If PMAP_DEBUG, set pmap_debug_level to <n>
39#  memorydisk=<n>	Set memorydisk size to <n> KB
40#  quiet		Show aprint_naive output
41#  verbose		Show aprint_normal and aprint_verbose output
42#options		BOOT_ARGS="\"\""
43
44config		netbsd		root on ? type ?
45
46# The main bus device
47mainbus0	at root
48
49# The CPU(s)
50cpu*		at mainbus?
51
52# OBIO
53obio0		at mainbus?
54
55# Interrupt Controller
56bcmicu0		at obio?
57
58# VC Mailbox
59bcmmbox0	at obio?
60vcmbox0 	at bcmmbox0
61
62# DMA Controller
63bcmdmac0	at obio?
64
65# VCHIQ
66vchiq0		at obio?
67
68# AUDS
69vcaudio0	at vchiq0
70audio0		at vcaudio0
71
72# PL011 uart
73plcom0		at obio?
74
75# Framebuffer console
76genfb0		at obio?
77wsdisplay*	at genfb?
78options		VCONS_DRAW_INTR
79#options 	RPI_HWCURSOR
80
81# System timer
82bcmtmr0		at obio?
83
84# Power management, Reset controller and Watchdog registers
85bcmpm0		at obio?
86
87# Random number generator
88bcmrng0 	at obio?
89
90# GPIO
91bcmgpio0	at obio?	# pins  0 ... 31
92bcmgpio1	at obio?	# pins 32 ... 53
93
94# Arasan SD/MMC Interface
95sdhc* at obio?
96sdmmc*  at sdhc?
97
98ld*     at sdmmc?
99
100# On-board USB
101dwctwo* 	at obio?
102usb* 		at dwctwo?
103
104# USB device drivers
105include "dev/usb/usbdevices.config"
106
107midi*		at midibus?
108
109# MII/PHY support
110exphy* 		at mii? phy ?		# 3Com internal PHYs
111gentbi* 	at mii? phy ?		# Generic Ten-Bit 1000BASE-[CLS]X PHYs
112glxtphy*	at mii? phy ?		# Level One LXT-1000 PHYs
113gphyter* 	at mii? phy ?		# NS83861 Gig-E PHY
114icsphy*		at mii? phy ?		# Integrated Circuit Systems ICS189x
115igphy*		at mii? phy ?		# Intel IGP01E1000
116ihphy*		at mii? phy ?		# Intel 82577 PHYs
117ikphy*		at mii? phy ?		# Intel 82563 PHYs
118inphy*		at mii? phy ?		# Intel 82555 PHYs
119iophy*		at mii? phy ?		# Intel 82553 PHYs
120lxtphy*		at mii? phy ?		# Level One LXT-970 PHYs
121makphy*		at mii? phy ?		# Marvell Semiconductor 88E1000 PHYs
122nsphy*		at mii? phy ?		# NS83840 PHYs
123nsphyter*	at mii? phy ? 		# NS83843 PHYs
124pnaphy*		at mii? phy ?		# generic HomePNA PHYs
125qsphy*		at mii? phy ?		# Quality Semiconductor QS6612 PHYs
126rdcphy*		at mii? phy ?		# RDC R6040 10/100 PHY
127rgephy*		at mii? phy ?		# Realtek 8169S/8110S internal PHYs
128rlphy*		at mii? phy ?		# Realtek 8139/8201L PHYs
129sqphy*		at mii? phy ?		# Seeq 80220/80221/80223 PHYs
130tlphy*		at mii? phy ?		# ThunderLAN PHYs
131tqphy*		at mii? phy ?		# TDK Semiconductor PHYs
132urlphy*		at mii? phy ?		# Realtek RTL8150L internal PHYs
133ukphy*		at mii? phy ?		# generic unknown PHYs
134
135# Broadcom Serial Control (I2C)
136bsciic* at obio?
137iic* at i2cbus?
138
139# 'DS3231 Raspberry Pi RTC Board Real Time Clock Module for Arduino'
140# sold by linksprite.com
141#dsrtc* at iic1 addr 0x68 flags 3231
142
143# SPI controller
144bcmspi* at obio?
145spi* at spibus?
146
147# PIFace or other boards using that chip (needs gpio)
148#mcp23s17gpio0 at spi? slave 0 flags 0
149#mcp23s17gpio1 at spi? slave 0 flags 1
150#mcp23s17gpio2 at spi? slave 0 flags 2
151#mcp23s17gpio3 at spi? slave 0 flags 3
152
153# gpio support (e. g. mcp23s17gpio, bcmgpio)
154gpio*		at gpiobus?
155
156# various options for wscons - we try to look as much like a standard
157# sun console as possible
158options 	WSEMUL_VT100		# sun terminal emulation
159options 	WS_DEFAULT_FG=WSCOL_WHITE
160options 	WS_DEFAULT_BG=WSCOL_BLACK
161options 	WS_KERNEL_FG=WSCOL_GREEN
162options 	WS_KERNEL_BG=WSCOL_BLACK
163options 	WSDISPLAY_COMPAT_PCVT		# emulate some ioctls
164options 	WSDISPLAY_COMPAT_SYSCONS	# emulate some more ioctls
165options 	WSDISPLAY_COMPAT_USL		# wsconscfg VT handling
166options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
167options 	WSDISPLAY_DEFAULTSCREENS=4
168
169#options 	FONT_QVSS8x15
170#options 	FONT_GALLANT12x22	# the console font
171
172# Pseudo-Devices
173
174# network pseudo-devices
175#pseudo-device	carp			# Common Address Redundancy Protocol
176#pseudo-device	ipfilter		# IP filter (firewall) and NAT
177#pseudo-device	kttcp			# network loopback
178#pseudo-device	ppp			# Point-to-Point Protocol
179#pseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
180#options 	PPPOE_SERVER		# Enable PPPoE server via link0
181#pseudo-device	sl			# Serial Line IP
182#pseudo-device	strip			# Starmode Radio IP (Metricom)
183#pseudo-device	irframetty		# IrDA frame line discipline
184#pseudo-device	tap			# virtual Ethernet
185#pseudo-device	tun			# network tunneling over tty
186#pseudo-device	gre			# generic L3 over IP tunnel
187#pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC 1933)
188#pseudo-device	faith			# IPv[46] TCP relay translation i/f
189#pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
190#pseudo-device	vlan			# IEEE 802.1q encapsulation
191#pseudo-device	bridge			# simple inter-network bridging
192#options	BRIDGE_IPF		# bridge uses IP/IPv6 pfil hooks too
193#pseudo-device	agr			# IEEE 802.3ad link aggregation
194#pseudo-device	pf			# PF packet filter
195#pseudo-device	pflog			# PF log if
196
197# miscellaneous pseudo-devices
198
199# wscons pseudo-devices
200pseudo-device	wsmux			# mouse & keyboard multiplexor
201pseudo-device	wsfont
202
203# data mover pseudo-devices
204#pseudo-device	swdmover		# software dmover(9) back-end
205#pseudo-device	dmoverio		# /dev/dmover dmover(9) interface
206
207# userland interface to drivers, including autoconf and properties retrieval
208
209# local configuration
210cinclude "arch/evbarm/conf/RPI.local"
211