freebsd-skq/sys
Adrian Chadd c572da7f10 Allow the MDIO bus frequency to be selected.
The MDIO bus frequency is configured as a divisor off of the MDIO bus
reference clock.  For the AR9344 and later, the MDIO bus frequency can
be faster than normal (ie, up to 100MHz) and thus a static divisor may
not be very applicable.

So, for those boards that may require an actual frequency to be selected
regardless of what crazy stuff the vendor throws in uboot, one can now
set the MDIO bus frequency.  It uses the MDIO frequency and the target
frequency to choose a divisor that doesn't exceed the target frequency.

By default it will choose:

* DIV_28 on everything; except
* DIV_58 on the AR9344 to be conservative.

Whilst I'm here, add some comments about the defaults being not quite
right.  For the other internal switch devices (like the AR933x, AR724x)
the divisor can be higher - it's internal and the reference MDIO clock
is much lower than 100MHz.

The divisor tables and loop code is inspired from Linux/OpenWRT.  It's very
simple; I didn't feel that reimplementing it would yield a substantially
different solution.

Tested:

* AR9331 (mips24k)
* AR9344 (mips74k)

Obtained from:	Linux/OpenWRT
2013-10-16 19:36:50 +00:00
..
amd64 Add a new capability, VM_CAP_ENABLE_INVPCID, that can be enabled to expose 2013-10-16 18:20:27 +00:00
arm Invalidate the entire L2 cache before enabling it. Say whether it 2013-10-16 19:06:44 +00:00
boot Merge from project branch. Uninteresting commits are trimmed. 2013-10-12 12:57:57 +00:00
bsm Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
cam Unify periph invalidation and destruction reporting. 2013-10-15 17:59:41 +00:00
cddl Add a function, memstr, which can be used to convert a buffer of 2013-10-16 01:39:26 +00:00
compat Add padding to match the compat32 struct stat32 definition to the real 2013-10-04 22:05:23 +00:00
conf Add AR9340 switch support to the build. 2013-10-16 04:10:28 +00:00
contrib Update krping to the latest upstream code. Move all the FreeBSD 2013-10-14 23:02:05 +00:00
crypto Use the fact that the AES-NI instructions can be pipelined to improve 2013-09-03 18:31:23 +00:00
ddb
dev Add a big, big note to the vlan code that it needs to be taught 2013-10-16 04:15:35 +00:00
fs Similar to debug.iosize_max_clamp sysctl, introduce 2013-10-15 06:33:10 +00:00
gdb
geom MFprojects/camlock r256445: 2013-10-16 09:33:23 +00:00
gnu/fs/reiserfs
i386 Document XENHVM and xenpci are mutually inclusive. 2013-10-11 19:40:28 +00:00
ia64 The pmap function pmap_clear_reference() is no longer used. Remove it. 2013-09-20 04:30:18 +00:00
isa
kern Error out on failure to open specified config file 2013-10-16 17:03:46 +00:00
kgssapi
libkern Fix ixp425 boot2 with ARM EABI: 2013-09-29 15:19:34 +00:00
mips Allow the MDIO bus frequency to be selected. 2013-10-16 19:36:50 +00:00
modules Add fasttrap for PowerPC. This is the last piece of the dtrace/ppc puzzle. 2013-10-15 15:00:29 +00:00
net Fix long-standing issue with incorrect radix mask calculation. 2013-10-16 12:18:44 +00:00
net80211 Fix the "am I a net80211 vap" check for bpf listeners. 2013-10-10 19:56:31 +00:00
netatalk Remove ifa_init() and provide ifa_alloc() that will allocate and setup 2013-10-15 10:31:42 +00:00
netgraph Improve locking model used to protect netgraph topology: 2013-10-15 17:44:35 +00:00
netinet Remove a buggy comparision when setting manually the path MTU. 2013-10-15 20:21:27 +00:00
netinet6 - Utilize counter(9) to accumulate statistics on interface addresses. Add 2013-10-15 11:37:57 +00:00
netipsec Remove most of the remaining sysctl name list macros. They were only 2013-08-26 18:16:05 +00:00
netipx Remove ifa_init() and provide ifa_alloc() that will allocate and setup 2013-10-15 10:31:42 +00:00
netnatm Fix the length calculation for the final block of a sendfile(2) 2013-09-10 10:05:59 +00:00
netpfil Use the correct EtherType for logging IPv6 packets. 2013-09-28 15:49:36 +00:00
netsmb Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
nfs
nfsclient
nfsserver Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
nlm Intermittent crashes in the NLM (rpc.lockd) code during system 2013-09-06 23:14:31 +00:00
ofed Fix __free_pages() in the linux shim. 2013-10-15 15:50:43 +00:00
opencrypto
pc98 MFi386: r254619 2013-08-22 16:39:59 +00:00
pci
powerpc Fix the Wii build, and remove an extraneous critical_enter(). 2013-10-16 04:11:42 +00:00
rpc It was reported via email that the cu_sent field used by the 2013-09-06 02:34:34 +00:00
security Fix some typos that were causing probe argument types to show up as unknown. 2013-10-01 15:40:27 +00:00
sparc64 Implement GET_STACK_USAGE. 2013-09-29 13:09:25 +00:00
sys MFprojects/camlock r254905: 2013-10-16 09:12:40 +00:00
teken
tools
ufs Make di_blocks unsigned in UFS1 as is the case already for UFS2. 2013-10-14 18:17:09 +00:00
vm Tidy up the output of "sysctl vm.phys_free". 2013-10-10 16:11:45 +00:00
x86 Add a va_copy() to our fall-back stdarg implementation for use with lint(1) 2013-10-07 10:01:23 +00:00
xdr
xen Merge Xen PVHVM support into the GENERIC kernel config for both 2013-09-20 22:59:22 +00:00
Makefile