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