SENTRY5 revision 178171
1178171Simp#
2178171Simp# $FreeBSD: head/sys/mips/conf/SENTRY5 178171 2008-04-13 07:07:57Z imp $
3178171Simp# $P4: //depot/projects/mips2-jnpr/src/sys/mips/conf/SENTRY5#2 $
4178171Simp#
5178171Simp# The Broadcom Sentry5 series of processors and boards is very commonly
6178171Simp# used in COTS hardware including the Netgear WGT634U.
7178171Simp#
8178171Simp# Some tweaks are needed for use with this platform:
9178171Simp#
10178171Simp# * CFE firmware's ELF loader expects an ELF kernel which is linked so as
11178171Simp#   not to contain offsets in PT_LOAD which point behind the actual offset
12178171Simp#   of that PT header. FreeBSD normally links the first PT_LOAD header to
13178171Simp#   begin at offset 0.
14178171Simp#
15178171Simp# * Broadcom's support package for the internal bus, the Sonics
16178171Simp#   SiliconBackplane, needs to be integrated to detect and probe hardware
17178171Simp#   correctly.
18178171Simp#
19178171Simp# * The clock needs to be calibrated correctly, so that DELAY() may work.
20178171Simp#   One problem with this is that the low-level printf() routine calls DELAY(),
21178171Simp#   which currently causes divide-by-zero trap
22178171Simp#
23178171Simp# * The Broadcom CPUs have no FPU. Attempting to detect one by reading CP1's
24178171Simp#   status register causes an unhandled boot-time exception. An FPU emulator
25178171Simp#   will be necessary to support multi-user boot.
26178171Simp#
27178171Simp
28178171Simpmachine		mips
29178171Simpident		SENTRY5
30178171Simpcpu		CPU_MIPS4KC
31178171Simpoptions		CPU_NOFPU
32178171Simpoptions 	ISA_MIPS32
33178171Simpoptions		CPU_SENTRY5			# XXX should this be a
34178171Simp						# sub-cpu option?
35178171Simp
36178171Simp# XXX only siba should be hardwired for now; we will use
37178171Simp# bus enumeration there
38178171Simpfiles		"../mips32/sentry5/files.sentry5"
39178171Simphints		"SENTRY5.hints"
40178171Simp
41178171Simp# sentry5 normally ships with cfe firmware; use the console for now
42178171Simpoptions		CFE
43178171Simpoptions		CFE_CONSOLE
44178171Simpoptions		ALT_BREAK_TO_DEBUGGER
45178171Simp
46178171Simp# cfe loader expects kernel at 0x80001000 for mips32 w/o backwards
47178171Simp# offsets in the linked elf image (see ldscript hack)
48178171Simp# XXX can we conditionalize the linker stuff on options CFE?
49178171Simpoptions		KERNVIRTADDR=0x80001000
50178171Simp
51178171Simp#makeoptions	ARCH_FLAGS=-march=mips32
52178171Simpmakeoptions	MIPS_LITTLE_ENDIAN=defined
53178171Simpmakeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
54178171Simpmakeoptions	MODULES_OVERRIDE=""
55178171Simp
56178171Simpoptions		DDB
57178171Simpoptions		KDB
58178171Simp
59178171Simpoptions		SCHED_4BSD		#4BSD scheduler
60178171Simpoptions		INET			#InterNETworking
61178171Simpoptions		NFSCLIENT		#Network Filesystem Client
62178171Simpoptions		NFS_ROOT		#NFS usable as /, requires NFSCLIENT
63178171Simpoptions		PSEUDOFS		#Pseudo-filesystem framework
64178171Simpoptions		_KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
65178171Simp
66178171Simp# Debugging for use in -current
67178171Simpoptions		INVARIANTS
68178171Simpoptions		INVARIANT_SUPPORT
69178171Simp
70178171Simp#options		BUS_DEBUG
71178171Simp#makeoptions	BUS_DEBUG
72178171Simp
73178171Simpdevice		siba			# Sonics SiliconBackplane
74178171Simpdevice		pci			# siba_pcib
75178171Simp
76178171Simpdevice		bfe			# XXX will build both pci and siba
77178171Simpdevice		miibus			# attachments
78178171Simp
79178171Simp# pci devices
80178171Simp# notyet:
81178171Simp#device		ath			# in pci slot
82178171Simp#device		ath_hal			# in pci slot
83178171Simp
84178171Simpdevice		usb			# USB Bus (required)
85178171Simpdevice		uhci			# UHCI PCI->USB interface
86178171Simpdevice		ehci			# EHCI PCI->USB interface (USB 2.0)
87178171Simp
88178171Simp# need to teach the code to ignore the bridge....
89178171Simp
90178171Simp
91178171Simp# XXX notyet; need to be auto probed children of siba_cc.
92178171Simp#device		uart
93178171Simp#device		uart_ns8250
94178171Simp
95178171Simpdevice		genclock
96178171Simpdevice		loop
97178171Simpdevice		ether
98178171Simpdevice		md
99178171Simpdevice		mem
100