CI20 revision 1.26
1#	$NetBSD: CI20,v 1.26 2018/08/01 20:04:11 maxv Exp $
2#
3# MIPS Creator CI20
4#
5
6include 	"arch/evbmips/conf/std.ingenic"
7
8#options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
9
10#ident 		"CI20-$Revision: 1.26 $"
11
12maxusers	32
13
14#makeoptions	COPTS="-Os"		# Optimise for space. Implies -O2
15
16options 	MIPS32R2
17makeoptions	CPUFLAGS+="-mips32r2"
18makeoptions	NEED_BINARY="yes"
19makeoptions	NEED_UBOOTIMAGE="gz"
20options 	COM_TOLERANCE=50	# +/- 5%
21options 	CONSPEED=115200	# u-boot default
22
23# Options for necessary to use MD
24#makeoptions	NEED_MDSETIMAGE="yes"
25#options 	MEMORY_DISK_HOOKS
26#options 	MEMORY_DISK_IS_ROOT	# force root on memory disk
27#options 	MEMORY_DISK_SERVER=0	# no userspace memory disk support
28#options 	MEMORY_DISK_ROOT_SIZE=6144	# size of memory disk, in blocks
29#options 	MEMORY_DISK_ROOT_SIZE=16384	# size of memory disk, in blocks
30#options 	MEMORY_DISK_ROOT_SIZE=7300
31
32# Size reduction options
33#options 	VNODE_OP_NOINLINE
34#options 	PIPE_SOCKETPAIR
35options		SOSEND_NO_LOAN
36
37# Standard system options
38options 	KTRACE		# system call tracing support
39#options 	SYSVMSG		# System V message queues
40#options 	SYSVSEM		# System V semaphores
41#options 	SYSVSHM		# System V shared memory
42options 	NTP		# network time protocol
43
44# Debugging options
45options 	DIAGNOSTIC	# extra kernel sanity checking
46#options 	DEBUG		# extra kernel debugging support
47#options 	USERCONF	# userconf(4) support
48#options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
49options 	DDB		# kernel dynamic debugger
50options 	DDB_HISTORY_SIZE=100 # enable history editing in DDB
51makeoptions 	DEBUG="-g"	# compile full symbol table
52makeoptions	COPY_SYMTAB=1	# size for embedded symbol table
53
54#options 	INGENIC_DEBUG
55#options 	INGENIC_CLOCK_DEBUG
56#options 	INGENIC_INTR_DEBUG	# *very* spammy
57
58# Compatibility options
59include         "conf/compat_netbsd16.config"
60
61#options 	EXEC_ECOFF	# exec ECOFF binaries
62#options 	COMPAT_ULTRIX	# binary compatibility with Ultrix
63
64# File systems
65file-system	FFS		# Berkeley Fast Filesystem
66#file-system	MFS		# memory-based filesystem
67#file-system 	EXT2FS		# second extended file system (linux)
68file-system	NFS		# Sun NFS-compatible filesystem client
69file-system	KERNFS		# kernel data-structure filesystem
70#file-system	NULLFS		# NULL layered filesystem
71#file-system 	OVERLAY		# overlay file system
72#file-system	FDESC		# user file descriptor filesystem
73#file-system	UMAPFS		# uid/gid remapping filesystem
74#file-system	LFS		# Log-based filesystem (still experimental)
75file-system	PROCFS		# /proc
76#file-system	CD9660		# ISO 9660 + Rock Ridge file system
77#file-system	UNION		# union file system
78file-system	MSDOSFS		# MS-DOS FAT filesystem(s).
79#file-system 	CODA		# Coda File System; also needs vcoda (below)
80file-system	PTYFS		# /dev/pts/N support
81file-system	TMPFS		# Efficient memory file-system
82
83# File system options
84#options 	NFSSERVER	# Sun NFS-compatible filesystem server
85#options 	QUOTA		# legacy UFS quotas
86#options 	QUOTA2		# new, in-filesystem UFS quotas
87#options 	DISKLABEL_EI	# disklabel Endian Independent support
88#options 	FFS_EI		# FFS Endian Independent support
89options 	WAPBL		# File system journaling support
90options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
91#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
92				# immutable) behave as system flags.
93
94# Networking options
95#options 	GATEWAY		# IP packet forwarding
96options 	INET		# Internet protocols
97options 	INET6		# IPV6
98#options 	IPSEC		# IP security
99#options 	IPSEC_DEBUG	# debug for IP security
100#options 	MROUTING	# packet forwarding of multicast packets
101#options 	PIM		# Protocol Independent Multicast
102#options 	NETATALK	# AppleTalk (over Ethernet) protocol
103#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
104#options 	PPP_DEFLATE	# Deflate compression support for PPP
105#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
106
107# JIT compiler for bpfilter
108#options	SLJIT
109#options	BPFJIT
110
111# These options enable verbose messages for several subsystems.
112# Warning, these may compile large string tables into the kernel!
113options 	MIIVERBOSE	# verbose PHY autoconfig messages
114
115options 	NFS_BOOT_BOOTP
116options 	NFS_BOOT_DHCP
117#options 	NFS_V2_ONLY
118
119config		netbsd	root on sd0a type ffs
120#config		netbsd	root on axe0 type nfs
121#config		netbsd	root on dme0 type nfs
122
123mainbus0 	at root
124#options 	MULTIPROCESSOR
125
126cpu* 		at mainbus?
127#wdog0		at mainbus?
128apbus0		at mainbus?
129
130# On-chip UARTs
131com*		at apbus?
132
133# EFUSE
134efuse* 		at apbus?
135
136# On-chip USB
137dwctwo* 	at apbus?
138#options 	DWC2_DEBUG
139usb* 		at dwctwo?
140
141ohci*		at apbus?
142usb* 		at ohci?
143
144# this one doesn't work right just yet
145ehci*		at apbus?
146#options 	INGENIC_EHCI_DEBUG
147#options 	EHCI_DEBUG
148#options 	USBVERBOSE
149#options 	USBHIST
150usb* 		at ehci?
151
152# onboard ethernet
153dme*		at apbus?
154
155# I2C/SMBus
156jziic* 		at apbus?
157#options 	JZIIC_DEBUG	# spammy
158iic* 		at jziic?
159
160# voltage control and the like, no driver yet
161#act8600pm0 	at iic0 addr 0x5a
162
163# XXX
164# the manual says there's a Pericom RTC at SMB4 addr 0x68
165# on my preproduction CI20 that's not the case, instead there's something that
166# looks like a PCF8563 at addr 0x51
167 
168# the Pericom PT7C4337 seems to be a DS1339 clone
169#dsrtc0 	at iic4 addr 0x68 flags 1339
170
171# at least some CI20 have this instead
172pcf8563rtc0	at iic4 addr 0x51
173
174#jzgpio* 	at apbus? addr ?
175#gpio*		at jzgpio?
176
177# MSC / SDMMC - unfinished
178#jzmmc* 		at apbus?
179#options 	JZMMC_DEBUG
180#sdmmc* 		at jzmmc?
181#ld* 		at sdmmc?
182
183# USB stuff
184uhub*		at usb?
185uhub*		at uhub? port ?
186
187# USB HID device
188uhidev*	at uhub? port ? configuration ? interface ?
189
190# USB Mice
191ums*		at uhidev? reportid ?
192wsmouse*	at ums? mux 0
193
194# USB Keyboards
195ukbd*	at uhidev? reportid ?
196wskbd*	at ukbd? console ? mux 1
197
198# USB Generic HID devices
199uhid*	at uhidev? reportid ?
200
201# USB Mass Storage
202umass*	at uhub? port ? configuration ? interface ?
203scsibus*	at umass? channel ?
204sd*		at scsibus? target ? lun ?	# SCSI disk drives
205cd*		at scsibus? target ? lun ?	# SCSI CD-ROM drives
206
207# Ethernet
208#axe*	at uhub? port ?
209#urtwn*	at uhub? port ?
210
211# Random number generator
212jzrng0	at apbus0
213
214# MII/PHY support
215#acphy*		at mii? phy ?		# DAltima AC101 and AMD Am79c874 PHYs
216#amhphy* 	at mii? phy ?		# AMD 79c901 Ethernet PHYs
217#dmphy*		at mii? phy ?		# Davicom DM9101 PHYs
218#glxtphy*	at mii? phy ?		# Level One LXT-1000 PHYs
219#gphyter*	at mii? phy ?		# NS83861 Gig-E PHY
220#icsphy* 	at mii? phy ?		# Integrated Circuit Systems ICS1890
221#lxtphy* 	at mii? phy ?		# Level One LXT-970 PHYs
222#makphy* 	at mii? phy ?		# Marvell Semiconductor 88E1000 PHYs
223#nsphy*		at mii? phy ?		# NS83840 PHYs
224#nsphyter*	at mii? phy ?		# NS83843 PHYs
225#pnaphy* 	at mii? phy ?		# generic HomePNA PHYs
226#qsphy*		at mii? phy ?		# Quality Semiconductor QS6612 PHYs
227#sqphy*		at mii? phy ?		# Seeq 80220/80221/80223 PHYs
228#tlphy*		at mii? phy ?		# ThunderLAN PHYs
229#tqphy*		at mii? phy ?		# TDK Semiconductor PHYs
230#rlphy*		at mii? phy ?		# RealTek PHYs
231#ukphy*		at mii? phy ?		# generic unknown PHYs
232
233
234# Pseudo-devices
235
236# Disk/mass storage pseudo-devices
237#pseudo-device	ccd				# concatenated disk devices
238#pseudo-device	raid				# RAIDframe disk driver
239#pseudo-device	fss				# file system snapshot device
240#pseudo-device	md				# memory disk device (ramdisk)
241#pseudo-device	vnd				# disk-like interface to files
242
243# Network pseudo-devices
244pseudo-device	bpfilter			# Berkeley packet filter
245#pseudo-device	npf			# NPF packet filter
246pseudo-device	loop				# network loopback
247#pseudo-device	ppp				# Point-to-Point Protocol
248#pseudo-device	sl				# Serial Line IP
249#pseudo-device	strip				# Starmode Radio IP (Metricom)
250#pseudo-device	tun				# network tunneling over tty
251#pseudo-device	tap				# virtual Ethernet
252#pseudo-device	gre				# generic L3 over IP tunnel
253#pseudo-device	ipip				# RFC 2003 IP Encapsulation
254#pseudo-device	gif				# RFC1933 tunnel
255#pseudo-device	faith				# IPv[46] tcp relay translation
256#pseudo-device	stf				# 6to4 IPv6 over IPv4 encapsulation
257#pseudo-device	vlan				# IEEE 802.1q encapsulation
258#pseudo-device	bridge				# simple inter-network bridging
259
260# Miscellaneous pseudo-devices
261pseudo-device	pty				# pseudo-terminals
262pseudo-device	clockctl			# user control of clock subsystem
263pseudo-device	ksyms				# /dev/ksyms
264
265# A pseudo device needed for Coda		# also needs CODA (above)
266#pseudo-device	vcoda				# coda minicache <-> venus comm.
267
268
269cinclude 	"arch/evbmips/conf/CI20.local"
270
271