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