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