aboutsummaryrefslogtreecommitdiff
path: root/sys/mips/conf
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2013-10-22 15:45:31 +0000
committerBrooks Davis <brooks@FreeBSD.org>2013-10-22 15:45:31 +0000
commitcb7de876664ad51c94b5d4578d8ed2c611d8bd40 (patch)
treeac1ba056f3a5adf35830606ccf440524a86f18f2 /sys/mips/conf
parentfdd228fcd694a43b06e7bc60cbe4f22897ea6fdf (diff)
downloadsrc-cb7de876664ad51c94b5d4578d8ed2c611d8bd40.tar.gz
src-cb7de876664ad51c94b5d4578d8ed2c611d8bd40.zip
Sync BERI kernel configs with P4:
Switch the majority of device configuration to FDT from hints. Add BERI_*_BASE configs to reduce duplication in the MDROOT and SDROOT kernels. Add NFS and GSSAPI support by default. MFC after: 3 days Sponsored by: DARPA/AFRL
Notes
Notes: svn path=/head/; revision=256912
Diffstat (limited to 'sys/mips/conf')
-rw-r--r--sys/mips/conf/BERI_DE4.hints95
-rw-r--r--sys/mips/conf/BERI_DE4_BASE41
-rw-r--r--sys/mips/conf/BERI_DE4_MDROOT20
-rw-r--r--sys/mips/conf/BERI_DE4_SDROOT23
-rw-r--r--sys/mips/conf/BERI_SIM_BASE19
-rw-r--r--sys/mips/conf/BERI_SIM_MDROOT16
-rw-r--r--sys/mips/conf/BERI_SIM_SDROOT15
-rw-r--r--sys/mips/conf/BERI_TEMPLATE9
8 files changed, 122 insertions, 116 deletions
diff --git a/sys/mips/conf/BERI_DE4.hints b/sys/mips/conf/BERI_DE4.hints
index 3bc34dcd24ef..66dad52f3aed 100644
--- a/sys/mips/conf/BERI_DE4.hints
+++ b/sys/mips/conf/BERI_DE4.hints
@@ -1,75 +1,26 @@
# $FreeBSD$
-#
-# Altera JTAG UARTs configured for console, debugging, and data putput on the
-# Terasic DE-4.
-#
-hint.altera_jtag_uart.0.at="nexus0"
-hint.altera_jtag_uart.0.maddr=0x7f000000
-hint.altera_jtag_uart.0.msize=0x40
-hint.altera_jtag_uart.0.irq=0
+# Hardwired location of bitfile
+hint.map.0.at="cfid0s.fpga0"
+hint.map.0.start=0x00000000
+hint.map.0.end=0x00c00000
+hint.map.0.name="fpga"
+
+# Kernel on the second chip
+hint.map.1.at="cfid0s.os"
+hint.map.1.start=0x007e0000
+hint.map.1.end=0x01fe0000
+hint.map.1.name="kernel"
+
+# Altera Triple-Speed Ethernet Mac, present in tPad and DE-4 configurations
+# configured from fdt(4) but PHYs are still described in here.
+# Currently configured for individual tse_mac cores.
+hint.e1000phy.0.at="miibus0"
+hint.e1000phy.0.phyno=0
+hint.e1000phy.1.at="miibus0"
+hint.e1000phy.1.phyno=0
+hint.e1000phy.2.at="miibus0"
+hint.e1000phy.2.phyno=0
+hint.e1000phy.3.at="miibus0"
+hint.e1000phy.3.phyno=0
-hint.altera_jtag_uart.1.at="nexus0"
-hint.altera_jtag_uart.1.maddr=0x7f001000
-hint.altera_jtag_uart.1.msize=0x40
-
-hint.altera_jtag_uart.2.at="nexus0"
-hint.altera_jtag_uart.2.maddr=0x7f002000
-hint.altera_jtag_uart.2.msize=0x40
-
-#
-# On-board DE4 and tPad SD Card IP core
-#
-hint.altera_sdcardc.0.at="nexus0"
-hint.altera_sdcardc.0.maddr=0x7f008000
-hint.altera_sdcardc.0.msize=0x400
-
-#
-# On-board DE4 8-element LED
-#
-hint.terasic_de4led.0.at="nexus0"
-hint.terasic_de4led.0.maddr=0x7f006000
-hint.terasic_de4led.0.msize=1
-hint.terasic_de4led.0.de4led_0_cmd="f9"
-
-#
-# Terasic Multi-touch LCD (MTL), an optional feature in DE-4 configurations.
-#
-hint.terasic_mtl.0.at="nexus0"
-hint.terasic_mtl.0.reg_maddr=0x70400000
-hint.terasic_mtl.0.reg_msize=0x1000
-hint.terasic_mtl.0.pixel_maddr=0x70000000
-hint.terasic_mtl.0.pixel_msize=0x177000
-hint.terasic_mtl.0.text_maddr=0x70177000
-hint.terasic_mtl.0.text_msize=0x2000
-
-#
-# BERI Hardware Version ROM
-#
-hint.altera_avgen.0.at="nexus0"
-hint.altera_avgen.0.maddr=0x7F00A000
-hint.altera_avgen.0.msize=20
-hint.altera_avgen.0.width=4
-hint.altera_avgen.0.fileio="rw"
-hint.altera_avgen.0.devname="berirom"
-
-#
-# Expose the DE4 flash via an Avalon "generic" device.
-#
-#hint.altera_avgen.0.at="nexus0"
-#hint.altera_avgen.0.maddr=0x74000000
-#hint.altera_avgen.0.msize=0x4000000
-#hint.altera_avgen.0.width=2
-#hint.altera_avgen.0.fileio="rw"
-#hint.altera_avgen.0.mmapio="rwx"
-#hint.altera_avgen.0.devname="de4flash"
-
-#
-# Expose the DE4 buttons and switches via an Avalon "generic" device.
-#
-hint.altera_avgen.0.at="nexus0"
-hint.altera_avgen.0.maddr=0x7f009000
-hint.altera_avgen.0.msize=2
-hint.altera_avgen.0.width=1
-hint.altera_avgen.0.fileio="r"
-hint.altera_avgen.0.devname="de4bsw"
diff --git a/sys/mips/conf/BERI_DE4_BASE b/sys/mips/conf/BERI_DE4_BASE
new file mode 100644
index 000000000000..12f2e1c081d7
--- /dev/null
+++ b/sys/mips/conf/BERI_DE4_BASE
@@ -0,0 +1,41 @@
+#
+# BERI_DE4_BASE -- Kernel for the SRI/Cambridge "BERI" (Bluespec Extensible RISC
+# Implementation) FPGA soft core, as configured in its Terasic DE-4 reference
+# configuration. This kernel configration must be further specialized to
+# to include a root filesystem specification.
+#
+# $FreeBSD$
+#
+
+include "BERI_TEMPLATE"
+
+ident BERI_DE4_BASE
+
+options NFSCL # New Network Filesystem Client
+options NFSLOCKD # Network Lock Manager
+options NFS_ROOT # NFS usable as /, requires NFSCL
+
+options FDT
+options FDT_DTB_STATIC
+makeoptions FDT_DTS_FILE=beripad-de4.dts
+
+hints "BERI_DE4.hints" # Flash partitions still use hints.
+
+device altera_atse
+device altera_avgen
+device altera_jtag_uart
+device altera_sdcard
+device terasic_de4led
+device terasic_mtl
+
+device bpf
+device cfi
+device cfid
+options CFI_SUPPORT_STRATAFLASH
+device sc
+
+device uart
+
+device miibus
+options DEVICE_POLLING
+
diff --git a/sys/mips/conf/BERI_DE4_MDROOT b/sys/mips/conf/BERI_DE4_MDROOT
index 18cc70d5dc59..410ce78f7fd5 100644
--- a/sys/mips/conf/BERI_DE4_MDROOT
+++ b/sys/mips/conf/BERI_DE4_MDROOT
@@ -1,29 +1,19 @@
#
-# BERI_DE4 -- Kernel for the SRI/Cambridge "BERI" (Bluespec Extensible RISC
-# Implementation) FPGA soft core, as configured in its Terasic DE-4 reference
-# configuration.
+# BERI_DE4_MDROOT -- Kernel for the SRI/Cambridge "BERI" (Bluespec Extensible
+# RISC # Implementation) FPGA soft core, as configured in its Terasic DE-4
+# reference configuration.
#
# $FreeBSD$
#
-include "BERI_TEMPLATE"
+include "BERI_DE4_BASE"
ident BERI_DE4_MDROOT
-hints "BERI_DE4.hints" #Default places to look for devices.
-
#
# This kernel configuration uses an embedded 8MB memory root file system.
# Adjust the following path based on local requirements.
#
options MD_ROOT # MD is a potential root device
-options MD_ROOT_SIZE=8192
+options MD_ROOT_SIZE=26112 # 25.5MB
options ROOTDEVNAME=\"ufs:md0\"
-
-device altera_avgen
-device altera_jtag_uart
-device altera_sdcard
-device terasic_de4led
-device terasic_mtl
-
-device sc
diff --git a/sys/mips/conf/BERI_DE4_SDROOT b/sys/mips/conf/BERI_DE4_SDROOT
index 68ac9951c028..72386f136243 100644
--- a/sys/mips/conf/BERI_DE4_SDROOT
+++ b/sys/mips/conf/BERI_DE4_SDROOT
@@ -1,23 +1,16 @@
#
-# BERI_DE4 -- Kernel for the SRI/Cambridge "BERI" (Bluespec Extensible RISC
-# Implementation) FPGA soft core, as configured in its Terasic DE-4 reference
-# configuration.
+# BERI_DE4_SDROOT -- Kernel for the SRI/Cambridge "BERI" (Bluespec Extensible
+# RISC Implementation) FPGA soft core, as configured in its Terasic DE-4
+# reference configuration.
#
# $FreeBSD$
#
-include "BERI_TEMPLATE"
+include "BERI_DE4_BASE"
ident BERI_DE4_SDROOT
-hints "BERI_DE4.hints" #Default places to look for devices.
-
-options ROOTDEVNAME=\"ufs:altera_sdcard0\"
-
-device altera_avgen
-device altera_jtag_uart
-device altera_sdcard
-device terasic_de4led
-device terasic_mtl
-
-device sc
+#
+# This kernel expects to find its root filesystem on the SD Card.
+#
+options ROOTDEVNAME=\"ufs:/dev/altera_sdcard0\"
diff --git a/sys/mips/conf/BERI_SIM_BASE b/sys/mips/conf/BERI_SIM_BASE
new file mode 100644
index 000000000000..bedc9cbac570
--- /dev/null
+++ b/sys/mips/conf/BERI_SIM_BASE
@@ -0,0 +1,19 @@
+#
+# BERI_SIM_BASE -- Base kernel for the SRI/Cambridge "BERI" (Bluespec
+# Extensible RISC Implementation) FPGA soft core, as configured for
+# simulation.
+#
+# $FreeBSD$
+#
+
+include "BERI_TEMPLATE"
+
+options FDT
+options FDT_DTB_STATIC
+makeoptions FDT_DTS_FILE=beri-sim.dts
+
+options ALTERA_SDCARD_FAST_SIM
+
+device altera_avgen
+device altera_jtag_uart
+device altera_sdcard
diff --git a/sys/mips/conf/BERI_SIM_MDROOT b/sys/mips/conf/BERI_SIM_MDROOT
index a5bfe42c2713..756117347b14 100644
--- a/sys/mips/conf/BERI_SIM_MDROOT
+++ b/sys/mips/conf/BERI_SIM_MDROOT
@@ -1,24 +1,18 @@
#
-# BERI_SIM -- Kernel for the SRI/Cambridge "BERI" (Bluespec Extensible RISC
-# Implementation) FPGA soft core, as configured for simulation.
+# BERI_SIM_MDROOT -- Kernel for the SRI/Cambridge "BERI" (Bluespec Extensible
+# RISC Implementation) FPGA soft core, as configured for simulation.
#
# $FreeBSD$
#
-include "BERI_TEMPLATE"
+include "BERI_SIM_BASE"
ident BERI_SIM_MDROOT
-hints "BERI_SIM.hints" #Default places to look for devices.
-
#
-# This kernel configuration uses an embedded 8MB memory root file system.
+# This kernel configuration uses an embedded memory root file system.
# Adjust the following path based on local requirements.
#
options MD_ROOT # MD is a potential root device
-options MD_ROOT_SIZE=8192
+options MD_ROOT_SIZE=26112 # 25.5MB
options ROOTDEVNAME=\"ufs:md0\"
-
-device altera_avgen
-device altera_jtag_uart
-device altera_sdcard
diff --git a/sys/mips/conf/BERI_SIM_SDROOT b/sys/mips/conf/BERI_SIM_SDROOT
new file mode 100644
index 000000000000..7f2f82d4d3f4
--- /dev/null
+++ b/sys/mips/conf/BERI_SIM_SDROOT
@@ -0,0 +1,15 @@
+#
+# BERI_SIM_SDROOT -- Kernel for the SRI/Cambridge "BERI" (Bluespec Extensible
+# RISC Implementation) FPGA soft core, as configured for simulation.
+#
+# $FreeBSD$
+#
+
+include "BERI_SIM_BASE"
+
+ident BERI_SIM_SDROOT
+
+#
+# This kernel expects to find its root filesystem on the SD Card.
+#
+options ROOTDEVNAME=\"ufs:/dev/altera_sdcard0\"
diff --git a/sys/mips/conf/BERI_TEMPLATE b/sys/mips/conf/BERI_TEMPLATE
index f4d53ca1cc2b..fcba5cc96c5b 100644
--- a/sys/mips/conf/BERI_TEMPLATE
+++ b/sys/mips/conf/BERI_TEMPLATE
@@ -39,7 +39,9 @@ options FFS #Berkeley Fast Filesystem
options INET
options INET6
+options KGSSAPI
options NFSCL
+options NFSLOCKD
options NFS_ROOT
# Debugging for use in -current
@@ -49,10 +51,11 @@ options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required
#options WITNESS #Enable checks to detect deadlocks and cycles
#options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed
-device geom_map
-
-device md
+device crypto
+device cryptodev
device ether
+device geom_map
device loop
+device md
device random
device snp