[PATCH v2] net: stmmac: dwmac-rk: add rk3228-specific data

2016-06-21 Thread Xing Zheng
Add constants and callback functions for the dwmac on rk3228/rk3229 socs. As can be seen, the base structure is the same, only registers and the bits in them moved slightly. Signed-off-by: Xing Zheng --- Changes in v2: - the "rk322x" is not clear to SoC decription, rename it

Re: [PATCH] net: stmmac: dwmac-rk: add rk322x-specific data

2016-06-21 Thread Xing Zheng
elow, just add a second compatible). OK, I try to just use "rockchip,rk3228-gmac" to point to "rk322x_ops" which is the same structure in MAC driver, and both rk3228 and rk3229 use it. Thanks -- - Xing Zheng

[PATCH] net: stmmac: dwmac-rk: add rk322x-specific data

2016-06-21 Thread Xing Zheng
Add constants and callback functions for the dwmac on rk322x socs. As can be seen, the base structure is the same, only registers and the bits in them moved slightly. Signed-off-by: Xing Zheng --- .../devicetree/bindings/net/rockchip-dwmac.txt |3 +- drivers/net/ethernet/stmicro/stmmac

Re: [PATCH RESEND] ethernet:arc: Move arc_emac_tx_clean() into arc_emac_tx() and disable tx interrut

2016-02-19 Thread Xing Zheng
. Moving tx_clean() into tx() will prevent this. And tx interrupt is no longer needed now. Signed-off-by: Shuyu Wei Tested-by: Michael Niewoehner Tested-by: Xing Zheng Thanks. -- - Xing Zheng

Re: [RESEND PATCH v1 3/4] net: ethernet: arc: Add support emac for RK3036

2016-01-01 Thread Xing Zheng
OK, I think I will use named structures. Thanks. > 在 2016年1月1日,20:55,Arnd Bergmann 写道: > >> On Tuesday 29 December 2015 14:59:59 Florian Fainelli wrote: >>> On December 27, 2015 11:22:20 PM PST, Xing Zheng >>> wrote: >>> The RK3036's GRFs offse

Re: [PATCH 1/4] net: ethernet: arc: Probe emac after set RMII clock

2015-12-27 Thread Xing Zheng
Hi David, Sorry, I missed the cover letter. I have added it and resent the patchset. Thanks. - Xing Zheng On 2015年12月28日 13:14, David Miller wrote: I only see 3 patches in this series. Furthermore, you failed to provide a proper "[PATCH 0/4] xxx" posting providing a high level desc

[RESEND PATCH v1 3/4] net: ethernet: arc: Add support emac for RK3036

2015-12-27 Thread Xing Zheng
The RK3036's GRFs offset are different with RK3066/RK3188, and need to set mac TX/RX clock before probe emac. Signed-off-by: Xing Zheng --- drivers/net/ethernet/arc/Kconfig |4 ++-- drivers/net/ethernet/arc/emac_rockchip.c |9 +++-- 2 files changed, 9 insertions(

[RESEND PATCH v1 1/4] net: ethernet: arc: Probe emac after set RMII clock

2015-12-27 Thread Xing Zheng
After enter arc_emac_probe, emac will get_phy_id, phy_poll_reset and other connecting PHY via mdiobus_read, so we need to set correct ref clock rate for emac before probe emac. Signed-off-by: Xing Zheng --- drivers/net/ethernet/arc/emac_rockchip.c | 11 +++ 1 file changed, 7

[RESEND PATCH v1 0/4] Add support emac for the RK3036 SoC platform

2015-12-27 Thread Xing Zheng
Hi, We have supported the emac for RK3066/RK3188, but the RK3036 have some configuration different with them. We should let the driver of emac_rockchip compatible with other Rockchip SoCs. Xing Zheng (4): net: ethernet: arc: Probe emac after set RMII clock net: ethernet: arc: Keep emac

[RESEND PATCH v1 2/4] net: ethernet: arc: Keep emac compatibility for more Rockchip SoCs

2015-12-27 Thread Xing Zheng
On the RK3066/RK3188, there was fixed GRF offset configuration to set emac and fixed DIV2 mac TX/RX clock. So, we need to easily set and fit to other SoCs (RK3036) which maybe have different GRF offset, and need adjust mac TX/RX clock. Signed-off-by: Xing Zheng --- drivers/net/ethernet/arc

[PATCH 3/4] net: ethernet: arc: Add support emac for RK3036

2015-12-23 Thread Xing Zheng
The RK3036's GRFs offset are different with RK3066/RK3188, and need to set mac TX/RX clock before probe emac. Signed-off-by: Xing Zheng --- drivers/net/ethernet/arc/Kconfig |4 ++-- drivers/net/ethernet/arc/emac_rockchip.c |9 +++-- 2 files changed, 9 insertions(

[PATCH 2/4] net: ethernet: arc: Keep emac compatibility for more Rockchip SoCs

2015-12-23 Thread Xing Zheng
On the RK3066/RK3188, there was fixed GRF offset configuration to set emac and fixed DIV2 mac TX/RX clock. So, we need to easily set and fit to other SoCs (RK3036) which maybe have different GRF offset, and need adjust mac TX/RX clock. Signed-off-by: Xing Zheng --- drivers/net/ethernet/arc

[PATCH 1/4] net: ethernet: arc: Probe emac after set RMII clock

2015-12-23 Thread Xing Zheng
After enter arc_emac_probe, emac will get_phy_id, phy_poll_reset and other connecting PHY via mdiobus_read, so we need to set correct ref clock rate for emac before probe emac. Signed-off-by: Xing Zheng --- drivers/net/ethernet/arc/emac_rockchip.c | 11 +++ 1 file changed, 7