NETWALKER revision 1.33 1 # $NetBSD: NETWALKER,v 1.33 2015/04/10 10:58:07 hkenken 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 options DIAGNOSTIC # internal consistency checks
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 #options BOOT_ARGS="\"verbose\""
34
35 # Kernel root file system and dump configuration.
36 config netbsd root on ? type ?
37 config netbsd-ld0 root on ld0 type ffs
38
39 # The main bus device
40 mainbus0 at root
41
42 # The boot cpu
43 cpu0 at mainbus?
44
45 # Devices
46 # On-chip
47 # On-chip bus
48 axi0 at mainbus?
49
50 # Interrupt Cotroller
51 tzic0 at axi? addr 0xe0000000 size 0x4000 irqbase 0
52
53 # Serial
54 imxuart0 at axi? addr 0x73fbc000 irq 31 # UART1
55 #imxuart1 at axi? addr 0x73fc0000 irq 32
56 #imxuart2 at axi? addr 0x7000c000 irq 33
57 #options IMXUARTCONSOLE
58
59 # Clock Control
60 imxccm0 at axi? addr 0x73fd4000
61 options IMX51_CKIL_FREQ=32768
62 #options IMXCCMDEBUG
63
64 # Enhanced Periodic Interrupt Timer
65 imxclock0 at axi? addr 0x73fac000 size 0x4000 irq 40
66 imxclock1 at axi? addr 0x73fb0000 size 0x4000 irq 41
67
68 # IOMUX
69 imxiomux0 at axi? addr 0x73fa8000
70
71 # WatchDog
72 imxwdog0 at axi? addr 0x73f98000 irq 58 flags 0
73
74 # GPIO
75 imxgpio0 at axi? addr 0x73f84000 irqbase 128 irq 50
76 imxgpio1 at axi? addr 0x73f88000 irqbase 160 irq 52
77 imxgpio2 at axi? addr 0x73f8c000 irqbase 192 irq 54
78 imxgpio3 at axi? addr 0x73f90000 irqbase 224 irq 56
79 gpio* at imxgpio?
80 options IMX_GPIO_INTR_SPLIT
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 ukphy* at mii? phy ?
140
141 # IPUv3 LCD Controller
142 ipu0 at axi?
143 wsdisplay0 at wsemuldisplaydev? console ?
144 wsdisplay* at wsemuldisplaydev?
145 #options IPUV3_DEBUG=1
146 #options LCD_DEBUG
147 options IMXIPUCONSOLE
148
149 # various options for wscons - we try to look as much like a standard
150 # sun console as possible
151 options WSEMUL_VT100 # sun terminal emulation
152 options WS_DEFAULT_FG=WSCOL_WHITE
153 options WS_DEFAULT_BG=WSCOL_BLACK
154 options WS_KERNEL_FG=WSCOL_GREEN
155 options WS_KERNEL_BG=WSCOL_BLACK
156 options WSDISPLAY_COMPAT_PCVT # emulate some ioctls
157 options WSDISPLAY_COMPAT_USL # wsconscfg VT handling
158 options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
159 options WSDISPLAY_DEFAULTSCREENS=4
160
161 # Pseudo-Devices
162
163 # wscons pseudo-devices
164 pseudo-device wsmux # mouse & keyboard multiplexor
165 pseudo-device wsfont
166
167 # local configuration
168 cinclude "arch/evbarm/conf/NETWALKER.local"
169