[ar531x] add default configs for AR531x ports.
Submitted by: Mori Hiroki <yamori813@yahoo.co.jp> Differential Revision: https://reviews.freebsd.org/D7237
This commit is contained in:
parent
fbf2d5a99b
commit
ce4333da79
29
sys/mips/conf/AR5312_BASE.hints
Normal file
29
sys/mips/conf/AR5312_BASE.hints
Normal file
@ -0,0 +1,29 @@
|
||||
# $FreeBSD$
|
||||
hint.apb.0.at="nexus0"
|
||||
hint.apb.0.irq=4
|
||||
|
||||
# uart0
|
||||
hint.uart.0.at="apb0"
|
||||
# see atheros/uart_cpu_ar71xx.c why +3
|
||||
hint.uart.0.maddr=0x1C000003
|
||||
hint.uart.0.msize=0x20
|
||||
#hint.uart.0.irq=4
|
||||
#hint.uart.0.flags="0x30"
|
||||
|
||||
# Watchdog
|
||||
hint.ar5315_wdog.0.at="apb0"
|
||||
hint.ar5315_wdog.0.irq=6
|
||||
|
||||
# Ethernet
|
||||
hint.are.0.at="nexus0"
|
||||
hint.are.0.maddr=0x18100000
|
||||
hint.are.0.msize=0x00100000
|
||||
hint.are.0.irq=1
|
||||
|
||||
hint.are.1.at="nexus0"
|
||||
hint.are.1.maddr=0x18200000
|
||||
hint.are.1.msize=0x00100000
|
||||
hint.are.1.irq=2
|
||||
|
||||
# GEOM redboot FIS directory offset
|
||||
#hint.redboot.0.fisoffset="0x007e0000"
|
34
sys/mips/conf/AR5315_BASE.hints
Normal file
34
sys/mips/conf/AR5315_BASE.hints
Normal file
@ -0,0 +1,34 @@
|
||||
# $FreeBSD$
|
||||
hint.apb.0.at="nexus0"
|
||||
hint.apb.0.irq=0
|
||||
|
||||
# uart0
|
||||
hint.uart.0.at="apb0"
|
||||
hint.uart.0.maddr=0x11100003
|
||||
hint.uart.0.msize=0x20
|
||||
#hint.uart.0.irq=0
|
||||
#hint.uart.0.flags="0x30"
|
||||
|
||||
# Watchdog
|
||||
hint.ar5315_wdog.0.at="apb0"
|
||||
hint.ar5315_wdog.0.irq=7
|
||||
|
||||
# SPI
|
||||
hint.spi.0.at="nexus0"
|
||||
hint.spi.0.maddr=0x11300000
|
||||
hint.spi.0.msize=0x0000000c
|
||||
#hint.spi.0.irq=2
|
||||
|
||||
# Ethernet
|
||||
hint.are.0.at="nexus0"
|
||||
hint.are.0.maddr=0x10500000
|
||||
hint.are.0.msize=0x500000
|
||||
hint.are.0.irq=2
|
||||
|
||||
# Flash
|
||||
hint.mx25l.0.at="spibus0"
|
||||
hint.mx25l.0.cs=0
|
||||
|
||||
# GEOM redboot FIS directory offset
|
||||
#hint.redboot.0.fisoffset="0x007e0000"
|
||||
|
80
sys/mips/conf/std.AR5312
Normal file
80
sys/mips/conf/std.AR5312
Normal file
@ -0,0 +1,80 @@
|
||||
#
|
||||
# AR5312 -- Kernel configuration file for FreeBSD/MIPS for Atheros 5312 systems
|
||||
#
|
||||
# This includes all the common drivers for the AR5312 boards
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
machine mips mips
|
||||
#ident AR5312_BASE
|
||||
cpu CPU_MIPS4KC
|
||||
makeoptions KERNLOADADDR=0x80050000
|
||||
options HZ=1000
|
||||
|
||||
makeoptions MODULES_OVERRIDE=""
|
||||
|
||||
files "../atheros/ar531x/files.ar5315"
|
||||
|
||||
options INTRNG
|
||||
options AR531X_1ST_GENERATION
|
||||
|
||||
# For now, hints are per-board.
|
||||
|
||||
hints "AR5312_BASE.hints"
|
||||
|
||||
makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
|
||||
|
||||
# For small memory footprints
|
||||
options VM_KMEM_SIZE_SCALE=1
|
||||
|
||||
options DDB
|
||||
options KDB
|
||||
|
||||
options SCHED_4BSD #4BSD scheduler
|
||||
options INET #InterNETworking
|
||||
options INET6 # IPv6
|
||||
|
||||
# options NFSCL #Network Filesystem Client
|
||||
|
||||
options PSEUDOFS #Pseudo-filesystem framework
|
||||
options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
|
||||
|
||||
# options NFS_LEGACYRPC
|
||||
# Debugging for use in -current
|
||||
options INVARIANTS
|
||||
options INVARIANT_SUPPORT
|
||||
options WITNESS
|
||||
options WITNESS_SKIPSPIN
|
||||
options DEBUG_REDZONE
|
||||
options DEBUG_MEMGUARD
|
||||
|
||||
options FFS #Berkeley Fast Filesystem
|
||||
# options SOFTUPDATES #Enable FFS soft updates support
|
||||
# options UFS_ACL #Support for access control lists
|
||||
# options UFS_DIRHASH #Improve performance on big directories
|
||||
# options MSDOSFS # Read MSDOS filesystems; useful for USB/CF
|
||||
|
||||
device mii
|
||||
device are
|
||||
|
||||
device cfi
|
||||
options CFI_HARDWAREBYTESWAP
|
||||
device geom_redboot
|
||||
|
||||
device ar5315_wdog
|
||||
|
||||
device uart
|
||||
device uart_ar5315
|
||||
|
||||
device loop
|
||||
device ether
|
||||
device md
|
||||
device bpf
|
||||
device random
|
||||
|
||||
options ARGE_DEBUG # Enable if_arge debugging for now
|
||||
|
||||
# Enable GPIO
|
||||
device gpio
|
||||
device gpioled
|
80
sys/mips/conf/std.AR5315
Normal file
80
sys/mips/conf/std.AR5315
Normal file
@ -0,0 +1,80 @@
|
||||
#
|
||||
# AR5315 -- Kernel configuration file for FreeBSD/MIPS for Atheros 5315 systems
|
||||
#
|
||||
# This includes all the common drivers for the AR5315 boards
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
machine mips mips
|
||||
#ident AR5315_BASE
|
||||
cpu CPU_MIPS4KC
|
||||
makeoptions KERNLOADADDR=0x80050000
|
||||
options HZ=1000
|
||||
|
||||
makeoptions MODULES_OVERRIDE=""
|
||||
|
||||
files "../atheros/ar531x/files.ar5315"
|
||||
|
||||
options INTRNG
|
||||
|
||||
# For now, hints are per-board.
|
||||
|
||||
hints "AR5315_BASE.hints"
|
||||
|
||||
makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
|
||||
|
||||
# For small memory footprints
|
||||
options VM_KMEM_SIZE_SCALE=1
|
||||
|
||||
options DDB
|
||||
options KDB
|
||||
|
||||
options SCHED_4BSD #4BSD scheduler
|
||||
options INET #InterNETworking
|
||||
options INET6 # IPv6
|
||||
|
||||
# options NFSCL #Network Filesystem Client
|
||||
|
||||
options PSEUDOFS #Pseudo-filesystem framework
|
||||
options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
|
||||
|
||||
# options NFS_LEGACYRPC
|
||||
# Debugging for use in -current
|
||||
options INVARIANTS
|
||||
options INVARIANT_SUPPORT
|
||||
options WITNESS
|
||||
options WITNESS_SKIPSPIN
|
||||
options DEBUG_REDZONE
|
||||
options DEBUG_MEMGUARD
|
||||
|
||||
options FFS #Berkeley Fast Filesystem
|
||||
# options SOFTUPDATES #Enable FFS soft updates support
|
||||
# options UFS_ACL #Support for access control lists
|
||||
# options UFS_DIRHASH #Improve performance on big directories
|
||||
# options MSDOSFS # Read MSDOS filesystems; useful for USB/CF
|
||||
|
||||
device mii
|
||||
device are
|
||||
|
||||
device ar5315_spi
|
||||
device spibus
|
||||
device mx25l
|
||||
device geom_redboot
|
||||
|
||||
device ar5315_wdog
|
||||
|
||||
device uart
|
||||
device uart_ar5315
|
||||
|
||||
device loop
|
||||
device ether
|
||||
device md
|
||||
device bpf
|
||||
device random
|
||||
|
||||
options ARGE_DEBUG # Enable if_arge debugging for now
|
||||
|
||||
# Enable GPIO
|
||||
device gpio
|
||||
device gpioled
|
Loading…
x
Reference in New Issue
Block a user