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