1# X1000 -- Kernel config for Ingenic X1000 boards
2#
3# $FreeBSD$
4
5#NO_UNIVERSE
6
7ident		X1000
8machine		mips mipsel
9cpu		CPU_XBURST
10cpu		CPU_MIPS4KC
11
12makeoptions	KERNLOADADDR=0x80020000
13makeoptions	ARCH_FLAGS="-march=mips32r2"
14
15# Don't build any modules yet.
16makeoptions	MODULES_OVERRIDE=""
17
18files		"../ingenic/files.x1000"
19hints		"X1000.hints"		#Default places to look for devices.
20
21makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
22
23options 	INTRNG			# Borrow interrupt code from ARM
24options 	MIPS_NIRQ=264		# 8 cpuintc + 64 intc + 6 * 23 gpio
25
26options 	DDB
27options 	KDB
28options 	BREAK_TO_DEBUGGER
29
30options 	COMPAT_FREEBSD10
31options 	COMPAT_FREEBSD11
32options 	COMPAT_FREEBSD12
33
34options 	SCHED_4BSD		#4BSD scheduler
35options 	INET			#InterNETworking
36options 	NFSCL			#Network Filesystem Client
37options 	NFS_ROOT		#NFS usable as /, requires NFSCL
38options 	NFSLOCKD		#Network Lock Manager
39options 	PSEUDOFS		#Pseudo-filesystem framework
40options 	_KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
41
42options 	FFS			#Berkeley Fast Filesystem
43options 	SOFTUPDATES		#Enable FFS soft updates support
44options 	UFS_ACL			#Support for access control lists
45options 	UFS_DIRHASH		#Improve performance on big directories
46#options 	ROOTDEVNAME=\"ufs:ada0\"
47
48options 	GEOM_LABEL		# Provides labelization
49options 	GEOM_PART_GPT		# GUID Partition Tables.
50#options 	GEOM_RAID		# Soft RAID functionality.
51
52# Debugging for use in -current
53#options 	DEADLKRES		#Enable the deadlock resolver
54options 	INVARIANTS		#Enable calls of extra sanity checking
55options 	INVARIANT_SUPPORT	#Extra sanity checks of internal structures, required by INVARIANTS
56#options 	WITNESS			#Enable checks to detect deadlocks and cycles
57#options 	WITNESS_SKIPSPIN	#Don't run witness on spinlocks for speed
58
59device		loop
60device		ether
61#device		le
62device		miibus
63device		bpf
64device		md
65device		uart
66
67device		fdt_pinctrl
68
69device		clk
70device		regulator
71options		EXT_RESOURCES
72
73device		gpio
74
75device 		scbus
76device 		da
77
78device		mmc
79device		mmcsd
80
81# USB support
82#options 	USB_DEBUG	# enable debug msgs
83#options 	USB_HOST_ALIGN=128 # L2 cache line size
84#device		ohci		# OHCI PCI->USB interface
85#device		ehci		# EHCI PCI->USB interface (USB 2.0)
86#device		dwcotg		# DesignWare HS OTG controller
87#device		usb		# USB Bus (required)
88#device		udbp		# USB Double Bulk Pipe devices
89#device		uhid		# "Human Interface Devices"
90#device		ulpt		# Printer
91#device		umass		# Disks/Mass storage - Requires scbus and da
92#device		ums		# Mouse
93
94# FDT support
95options 	FDT
96