#
#	Configuration for PMC-Sierra Xiao Hu, NAS Reference platform
#

machine		XiaoHu mips		# CPU Architecture, Platform
config		pmon 

#
#  Define target endian
#
makeoptions	ENDIAN=l		# Endian, set to 'l' or 'b'

#
#  We are building a compressed boot image version.
#
makeoptions	COMPRESSED=yes

#
#  Special options
#
option		DEFAULT_IP="\"192.168.16.96\""

option		AUTOBOOT_FLASH		# Autoboot if flash image is valid
#option		AUTOBOOT_NOCRC		# Don't do CRC32 check on flash image
option		SHUTDOWN_ON_GO		# Shutdown interfaces before handoff to client

option 		HAVE_FLASH		# Include flash memory support

option		ENV_FLASH		# Environment data saved in flash
#option		ENV_MASS		# Environment data saved on mass storage
#option		ENV_RTC			# Environment data saved in RTC

option		TGT_PERIODIC		# Call tgt_periodic once per ms.
option		TFTPD_BCAST=5090	# TFTPD announce broadcast port

#
# clock skew
#
# This is specific to NAS 7035 and it may be for other PMC 7035 boards.
# The values from Randy Hughes (PCICSC values in SPLLCR, there is no
# ITE datasheet explanation for it):
# 000b = 0ns (default)
# 001b = -045ns
# 010b = -0.9ns
# 011b = -1.35ns
# 100b = 0.45ns
# 101b = 0.9ns
# 110b = 1.35ns
# 111b = 1.8ns
#option  	XIAOHU_VARIANT_NAS_RM7035
#option  	PM8172_SC_SPLLCR_INIT_VAL=0x0a00

#
#  Plugins
#
select		p_tftpd

#

include "conf/GENERIC_ALL"

#
# Platform options
#
option		NAS			# Target is a NAS platform
option		XIAO_HU
option		MIPS
option		INET

select		mod_uart_ns16550
option		CONS_BAUD=B115200	# Default console baud rate
option		TGT_TOGGLE		# We want to toggle!
#option		GRAPHCONS		# Console on ATI Rage
option		TCPSTACK		# We want TCP/IP
option 		GPIO			# GPIO support
option		PM8172			# on PM8172
option		IT8712			# and IT8712

#
#  Kernel data memory size
#
option		NKMEMCLUSTERS=512	# Kernel memory size in 4k pages

#
#  Space saving options
#
#option		SCSITERSE	# -24kb Clear text SCSI errmsgs.
option		PCIVERBOSE	# +35kb	PCI device names.
option		USBVERBOSE	# +40kb USB verbose messages.

#
# Debug options
#
option		DEBUG_LOCORE		# Debug output from basic init
#option		SBD_DEBUG		# Startup progress logging
#option		AUTOCONF_VERBOSE=1

#
# Functional options
#
option		NOSNOOP			# Caches are no-snooping
option		NEWPCIROOT		# New style PCI framework
select		generic_envram		# Use generic NV-ram routines.
#select		iso9660			# Include ISO 9660 filesystem support
select		ramfiles		# Include ramfile support
select		fatfs			# Include FAT filesystem support
select		cmd_fileutils		# File utilites
#select		cmd_pfctr		# Performance counter commands
select		cmd_etherprom		# Ethernet controller prom editor


#
# HAVE options. What tgt level provide
#
option		HAVE_TOD		# Time-Of-Day clock
option		HAVE_NVENV		# Platform has non-volatile env mem
option		HAVE_LOGO		# Has 'splash' logo

#
# System Name and Target Name
#
option		SYSTYPE="\"PM74002\""
option		TARGETNAME="\"PM74002\""
option 		TGT_PM74002

#
#  Now the Machine specification
#
mainbus0	at root
pcibr0		at mainbus0			# Discovery PCI bus 0
pci0		at pcibr0

#ppb*		at pci? dev ? function ?	# PCI-PCI bridges
#pci*		at ppb? bus ?

#### Networking Devices
# comment or uncomment the next three lines to exclude or include the driver
rl0		at pci? dev ? function ?	# RealTek 8139 Ethernet
rlphy*		at mii? phy ?			# RealTek 8139 built in PHY

# comment or uncomment the next three lines to exclude or include the driver
re0		at pci? dev ? function ?	# RealTek 8169 Ethernet
rgephy*		at mii? phy ?			# RealTek 8169 built in PHY

# comment or uncomment the next three lines to exclude or include the driver
skc*		at pci? dev ? function ?	# Marvell Yukon based Gigabit Ethernet
sk*		at skc ?			# Marvell Yukon based Gigabit Ethernet
eephy*		at mii? phy ?			# Broadcom phy

#### IDE controllers
pciide* 	at pci ? dev ? function ? flags 0x0000

#### IDE hard drives
wd*		at pciide? channel ? drive ? flags 0x0000

#### USB
ohci*		at pci?
ehci0		at pci?
ehci*		at pci?
usb0		at ehci0
usb*		at ohci?
usb*		at ehci?
uhub0		at usb0
uhub*		at usb?
uhub*		at uhub?
umass0		at uhub0 port 1
umass*		at uhub?
scsibus0	at umass0
scsibus*	at umass?

#### SCSI support
#siop*		at pci? dev ? function ?	# Symbios/NCR 53c...
#scsibus*	at siop?

sd0		at scsibus0 target 1 lun 0 
sd*		at scsibus? target ? lun ? 
#cd*		at scsibus? target ? lun ? 

#### Pseudo devices
pseudo-device	loop	1			# network loopback

