History log of /freebsd-11-stable/sys/dev/dwc/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
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.


/freebsd-11-stable/sys/arm/allwinner/a10_ahci.c
/freebsd-11-stable/sys/arm/allwinner/a10_codec.c
/freebsd-11-stable/sys/arm/allwinner/a10_dmac.c
/freebsd-11-stable/sys/arm/allwinner/a10_ehci.c
/freebsd-11-stable/sys/arm/allwinner/a10_fb.c
/freebsd-11-stable/sys/arm/allwinner/a10_gpio.c
/freebsd-11-stable/sys/arm/allwinner/a10_hdmi.c
/freebsd-11-stable/sys/arm/allwinner/a10_mmc.c
/freebsd-11-stable/sys/arm/allwinner/aw_if_dwc.c
/freebsd-11-stable/sys/arm/allwinner/aw_rsb.c
/freebsd-11-stable/sys/arm/allwinner/aw_usbphy.c
/freebsd-11-stable/sys/arm/allwinner/clk/aw_ahbclk.c
/freebsd-11-stable/sys/arm/allwinner/clk/aw_apbclk.c
/freebsd-11-stable/sys/arm/allwinner/clk/aw_axiclk.c
/freebsd-11-stable/sys/arm/allwinner/clk/aw_codecclk.c
/freebsd-11-stable/sys/arm/allwinner/clk/aw_cpuclk.c
/freebsd-11-stable/sys/arm/allwinner/clk/aw_cpusclk.c
/freebsd-11-stable/sys/arm/allwinner/clk/aw_debeclk.c
/freebsd-11-stable/sys/arm/allwinner/clk/aw_gate.c
/freebsd-11-stable/sys/arm/allwinner/clk/aw_gmacclk.c
/freebsd-11-stable/sys/arm/allwinner/clk/aw_hdmiclk.c
/freebsd-11-stable/sys/arm/allwinner/clk/aw_lcdclk.c
/freebsd-11-stable/sys/arm/allwinner/clk/aw_mmcclk.c
/freebsd-11-stable/sys/arm/allwinner/clk/aw_modclk.c
/freebsd-11-stable/sys/arm/allwinner/clk/aw_pll.c
/freebsd-11-stable/sys/arm/allwinner/clk/aw_usbclk.c
/freebsd-11-stable/sys/arm/allwinner/if_awg.c
/freebsd-11-stable/sys/arm/allwinner/if_emac.c
/freebsd-11-stable/sys/arm/nvidia/tegra124/tegra124_cpufreq.c
/freebsd-11-stable/sys/arm/nvidia/tegra124/tegra124_pmc.c
/freebsd-11-stable/sys/arm/nvidia/tegra124/tegra124_xusbpadctl.c
/freebsd-11-stable/sys/arm/nvidia/tegra_ahci.c
/freebsd-11-stable/sys/arm/nvidia/tegra_efuse.c
/freebsd-11-stable/sys/arm/nvidia/tegra_ehci.c
/freebsd-11-stable/sys/arm/nvidia/tegra_i2c.c
/freebsd-11-stable/sys/arm/nvidia/tegra_pcie.c
/freebsd-11-stable/sys/arm/nvidia/tegra_rtc.c
/freebsd-11-stable/sys/arm/nvidia/tegra_sdhci.c
/freebsd-11-stable/sys/arm/nvidia/tegra_soctherm.c
/freebsd-11-stable/sys/arm/nvidia/tegra_uart.c
/freebsd-11-stable/sys/arm/nvidia/tegra_usbphy.c
if_dwc.c
/freebsd-11-stable/sys/dev/extres/clk/clk.c
/freebsd-11-stable/sys/dev/extres/clk/clk.h
/freebsd-11-stable/sys/dev/extres/clk/clk_fixed.c
/freebsd-11-stable/sys/dev/extres/hwreset/hwreset.c
/freebsd-11-stable/sys/dev/extres/hwreset/hwreset.h
/freebsd-11-stable/sys/dev/extres/phy/phy.c
/freebsd-11-stable/sys/dev/extres/phy/phy.h
/freebsd-11-stable/sys/dev/extres/regulator/regulator.c
/freebsd-11-stable/sys/dev/extres/regulator/regulator.h
/freebsd-11-stable/sys/dev/iicbus/twsi/a10_twsi.c
/freebsd-11-stable/sys/dev/uart/uart_dev_snps.c
/freebsd-11-stable/sys/dev/usb/controller/generic_ohci.c
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


/freebsd-11-stable/MAINTAINERS
/freebsd-11-stable/cddl
/freebsd-11-stable/cddl/contrib/opensolaris
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/print
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/zfs
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libzfs
/freebsd-11-stable/contrib/amd
/freebsd-11-stable/contrib/apr
/freebsd-11-stable/contrib/apr-util
/freebsd-11-stable/contrib/atf
/freebsd-11-stable/contrib/binutils
/freebsd-11-stable/contrib/bmake
/freebsd-11-stable/contrib/byacc
/freebsd-11-stable/contrib/bzip2
/freebsd-11-stable/contrib/com_err
/freebsd-11-stable/contrib/compiler-rt
/freebsd-11-stable/contrib/dialog
/freebsd-11-stable/contrib/dma
/freebsd-11-stable/contrib/dtc
/freebsd-11-stable/contrib/ee
/freebsd-11-stable/contrib/elftoolchain
/freebsd-11-stable/contrib/elftoolchain/ar
/freebsd-11-stable/contrib/elftoolchain/brandelf
/freebsd-11-stable/contrib/elftoolchain/elfdump
/freebsd-11-stable/contrib/expat
/freebsd-11-stable/contrib/file
/freebsd-11-stable/contrib/gcc
/freebsd-11-stable/contrib/gcclibs/libgomp
/freebsd-11-stable/contrib/gdb
/freebsd-11-stable/contrib/gdtoa
/freebsd-11-stable/contrib/groff
/freebsd-11-stable/contrib/ipfilter
/freebsd-11-stable/contrib/ldns
/freebsd-11-stable/contrib/ldns-host
/freebsd-11-stable/contrib/less
/freebsd-11-stable/contrib/libarchive
/freebsd-11-stable/contrib/libarchive/cpio
/freebsd-11-stable/contrib/libarchive/libarchive
/freebsd-11-stable/contrib/libarchive/libarchive_fe
/freebsd-11-stable/contrib/libarchive/tar
/freebsd-11-stable/contrib/libc++
/freebsd-11-stable/contrib/libc-vis
/freebsd-11-stable/contrib/libcxxrt
/freebsd-11-stable/contrib/libexecinfo
/freebsd-11-stable/contrib/libpcap
/freebsd-11-stable/contrib/libstdc++
/freebsd-11-stable/contrib/libucl
/freebsd-11-stable/contrib/libxo
/freebsd-11-stable/contrib/llvm
/freebsd-11-stable/contrib/llvm/projects/libunwind
/freebsd-11-stable/contrib/llvm/tools/clang
/freebsd-11-stable/contrib/llvm/tools/lldb
/freebsd-11-stable/contrib/llvm/tools/llvm-dwarfdump
/freebsd-11-stable/contrib/llvm/tools/llvm-lto
/freebsd-11-stable/contrib/mdocml
/freebsd-11-stable/contrib/mtree
/freebsd-11-stable/contrib/ncurses
/freebsd-11-stable/contrib/netcat
/freebsd-11-stable/contrib/ntp
/freebsd-11-stable/contrib/nvi
/freebsd-11-stable/contrib/one-true-awk
/freebsd-11-stable/contrib/openbsm
/freebsd-11-stable/contrib/openpam
/freebsd-11-stable/contrib/openresolv
/freebsd-11-stable/contrib/pf
/freebsd-11-stable/contrib/sendmail
/freebsd-11-stable/contrib/serf
/freebsd-11-stable/contrib/sqlite3
/freebsd-11-stable/contrib/subversion
/freebsd-11-stable/contrib/tcpdump
/freebsd-11-stable/contrib/tcsh
/freebsd-11-stable/contrib/tnftp
/freebsd-11-stable/contrib/top
/freebsd-11-stable/contrib/top/install-sh
/freebsd-11-stable/contrib/tzcode/stdtime
/freebsd-11-stable/contrib/tzcode/zic
/freebsd-11-stable/contrib/tzdata
/freebsd-11-stable/contrib/unbound
/freebsd-11-stable/contrib/vis
/freebsd-11-stable/contrib/wpa
/freebsd-11-stable/contrib/xz
/freebsd-11-stable/crypto/heimdal
/freebsd-11-stable/crypto/openssh
/freebsd-11-stable/crypto/openssl
/freebsd-11-stable/gnu/lib
/freebsd-11-stable/gnu/usr.bin/binutils
/freebsd-11-stable/gnu/usr.bin/cc/cc_tools
/freebsd-11-stable/gnu/usr.bin/gdb
/freebsd-11-stable/lib/libc/locale/ascii.c
/freebsd-11-stable/sys/cddl/contrib/opensolaris
/freebsd-11-stable/sys/contrib/dev/acpica
/freebsd-11-stable/sys/contrib/ipfilter
/freebsd-11-stable/sys/contrib/libfdt
/freebsd-11-stable/sys/contrib/octeon-sdk
/freebsd-11-stable/sys/contrib/x86emu
/freebsd-11-stable/sys/contrib/xz-embedded
/freebsd-11-stable/usr.sbin/bhyve/atkbdc.h
/freebsd-11-stable/usr.sbin/bhyve/bhyvegc.c
/freebsd-11-stable/usr.sbin/bhyve/bhyvegc.h
/freebsd-11-stable/usr.sbin/bhyve/console.c
/freebsd-11-stable/usr.sbin/bhyve/console.h
/freebsd-11-stable/usr.sbin/bhyve/pci_fbuf.c
/freebsd-11-stable/usr.sbin/bhyve/pci_xhci.c
/freebsd-11-stable/usr.sbin/bhyve/pci_xhci.h
/freebsd-11-stable/usr.sbin/bhyve/ps2kbd.c
/freebsd-11-stable/usr.sbin/bhyve/ps2kbd.h
/freebsd-11-stable/usr.sbin/bhyve/ps2mouse.c
/freebsd-11-stable/usr.sbin/bhyve/ps2mouse.h
/freebsd-11-stable/usr.sbin/bhyve/rfb.c
/freebsd-11-stable/usr.sbin/bhyve/rfb.h
/freebsd-11-stable/usr.sbin/bhyve/sockstream.c
/freebsd-11-stable/usr.sbin/bhyve/sockstream.h
/freebsd-11-stable/usr.sbin/bhyve/usb_emul.c
/freebsd-11-stable/usr.sbin/bhyve/usb_emul.h
/freebsd-11-stable/usr.sbin/bhyve/usb_mouse.c
/freebsd-11-stable/usr.sbin/bhyve/vga.c
/freebsd-11-stable/usr.sbin/bhyve/vga.h
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