Home | History | Annotate | Line # | Download | only in conf
      1 #	$NetBSD: NETWALKER,v 1.44 2025/10/09 06:15:17 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_CORTEX	# 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 #  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
     33 options 	BOOT_ARGS="\"verbose console=fb\""
     34 #options 	BOOT_ARGS="\"verbose\""
     35 
     36 # Kernel root file system and dump configuration.
     37 config		netbsd		root on ? type ?
     38 config		netbsd-ld0	root on ld0 type ffs
     39 
     40 # The main bus device
     41 mainbus0	at root
     42 
     43 # The boot cpu
     44 cpu0		at mainbus?
     45 
     46 # Devices
     47 # On-chip
     48 # On-chip bus
     49 axi0		at mainbus?
     50 
     51 # Interrupt Controller
     52 tzic0		at axi? addr 0xe0000000 size 0x4000 irqbase 0
     53 
     54 # Serial
     55 imxuart0	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
     61 imxccm0		at axi? addr 0x73fd4000
     62 options		IMX51_CKIL_FREQ=32768
     63 #options	IMXCCMDEBUG
     64 
     65 # Enhanced Periodic Interrupt Timer
     66 imxclock0	at axi? addr 0x73fac000 size 0x4000 irq 40
     67 imxclock1	at axi? addr 0x73fb0000 size 0x4000 irq 41
     68 
     69 # IOMUX
     70 imxiomux0	at axi? addr 0x73fa8000
     71 
     72 # WatchDog
     73 imxwdog0	at axi? addr 0x73f98000 irq 58 flags 0
     74 
     75 # GPIO
     76 imxgpio0	at axi? addr 0x73f84000 irqbase 128 irq 50
     77 imxgpio1	at axi? addr 0x73f88000 irqbase 160 irq 52
     78 imxgpio2	at axi? addr 0x73f8c000 irqbase 192 irq 54
     79 imxgpio3	at axi? addr 0x73f90000 irqbase 224 irq 56
     80 gpio*		at imxgpio?
     81 
     82 # I2C
     83 imxi2c0		at axi? addr 0x83fc8000 irq 62
     84 imxi2c1		at axi? addr 0x83fc4000 irq 63
     85 
     86 # IIC
     87 iic*		at imxi2c?
     88 
     89 # SPI bus
     90 imxspi0		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
     93 spi0		at imxspi0 # eCSPI1
     94 #spi1		at imxspi1 # eCSPI2
     95 #spi2		at imxspi2 # CSPI1
     96 options		IMXSPINSLAVES=3
     97 #options	IMXSPI_DEBUG=10
     98 
     99 # Optical Joystick
    100 oj6sh0		at spi0 slave 2
    101 #options	OJ6SH_DEBUG=4
    102 options		OJ6SH_UP_X_LEFT_Y
    103 wsmouse*	at oj6sh? mux 0
    104 
    105 mousebtn0	at gpio1 offset 22 mask 0x03 # intr 182, 183
    106 #options	MOUSEBTN_POLLING
    107 wsmouse*	at mousebtn? mux 0
    108 
    109 pwrbtn0		at gpio1 offset 21 mask 0x01 # intr 181
    110 lidsw0		at gpio3 offset 12 mask 0x01 # intr 236
    111 imxpwm0		at axi? addr 0x73FB4000 irq 61
    112 
    113 # SPI NOR-Flash
    114 spiflash0	at spiflashbus?
    115 m25p0		at spi0 slave 1
    116 
    117 # SD/MMC
    118 sdhc0    	at axi? addr 0x70004000 irq 1	     # eSDHC1
    119 #sdhc1   	at axi? addr 0x70008000 irq 2	     # eSDHC2
    120 sdmmc*		at sdhc?
    121 ld*		at sdmmc?			# MMC/SD card
    122 #options 	SDHC_DEBUG
    123 #options 	SDMMC_DEBUG
    124 
    125 # USB
    126 imxusbc0  at axi?  addr 0x73f80000
    127 ehci0	  at imxusbc0	unit 0	irq 18 # OTG
    128 ehci1	  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 
    132 usb*		at ehci?
    133 
    134 # USB device drivers
    135 include "dev/usb/usbdevices.config"
    136 
    137 midi*		at midibus?
    138 
    139 rgephy*		at mii? phy ?
    140 rlphy*		at mii? phy ?
    141 ukphy*		at mii? phy ?
    142 
    143 # IPUv3 LCD Controller
    144 ipu0		at axi?
    145 #options	IPUV3_DEBUG=1
    146 #options	LCD_DEBUG
    147 
    148 # Framebuffer console
    149 genfb*		at ipu?
    150 wsdisplay*	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
    155 options 	VCONS_DRAW_INTR
    156 options 	WSEMUL_VT100		# sun terminal emulation
    157 options 	WS_DEFAULT_FG=WSCOL_WHITE
    158 options 	WS_DEFAULT_BG=WSCOL_BLACK
    159 options 	WS_KERNEL_FG=WSCOL_GREEN
    160 options 	WS_KERNEL_BG=WSCOL_BLACK
    161 options 	WSDISPLAY_COMPAT_PCVT		# emulate some ioctls
    162 options 	WSDISPLAY_COMPAT_SYSCONS	# emulate some more ioctls
    163 options 	WSDISPLAY_COMPAT_USL		# wsconscfg VT handling
    164 options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
    165 options 	WSDISPLAY_DEFAULTSCREENS=4
    166 
    167 # Pseudo-Devices
    168 
    169 # wscons pseudo-devices
    170 pseudo-device	wsmux			# mouse & keyboard multiplexor
    171 pseudo-device	wsfont
    172 
    173 # Performance monitors
    174 pseudo-device	lockstat		# lock profiling
    175 
    176 # Pull in optional local configuration - always at end
    177 cinclude	"arch/evbarm/conf/NETWALKER.local"
    178