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