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