diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2014-07-13 19:44:00 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2014-07-13 19:44:00 +0000 |
commit | 26b39cc580150ec8d677f9f16498f63b81cd0197 (patch) | |
tree | 20a0227f2f368f0340b96f035a9d0c4f1c85f3c2 /target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c | |
parent | c4c25e741ed4a89822182991acb37e68d685b79f (diff) | |
download | mtk-20170518-26b39cc580150ec8d677f9f16498f63b81cd0197.zip mtk-20170518-26b39cc580150ec8d677f9f16498f63b81cd0197.tar.gz mtk-20170518-26b39cc580150ec8d677f9f16498f63b81cd0197.tar.bz2 |
ar71xx: use ath79_setup_qca955x_eth_cfg helper for QCA955x based boards
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 41627
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c index 5b8c3d0..e102f2c 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c @@ -187,23 +187,6 @@ static void nbg6716_get_mac(const char *name, char *mac) pr_err("no MAC address found for %s\n", name); } -static void __init nbg6716_gmac_setup(void) -{ - void __iomem *base; - u32 t; - - base = ioremap(QCA955X_GMAC_BASE, QCA955X_GMAC_SIZE); - - t = __raw_readl(base + QCA955X_GMAC_REG_ETH_CFG); - - t &= ~(QCA955X_ETH_CFG_RGMII_EN | QCA955X_ETH_CFG_GE0_SGMII); - t |= QCA955X_ETH_CFG_RGMII_EN; - - __raw_writel(t, base + QCA955X_GMAC_REG_ETH_CFG); - - iounmap(base); -} - static void __init nbg6716_common_setup(void) { u8 *art = (u8 *) KSEG1ADDR(0x1f050000); @@ -228,7 +211,7 @@ static void __init nbg6716_common_setup(void) ath79_register_wmac(art + NBG6716_WMAC_CALDATA_OFFSET, tmpmac); - nbg6716_gmac_setup(); + ath79_setup_qca955x_eth_cfg(QCA955X_ETH_CFG_RGMII_EN); ath79_register_mdio(0, 0x0); |