xref: /f-stack/freebsd/mips/conf/BCM (revision 22ce4aff)
1a9643ea8Slogwang#
2a9643ea8Slogwang# $FreeBSD$
3a9643ea8Slogwang#
4a9643ea8Slogwang# The Broadcom 470x/471x/535x series of processors and boards is very commonly
5a9643ea8Slogwang# used in COTS hardware including the ASUS RT-N12, RT-N16, RT-N53.
6a9643ea8Slogwang#
7a9643ea8Slogwang
8a9643ea8Slogwangident		BCM
9a9643ea8Slogwangcpu		CPU_MIPS74K
10a9643ea8Slogwang
11a9643ea8Slogwanghints		"BCM.hints"
12a9643ea8Slogwanginclude		"../broadcom/std.broadcom"
13a9643ea8Slogwang
14a9643ea8Slogwang# ships with cfe firmware
15a9643ea8Slogwangoptions 	CFE
16*22ce4affSfengbojiangdevice		cfe
17*22ce4affSfengbojiang
18a9643ea8Slogwangoptions 	ALT_BREAK_TO_DEBUGGER
19a9643ea8Slogwangoptions 	BREAK_TO_DEBUGGER
20a9643ea8Slogwangoptions		BOOTVERBOSE=0
21a9643ea8Slogwang
22a9643ea8Slogwangmakeoptions	TRAMPLOADADDR=0x80800000
23a9643ea8Slogwangmakeoptions	DEBUG="-g3"		#Build kernel with gdb(1) debug symbols
24a9643ea8Slogwangmakeoptions	MODULES_OVERRIDE=""
25a9643ea8Slogwang
26a9643ea8Slogwangoptions 	DDB
27a9643ea8Slogwangoptions 	KDB
28a9643ea8Slogwang
29a9643ea8Slogwangoptions 	SCHED_4BSD		#4BSD scheduler
30a9643ea8Slogwangoptions 	INET			#InterNETworking
31*22ce4affSfengbojiangoptions 	TCP_HHOOK		# hhook(9) framework for TCP
32a9643ea8Slogwangoptions 	NFSCL			#Network Filesystem Client
33a9643ea8Slogwang#options 	NFS_ROOT		#NFS usable as /, requires NFSCL
34a9643ea8Slogwangoptions 	PSEUDOFS		#Pseudo-filesystem framework
35a9643ea8Slogwangoptions 	_KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
36a9643ea8Slogwang
37a9643ea8Slogwangoptions         FFS                     #Berkeley Fast Filesystem
38a9643ea8Slogwangoptions         SOFTUPDATES             #Enable FFS soft updates support
39a9643ea8Slogwangoptions         UFS_ACL                 #Support for access control lists
40a9643ea8Slogwangoptions         UFS_DIRHASH             #Improve performance on big directories
41a9643ea8Slogwang
42*22ce4affSfengbojiangdevice		xz
43a9643ea8Slogwangoptions		GEOM_UZIP
44a9643ea8Slogwangoptions		GEOM_LABEL		# Providers labelization.
45a9643ea8Slogwangoptions		ROOTDEVNAME=\"ufs:ufs/FBSD\"	# assumes FW built by
46a9643ea8Slogwang					# freebsd-build-wifi
47a9643ea8Slogwang
48a9643ea8Slogwang# Debugging for use in -current
49a9643ea8Slogwang#options 	DEADLKRES
50a9643ea8Slogwangoptions 	INVARIANTS
51a9643ea8Slogwangoptions 	INVARIANT_SUPPORT
52a9643ea8Slogwang
53a9643ea8Slogwang#options	BHND_LOGLEVEL=BHND_DEBUG_LEVEL
54a9643ea8Slogwang#options 	BUS_DEBUG
55a9643ea8Slogwang#makeoptions	BUS_DEBUG
56*22ce4affSfengbojiangoptions 	EARLY_PRINTF
57a9643ea8Slogwang#options	VERBOSE_SYSINIT
58a9643ea8Slogwang#makeoptions	VERBOSE_SYSINIT
59a9643ea8Slogwang
60a9643ea8Slogwang# bhnd(4)
61a9643ea8Slogwangdevice		bhnd
62a9643ea8Slogwangdevice		bcma			# bcma backplane
63a9643ea8Slogwangdevice		bcma_nexus
64a9643ea8Slogwang
65a9643ea8Slogwangdevice		pci
66a9643ea8Slogwangdevice		bhnd_pcib		# PCIe-G1 core
67a9643ea8Slogwang
68a9643ea8Slogwang#device		bgmac			# Broadcom GMAC - not yet
69a9643ea8Slogwang
70*22ce4affSfengbojiangdevice		gpio
71a9643ea8Slogwangdevice		mdio
72a9643ea8Slogwang
73a9643ea8Slogwang#Flash
74a9643ea8Slogwangdevice		spibus
75a9643ea8Slogwangdevice		mx25l			# Serial Flash
76a9643ea8Slogwangdevice		cfi			# Parallel Flash
77a9643ea8Slogwangdevice		cfid
78a9643ea8Slogwang
79a9643ea8Slogwang#UART
80a9643ea8Slogwangdevice		uart
81a9643ea8Slogwang
82a9643ea8Slogwang#Base
83a9643ea8Slogwangdevice		loop
84a9643ea8Slogwangdevice		ether
85a9643ea8Slogwangdevice		md
86a9643ea8Slogwang
87a9643ea8Slogwang#Performance
88a9643ea8Slogwang#options 	HWPMC_HOOKS
89a9643ea8Slogwang#device		hwpmc
90a9643ea8Slogwang#device	 	hwpmc_mips74k
91a9643ea8Slogwang
92a9643ea8Slogwang#Ethernet
93a9643ea8Slogwang# device 	bfe			# XXX will build both pci and siba
94a9643ea8Slogwangdevice 		miibus			# attachments
95a9643ea8Slogwang
96a9643ea8Slogwang# pci devices
97a9643ea8Slogwang
98*22ce4affSfengbojiang# USB
99*22ce4affSfengbojiangoptions 	USB_DEBUG		# enable debug msgs
100*22ce4affSfengbojiang# taken from atheros
101*22ce4affSfengbojiangoptions 	USB_EHCI_BIG_ENDIAN_DESC        # handle big-endian byte order
102*22ce4affSfengbojiangoptions 	USB_HOST_ALIGN=32		# AR71XX (MIPS in general?) requires this
103*22ce4affSfengbojiang
104*22ce4affSfengbojiangdevice		usb			# USB Bus (required)
105*22ce4affSfengbojiangdevice		ohci			# OHCI interface
106*22ce4affSfengbojiangdevice		ehci			# EHCI interface (USB 2.0)
107*22ce4affSfengbojiang
108*22ce4affSfengbojiangdevice		scbus
109*22ce4affSfengbojiangdevice		umass
110*22ce4affSfengbojiangdevice		da
111