mirror of https://github.com/hak5/openwrt.git
ar71xx: rename QCA9558 ETH_CFG bit defines
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34852lede-17.01
parent
4085a5773d
commit
84a7051cef
|
@ -296,7 +296,7 @@
|
|||
+
|
||||
+#define QCA955X_GMAC_REG_ETH_CFG 0x00
|
||||
+
|
||||
+#define QCA955X_ETH_CFG_RGMII_GMAC0 BIT(0)
|
||||
+#define QCA955X_ETH_CFG_SGMII_GMAC0 BIT(6)
|
||||
+#define QCA955X_ETH_CFG_RGMII_EN BIT(0)
|
||||
+#define QCA955X_ETH_CFG_GE0_SGMII BIT(6)
|
||||
+
|
||||
#endif /* __ASM_MACH_AR71XX_REGS_H */
|
||||
|
|
|
@ -130,8 +130,8 @@
|
|||
- sizeof(ap136_ath9k_data.eeprom_data));
|
||||
+ t = __raw_readl(base + QCA955X_GMAC_REG_ETH_CFG);
|
||||
+
|
||||
+ t &= ~(QCA955X_ETH_CFG_RGMII_GMAC0 | QCA955X_ETH_CFG_SGMII_GMAC0);
|
||||
+ t |= QCA955X_ETH_CFG_RGMII_GMAC0;
|
||||
+ t &= ~(QCA955X_ETH_CFG_RGMII_EN | QCA955X_ETH_CFG_GE0_SGMII);
|
||||
+ t |= QCA955X_ETH_CFG_RGMII_EN;
|
||||
|
||||
- ath79_pci_set_plat_dev_init(ap136_pci_plat_dev_init);
|
||||
- ath79_register_pci();
|
||||
|
|
Loading…
Reference in New Issue