head	1.16;
access;
symbols
	RELENG_9_1_0_RELEASE:1.3.2.1.4.2
	RELENG_9_1:1.3.2.1.0.4
	RELENG_9_1_BP:1.3.2.1
	RELENG_9_0_0_RELEASE:1.3.2.1.2.1
	RELENG_9_0:1.3.2.1.0.2
	RELENG_9_0_BP:1.3.2.1
	RELENG_9:1.3.0.2
	RELENG_9_BP:1.3;
locks; strict;
comment	@# @;


1.16
date	2012.11.17.05.12.06;	author svnexp;	state Exp;
branches;
next	1.15;

1.15
date	2012.11.17.05.10.20;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2012.11.17.01.52.48;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2012.05.12.17.42.22;	author adrian;	state Exp;
branches;
next	1.12;

1.12
date	2012.05.12.17.41.42;	author adrian;	state Exp;
branches;
next	1.11;

1.11
date	2012.03.29.02.54.35;	author jmallett;	state Exp;
branches;
next	1.10;

1.10
date	2012.03.12.21.25.32;	author jmallett;	state Exp;
branches;
next	1.9;

1.9
date	2012.03.12.20.32.23;	author adrian;	state Exp;
branches;
next	1.8;

1.8
date	2011.12.31.23.41.19;	author adrian;	state Exp;
branches;
next	1.7;

1.7
date	2011.12.15.01.05.38;	author adrian;	state Exp;
branches;
next	1.6;

1.6
date	2011.11.24.04.34.04;	author adrian;	state Exp;
branches;
next	1.5;

1.5
date	2011.11.24.04.19.02;	author adrian;	state Exp;
branches;
next	1.4;

1.4
date	2011.11.21.06.45.12;	author adrian;	state Exp;
branches;
next	1.3;

1.3
date	2011.05.11.00.52.41;	author gonzo;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2011.04.28.12.52.01;	author adrian;	state Exp;
branches;
next	1.1;

1.1
date	2011.04.03.13.19.58;	author adrian;	state Exp;
branches;
next	;

1.3.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.3.2.1.2.1
	1.3.2.1.4.1;
next	1.3.2.2;

1.3.2.2
date	2012.11.17.11.37.15;	author svnexp;	state Exp;
branches;
next	;

1.3.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.3.2.1.2.2;

1.3.2.1.2.2
date	2012.11.17.08.37.11;	author svnexp;	state Exp;
branches;
next	;

1.3.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.3.2.1.4.2;

1.3.2.1.4.2
date	2012.11.17.08.48.02;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.16
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/243180
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r243180 | adrian | 2012-11-17 04:11:57 +0000 (Sat, 17 Nov 2012) | 2 lines
## SVN ##
## SVN ## Ensure hwpmc support is correctly included.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@#
# AR91XX -- Kernel configuration base file for the Atheros AR913x SoC.
#
# This file (and the hints file accompanying it) are not designed to be
# used by themselves. Instead, users of this file should create a kernel
# config file which includes this file (which gets the basic hints), then
# override the default options (adding devices as needed) and adding
# hints as needed (for example, the GPIO and LAN PHY.)
#
# $FreeBSD: head/sys/mips/conf/AR91XX_BASE 243180 2012-11-17 04:11:57Z adrian $
#

machine         mips mips
ident		AR91XX_BASE
cpu		CPU_MIPS4KC
makeoptions	KERNLOADADDR=0x80050000
options		HZ=1000

files		"../atheros/files.ar71xx"
hints		"AR91XX_BASE.hints"

makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
makeoptions	MODULES_OVERRIDE="random gpio ar71xx if_gif if_gre if_bridge bridgestp usb wlan wlan_xauth wlan_acl wlan_wep wlan_tkip wlan_ccmp wlan_rssadapt wlan_amrr ath ath_ahb hwpmc"

options		DDB
options		KDB
options 	ALQ

options		SCHED_4BSD		#4BSD scheduler
options		INET			#InterNETworking
options		INET6			#InterNETworking
#options		NFSCL			#Network Filesystem Client
options		PSEUDOFS		#Pseudo-filesystem framework
options		_KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions

# PMC
options		HWPMC_HOOKS
device		hwpmc
device		hwpmc_mips24k

# options		NFS_LEGACYRPC
# Debugging for use in -current
options		INVARIANTS
options		INVARIANT_SUPPORT
options		WITNESS
options		WITNESS_SKIPSPIN
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		NO_FFS_SNAPSHOT		# We don't require snapshot support

# Wireless NIC cards
options		IEEE80211_DEBUG
options		IEEE80211_SUPPORT_MESH
options		IEEE80211_SUPPORT_TDMA
options 	IEEE80211_ALQ	# 802.11 ALQ logging support
device		wlan            # 802.11 support
device		wlan_wep        # 802.11 WEP support
device		wlan_ccmp       # 802.11 CCMP support
device		wlan_tkip       # 802.11 TKIP support
device		wlan_xauth	# 802.11 hostap support

# ath(4)
device		ath             # Atheros network device
device		ath_rate_sample
device		ath_ahb		# Atheros host bus glue
options 	ATH_DEBUG
options		ATH_DIAGAPI
option		ATH_ENABLE_11N
option 		AH_DEBUG_ALQ

# Don't bother compiling the whole HAL - AH_SUPPORT_AR9130 breaks the
# rest of the 11n chipset support at the moment and the pre-AR5212
# HALs aren't required.
# device		ath_hal

# The AR9130 code requires AR5416; and AR5416 requires the AR5212 code.
device		ath_ar5212
device		ath_ar5416
device		ath_ar9130

options		AH_DEBUG
option		AH_SUPPORT_AR5416
option		AH_SUPPORT_AR9130	# Makes other chipsets not function!
option 		AH_DEBUG_ALQ
# interrupt mitigation not possible on AR9130
# option		AH_AR5416_INTERRUPT_MITIGATION

device		mii
device		arge

device		usb
options		USB_EHCI_BIG_ENDIAN_DESC        # handle big-endian byte order
options		USB_DEBUG
options		USB_HOST_ALIGN=32		# AR71XX (MIPS in general?) requires this
device		ehci

device		scbus
device		umass
device		da

device		spibus
device		ar71xx_spi
device		mx25l
device		ar71xx_wdog

device		uart
device		uart_ar71xx

device		loop
device		ether
device		md
device		bpf
device		random
device		if_bridge
device		gpio
device		gpioled
@


1.15
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/243177
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r243177 | adrian | 2012-11-17 04:05:46 +0000 (Sat, 17 Nov 2012) | 5 lines
## SVN ##
## SVN ## Migrate the AR71xx UART (an 8250 derivative) to hide behind uart_ar71xx.
## SVN ##
## SVN ## The AR9330/AR9331 UART is a totally different thing, so having it included
## SVN ## with 'uart' is not going to work out.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d10 1
a10 1
# $FreeBSD: head/sys/mips/conf/AR91XX_BASE 243177 2012-11-17 04:05:46Z adrian $
d39 1
@


1.14
log
@Switching exporter and resync
@
text
@d10 1
a10 1
# $FreeBSD: head/sys/mips/conf/AR91XX_BASE 235346 2012-05-12 17:42:22Z adrian $
d108 1
@


1.13
log
@SVN rev 235346 on 2012-05-12 17:42:22Z by adrian

Revert this - I disabled it whilst hwpmc is/was broken.
@
text
@d10 1
a10 1
# $FreeBSD$
@


1.12
log
@SVN rev 235345 on 2012-05-12 17:41:42Z by adrian

Flip on WN1043ND switch PHY support.

* Add the i2c bitbang bus;
* Add the etherswitch/rtl8366rb drivers;
* "fix" the USB GPIO configuration so USB actually works.

Submitted by:	Stefan Bethke <stb@@lassitu.de>
@
text
@d38 1
a38 1
#device		hwpmc
@


1.11
log
@SVN rev 233644 on 2012-03-29 02:54:35Z by jmallett

Assume a big-endian default on MIPS and drop the "eb" suffix from MACHINE_ARCH.
This makes our naming scheme more closely match other systems and the
expectations of much third-party software.  MIPS builds which are little-endian
should require and exhibit no changes.  Big-endian TARGET_ARCHes must be
changed:
	From:		To:
	mipseb		mips
	mipsn32eb	mipsn32
	mips64eb	mips64

An entry has been added to UPDATING and some foot-shooting protection (complete
with warnings which should become errors in the near future) to the top-level
base system Makefile.
@
text
@d38 1
a38 1
device		hwpmc
@


1.10
log
@SVN rev 232896 on 2012-03-12 21:25:32Z by jmallett

o) Use ABI, not ISA_* options, to determine whether to compile bits if libkern
   required for the ABI the kernel is being built for.
   XXX This is implemented in a kind-of nasty way that involves including source
       files, but it's still an improvement.
o) Retire ISA_* options since they're unused and were always wrong.
@
text
@d13 1
a13 1
machine         mips mipseb
@


1.9
log
@SVN rev 232887 on 2012-03-12 20:32:23Z by adrian

Configuration changes/updates!

* enable ALQ and net80211/ath ALQ logging by default, to make it possible
  to get debug register traces.
* Update some comments
* Enable HWPMC for testing.
@
text
@a15 1
options 	ISA_MIPS32
@


1.8
log
@SVN rev 229162 on 2011-12-31 23:41:19Z by adrian

This particular work around isn't required any longer, now that the
11n radio backends are also added into the RF linker set.

This saves around 7k from the kernel binary.
@
text
@d24 1
a24 1
makeoptions	MODULES_OVERRIDE=""
d28 1
d37 4
d57 1
d64 2
a65 2
# This will come later -adrian
device		ath             # Atheros pci/cardbus NIC's
d67 1
a67 1
device		ath_ahb
d71 1
d86 1
@


1.7
log
@SVN rev 228519 on 2011-12-15 01:05:38Z by adrian

* Add in the gpio/gpioled drivers into AR91XX_BASE.
* Add in a default GPIO section for AR91XX_BASE.hints, which doesn't
  define the GPIO function masks or any GPIO pines.
* Add in the GPIO line definitions for LEDs and GPIO pins for the
  TP-WR1043nd.

I've verified the LEDs work fine using gpioset.
@
text
@a74 4
# This is needed so at least one RF backend is present, or the current
# HAL setup won't compile.  Remove this once the 11n chip RF backends
# are converted over to be in the linker set.
device		ath_rf5111
@


1.6
log
@SVN rev 227920 on 2011-11-24 04:34:04Z by adrian

Compile in the right bits so the AR9130 WMAC support functions correctly.

A previous commit disabled compiling the AR9130 support in the default
HAL build in the kernel. Since the AR9130 support won't actually function
without AH_SUPPORT_AR9130 (and that abomination needs to be undone at some
point, in order to allow USB 11n NICs to also work), we now have to
explicitly compile it in.

But since the 11n RF backends don't (currently) join the RF linker set,
one has to compile in _an_ RF backend for the HAL to compile.
@
text
@d112 2
@


1.5
log
@SVN rev 227917 on 2011-11-24 04:19:02Z by adrian

Slim the default build down a little:

* Disable the NFS client, it's not needed for booting off of flash.
* Don't compile in softdep, snapshots, ufs acls and directory hashing.
@
text
@d66 13
a78 1
device		ath_hal
@


1.4
log
@SVN rev 227780 on 2011-11-21 06:45:12Z by adrian

Always leave the -current kernel debugging options on.
@
text
@d32 1
a32 1
options		NFSCL			#Network Filesystem Client
d42 5
a46 4
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
@


1.3
log
@SVN rev 221753 on 2011-05-11 00:52:41Z by gonzo

Use new option names for NFS client and NFS server

See UPDATING entry for 20110427
@
text
@d38 4
a41 4
# options		INVARIANTS
# options		INVARIANT_SUPPORT
# options		WITNESS
# options		WITNESS_SKIPSPIN
a46 1

@


1.3.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.3.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d10 1
a10 1
# $FreeBSD: stable/9/sys/mips/conf/AR91XX_BASE 221753 2011-05-11 00:52:41Z gonzo $
@


1.3.2.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.3.2.1.4.2
log
@Switch importer
@
text
@d10 1
a10 1
# $FreeBSD: releng/9.1/sys/mips/conf/AR91XX_BASE 221753 2011-05-11 00:52:41Z gonzo $
@


1.3.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.3.2.1.2.2
log
@Switch importer
@
text
@d10 1
a10 1
# $FreeBSD: releng/9.0/sys/mips/conf/AR91XX_BASE 221753 2011-05-11 00:52:41Z gonzo $
@


1.2
log
@SVN rev 221164 on 2011-04-28 12:52:01Z by adrian

Re-enable the wireless build parameters for the AR9130 WMAC.

* enable 11n
* add ath_ahb so the AHB<->ath glue is linked in
* disable descriptor order swapping, it isn't needed here
* disable interrupt mitigation, it isn't supported here
@
text
@d32 1
a32 1
options		NFSCLIENT		#Network Filesystem Client
@


1.1
log
@SVN rev 220295 on 2011-04-03 13:19:58Z by adrian

Commit configuration files for the AR913x SoC and the TP-Link WR-1043ND.

The AR91XX_BASE{,.hints} files define all the common parameters for
the AR913x SoC systems.

The TP-1043ND config file adds local parameters.
@
text
@d52 5
a56 5
#device		wlan            # 802.11 support
#device		wlan_wep        # 802.11 WEP support
#device		wlan_ccmp       # 802.11 CCMP support
#device		wlan_tkip       # 802.11 TKIP support
#device		wlan_xauth	# 802.11 hostap support
d59 3
a61 1
#device		ath             # Atheros pci/cardbus NIC's
d64 4
a68 1
#device		ath_hal
d70 3
a72 5
option		AH_RXCFG_SDMAMW_4BYTES  # See NOTES for details of this WAR
option		AH_NEED_DESC_SWAP	# ?
#device		ath_rate_sample
#device		ath_ahb
option		AH_AR5416_INTERRUPT_MITIGATION
@

