NETWALKER revision 1.36.4.1 1 # $NetBSD: NETWALKER,v 1.36.4.1 2019/06/10 22:06:04 christos 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 options IMX_GPIO_INTR_SPLIT
83
84 # I2C
85 imxi2c0 at axi? addr 0x83fc8000 irq 62
86 imxi2c1 at axi? addr 0x83fc4000 irq 63
87
88 # IIC
89 iic* at imxi2c?
90
91 # SPI bus
92 imxspi0 at axi? addr 0x70010000 irq 36 flags 1
93 #imxspi1 at axi? addr 0x83fac000 irq 37 flags 1
94 #imxspi2 at axi? addr 0x83fc0000 irq 38 flags 0
95 spi0 at imxspi0 # eCSPI1
96 #spi1 at imxspi1 # eCSPI2
97 #spi2 at imxspi2 # CSPI1
98 options IMXSPINSLAVES=3
99 #options IMXSPI_DEBUG=10
100
101 # Optical Joystick
102 oj6sh0 at spi0 slave 2
103 #options OJ6SH_DEBUG=4
104 options OJ6SH_UP_X_LEFT_Y
105 wsmouse* at oj6sh? mux 0
106
107 mousebtn0 at gpio1 offset 22 mask 0x03 # intr 182, 183
108 #options MOUSEBTN_POLLING
109 wsmouse* at mousebtn? mux 0
110
111 pwrbtn0 at gpio1 offset 21 mask 0x01 # intr 181
112 lidsw0 at gpio3 offset 12 mask 0x01 # intr 236
113 imxpwm0 at axi? addr 0x73FB4000 irq 61
114
115 # SPI NOR-Flash
116 spiflash0 at spiflashbus?
117 m25p0 at spi0 slave 1
118
119 # SD/MMC
120 sdhc0 at axi? addr 0x70004000 irq 1 # eSDHC1
121 #sdhc1 at axi? addr 0x70008000 irq 2 # eSDHC2
122 sdmmc* at sdhc?
123 ld* at sdmmc? # MMC/SD card
124 #options SDHC_DEBUG
125 #options SDMMC_DEBUG
126
127 # USB
128 imxusbc0 at axi? addr 0x73f80000
129 ehci0 at imxusbc0 unit 0 irq 18 # OTG
130 ehci1 at imxusbc0 unit 1 irq 14 # Host1
131 #ehci2 at imxusbc0 unit 2 irq 16 # Host2
132 #ehci3 at imxusbc0 unit 3 irq 17 # Host3
133
134 usb* at ehci?
135
136 # USB device drivers
137 include "dev/usb/usbdevices.config"
138
139 midi* at midibus?
140
141 rgephy* at mii? phy ?
142 rlphy* at mii? phy ?
143 ukphy* at mii? phy ?
144
145 # IPUv3 LCD Controller
146 ipu0 at axi?
147 #options IPUV3_DEBUG=1
148 #options LCD_DEBUG
149
150 # Framebuffer console
151 genfb* at ipu?
152 wsdisplay* at genfb?
153 #options GENFB_SHADOWFB
154
155 # various options for wscons - we try to look as much like a standard
156 # sun console as possible
157 options VCONS_DRAW_INTR
158 options WSEMUL_VT100 # sun terminal emulation
159 options WS_DEFAULT_FG=WSCOL_WHITE
160 options WS_DEFAULT_BG=WSCOL_BLACK
161 options WS_KERNEL_FG=WSCOL_GREEN
162 options WS_KERNEL_BG=WSCOL_BLACK
163 options WSDISPLAY_COMPAT_PCVT # emulate some ioctls
164 options WSDISPLAY_COMPAT_SYSCONS # emulate some more ioctls
165 options WSDISPLAY_COMPAT_USL # wsconscfg VT handling
166 options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
167 options WSDISPLAY_DEFAULTSCREENS=4
168
169 # Pseudo-Devices
170
171 # wscons pseudo-devices
172 pseudo-device wsmux # mouse & keyboard multiplexor
173 pseudo-device wsfont
174
175 # local configuration
176 cinclude "arch/evbarm/conf/NETWALKER.local"
177