1# $NetBSD: NETWALKER,v 1.43 2023/02/09 14:09:48 abs Exp $ 2# 3# NETWALKER -- http://www.sharp.co.jp/netwalker/ 4# 5 6include "arch/evbarm/conf/std.netwalker" 7include "arch/evbarm/conf/GENERIC.common" 8 9# CPU options 10options CPU_CORTEX # Support the ARM-v7a core 11options IMX51 12 13# Device options 14 15# Console options. also need IMXUARTCONSOLE 16options CONSDEVNAME="\"imxuart\"",CONADDR=0x73fbc000 17options CONSPEED=115200 # Console speed 18 19# Development and Debugging options 20#options DEBUG 21#options KGDB 22makeoptions DEBUG="-g" # compile full symbol table 23makeoptions COPY_SYMTAB=1 24 25# Valid options for BOOT_ARGS: 26# single Boot to single user only 27# kdb Give control to kernel debugger 28# ask Ask for file name to reboot from 29# memorydisk=<n> Set memorydisk size to <n> KB 30# quiet Show aprint_naive output 31# verbose Show aprint_normal and aprint_verbose output 32# console=(fb|serial) Select console device 33options BOOT_ARGS="\"verbose console=fb\"" 34#options BOOT_ARGS="\"verbose\"" 35 36# Kernel root file system and dump configuration. 37config netbsd root on ? type ? 38config netbsd-ld0 root on ld0 type ffs 39 40# The main bus device 41mainbus0 at root 42 43# The boot cpu 44cpu0 at mainbus? 45 46# Devices 47# On-chip 48# On-chip bus 49axi0 at mainbus? 50 51# Interrupt Controller 52tzic0 at axi? addr 0xe0000000 size 0x4000 irqbase 0 53 54# Serial 55imxuart0 at axi? addr 0x73fbc000 irq 31 # UART1 56#imxuart1 at axi? addr 0x73fc0000 irq 32 57#imxuart2 at axi? addr 0x7000c000 irq 33 58#options IMXUARTCONSOLE 59 60# Clock Control 61imxccm0 at axi? addr 0x73fd4000 62options IMX51_CKIL_FREQ=32768 63#options IMXCCMDEBUG 64 65# Enhanced Periodic Interrupt Timer 66imxclock0 at axi? addr 0x73fac000 size 0x4000 irq 40 67imxclock1 at axi? addr 0x73fb0000 size 0x4000 irq 41 68 69# IOMUX 70imxiomux0 at axi? addr 0x73fa8000 71 72# WatchDog 73imxwdog0 at axi? addr 0x73f98000 irq 58 flags 0 74 75# GPIO 76imxgpio0 at axi? addr 0x73f84000 irqbase 128 irq 50 77imxgpio1 at axi? addr 0x73f88000 irqbase 160 irq 52 78imxgpio2 at axi? addr 0x73f8c000 irqbase 192 irq 54 79imxgpio3 at axi? addr 0x73f90000 irqbase 224 irq 56 80gpio* at imxgpio? 81 82# I2C 83imxi2c0 at axi? addr 0x83fc8000 irq 62 84imxi2c1 at axi? addr 0x83fc4000 irq 63 85 86# IIC 87iic* at imxi2c? 88 89# SPI bus 90imxspi0 at axi? addr 0x70010000 irq 36 flags 1 91#imxspi1 at axi? addr 0x83fac000 irq 37 flags 1 92#imxspi2 at axi? addr 0x83fc0000 irq 38 flags 0 93spi0 at imxspi0 # eCSPI1 94#spi1 at imxspi1 # eCSPI2 95#spi2 at imxspi2 # CSPI1 96options IMXSPINSLAVES=3 97#options IMXSPI_DEBUG=10 98 99# Optical Joystick 100oj6sh0 at spi0 slave 2 101#options OJ6SH_DEBUG=4 102options OJ6SH_UP_X_LEFT_Y 103wsmouse* at oj6sh? mux 0 104 105mousebtn0 at gpio1 offset 22 mask 0x03 # intr 182, 183 106#options MOUSEBTN_POLLING 107wsmouse* at mousebtn? mux 0 108 109pwrbtn0 at gpio1 offset 21 mask 0x01 # intr 181 110lidsw0 at gpio3 offset 12 mask 0x01 # intr 236 111imxpwm0 at axi? addr 0x73FB4000 irq 61 112 113# SPI NOR-Flash 114spiflash0 at spiflashbus? 115m25p0 at spi0 slave 1 116 117# SD/MMC 118sdhc0 at axi? addr 0x70004000 irq 1 # eSDHC1 119#sdhc1 at axi? addr 0x70008000 irq 2 # eSDHC2 120sdmmc* at sdhc? 121ld* at sdmmc? # MMC/SD card 122#options SDHC_DEBUG 123#options SDMMC_DEBUG 124 125# USB 126imxusbc0 at axi? addr 0x73f80000 127ehci0 at imxusbc0 unit 0 irq 18 # OTG 128ehci1 at imxusbc0 unit 1 irq 14 # Host1 129#ehci2 at imxusbc0 unit 2 irq 16 # Host2 130#ehci3 at imxusbc0 unit 3 irq 17 # Host3 131 132usb* at ehci? 133 134# USB device drivers 135include "dev/usb/usbdevices.config" 136 137midi* at midibus? 138 139rgephy* at mii? phy ? 140rlphy* at mii? phy ? 141ukphy* at mii? phy ? 142 143# IPUv3 LCD Controller 144ipu0 at axi? 145#options IPUV3_DEBUG=1 146#options LCD_DEBUG 147 148# Framebuffer console 149genfb* at ipu? 150wsdisplay* at genfb? 151#options GENFB_SHADOWFB 152 153# various options for wscons - we try to look as much like a standard 154# sun console as possible 155options VCONS_DRAW_INTR 156options WSEMUL_VT100 # sun terminal emulation 157options WS_DEFAULT_FG=WSCOL_WHITE 158options WS_DEFAULT_BG=WSCOL_BLACK 159options WS_KERNEL_FG=WSCOL_GREEN 160options WS_KERNEL_BG=WSCOL_BLACK 161options WSDISPLAY_COMPAT_PCVT # emulate some ioctls 162options WSDISPLAY_COMPAT_SYSCONS # emulate some more ioctls 163options WSDISPLAY_COMPAT_USL # wsconscfg VT handling 164options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes 165options WSDISPLAY_DEFAULTSCREENS=4 166 167# Pseudo-Devices 168 169# wscons pseudo-devices 170pseudo-device wsmux # mouse & keyboard multiplexor 171pseudo-device wsfont 172 173# Pull in optional local configuration - always at end 174cinclude "arch/evbarm/conf/NETWALKER.local" 175