Hi,

Sorry sure I done an mistake here : 
//ADD - EMAC Clock Register defaut value 0x58000 - need reset bit 16 (power up)
                emac_clk_reg_rst: reset@01c30000 {
                        #reset-cells = <1>;
                        compatible = "allwinner,sun6i-a31-ahb1-reset";
                        reg = <0x01c30000 0x4>;
                };

please remplace it by
//ADD - EMAC Clock Register defaut value 0x58000 - need reset bit 16 (power up)
                emac_clk_reg_rst: reset@01c00030 {
                        #reset-cells = <1>;
                        compatible = "allwinner,sun6i-a31-ahb1-reset";
                        reg = <0x01c00030 0x4>;
                };


I can find some operation equivalent about what I propose in "Loboris kernel 
3.4" :

In sunxi_geth.h
#define SYS_CTL_BASE            0x01c00000
#define GETH_CLK_REG            0x0030
#define GETH_CLK_GPIT           0x00000004

In sunxi_geth.c
value = readl(priv->geth_extclk + GETH_CLK_REG);
if (priv->phy_ext == INT_PHY) {
        value |= (1 << 15);
        value &= ~(1 << 16);
        value |= (3 << 17);
} else {
        value &= ~(1 << 15);
        value |= (1 << 16);
}
writel(value, priv->geth_extclk + GETH_CLK_REG);

I can't find the driver dwmac or stmmac file, code area where is accessing REG 
at low level. No trace in uboot? Any idea about A31 Hummingbird openwrt working 
source?

the dmesg log of A31 Hummingbird openwrt :
0.950986] sun7i-dwmac 1c30000.ethernet: no regulator found [ 0.956762] Ring 
mode enabled [ 0.959815] No HW DMA feature register supported [ 0.964339] 
Normal descriptors [ 0.967697] TX Checksum insertion supported [ 1.028699] 
libphy: stmmac: probed [ 1.032104] eth0: PHY ID 001cc915 at 0 IRQ POLL 
(stmmac-0:00) active [ 1.038486] eth0: PHY ID 001cc915 at 1 IRQ POLL 
(stmmac-0:01) 

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to