308324 |
05-Nov-2016 |
mmel |
MFC r302523,r302528:
r302523: Add clk_get_by_ofw_node_index, which is like clk_get_by_ofw_index but operates on a specific OF node instead of the pass in device's OF node. r302528: EXTRES: Add OF node as argument to all <foo>_get_by_ofw_<bar>() functions. In some cases, the driver must handle given properties located in specific OF subnode. Instead of creating duplicate set of function, add 'node' as argument to existing functions, defaulting it to device OF node. |
302408 |
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
301841 |
12-Jun-2016 |
jmcneill |
Fix an issue with multicast hash filters on Amlogic and Allwinner boards.
For DWC_GMAC_ALT_DESC implementations, the multicast hash table has only 64 entries. Instead of 8 registers starting at 0x500, a pair of registers at 0x08 and 0x0c are used instead.
Approved by: re (hrs) Submitted by: Guy Yur <guyyur@gmail.com>
|
301693 |
08-Jun-2016 |
jmcneill |
Multicast filters on DWC_GMAC_ALT_DESC type implementations use a different hash register setup. In addition, strip trailing FCS in receive path.
Reviewed by: loos Differential Revision: https://reviews.freebsd.org/D6653
|
298816 |
29-Apr-2016 |
jmcneill |
Set txbuf_map array size to TX_DESC_COUNT instead of RX_DESC_COUNT.
|
298307 |
19-Apr-2016 |
pfg |
sys/dev: use our nitems() macro when it is avaliable through param.h.
No functional change, only trivial cases are done in this sweep, Drivers that can get further enhancements will be done independently.
Discussed in: freebsd-current
|
297627 |
06-Apr-2016 |
jmcneill |
Convert Allwinner port to extres clk/hwreset/regulator APIs.
Reviewed by: andrew, gonzo, Emmanuel Vadot <manu@bidouilliste.com> Approved by: gonzo (mentor) Differential Revision: https://reviews.freebsd.org/D5752
|
296365 |
03-Mar-2016 |
jmcneill |
Add support for resetting the PHY via GPIO.
Submitted by: Emmanuel Vadot <manu@bidouilliste.com> Reviewed by: andrew, jmcneill Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D5505
|
288024 |
20-Sep-2015 |
loos |
Fix the build by adding the alternate descriptors and MII clock defines.
This obviously should be in the last commit.
|
288023 |
20-Sep-2015 |
loos |
Add alternate descriptors support for if_dwc.
This also adds a newbus interface that allows a SoC to override the following settings:
- if_dwc specific SoC initialization; - if_dwc descriptor type; - if_dwc MII clock.
This seems to be an old version of the hardware descriptors but it is still in use in a few SoCs (namely Allwinner A20 and Amlogic at least).
Tested on Cubieboard2 and Banana pi.
Tested for regressions on Altera Cyclone by br@ (old version).
Obtained from: NetBSD
|
288022 |
20-Sep-2015 |
loos |
Remove unnecessary includes and, while here, sort them.
|
287716 |
12-Sep-2015 |
loos |
Do not call mii_mediachg() from NIC interrupt handler.
This fixes the link instability on banana pi (A20).
Suggested by: yongari
|
285211 |
06-Jul-2015 |
loos |
When initializing the (unused) TX descriptors it is not necessary set the chain bit.
Obtained from: NetBSD
|
285209 |
06-Jul-2015 |
loos |
Use uint32_t consistently to store registers values.
Always use unsigned numbers to avoid undefined behavior on (1 << 31).
Remove unused variables and some stray semicolons.
No functional changes.
|
285192 |
06-Jul-2015 |
loos |
Fix the sent packets statistics for if_dwc.
|
283949 |
03-Jun-2015 |
loos |
Fix wrong variable name in the previous commit.
Pointy hat to: loos Reported by: araujo
|
283948 |
03-Jun-2015 |
loos |
Fix the OACTIVE handling on if_dwc.
Previously the OACTIVE flag was being set when the tx descriptors are fully allocated but it wasn't unset anywhere.
As soon as a packet is transmitted, unset the OACTIVE flag and call start routine to push any pending packets from the tx queue.
This closes another race where a full tx queue would jam the tx path (tx queue is full, new packets cannot be added to queue and dwc_txstart never gets called).
|
281019 |
03-Apr-2015 |
br |
o Remove superfluous includes o Avoid NULL pointer access o Fix 'set but not used' warning
Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>
|
278670 |
13-Feb-2015 |
br |
o Correct the condition in reset procedure o Setup interrupt hander after reset, not before
This fixes operation on ODROID-C1 (Amlogic S805)
Submitted by: John Wehle <john@feith.com>
|
272226 |
27-Sep-2014 |
glebius |
Mechanically convert to if_inc_counter().
|
272120 |
25-Sep-2014 |
br |
Add driver for Synopsys DesignWare 3504-0 Universal 10/100/1000 Ethernet MAC.
Sponsored by: DARPA, AFRL
|