stmmac: share reset function between dwmac100 and dwmac1000