ar71xx: add ath79_wmac_register_simple helper
[lede.git] / target / linux / ar71xx / patches-3.3 / 620-MIPS-ath79-OTP-support.patch
index 2ff6c3af570dc7b5a50614ea1e02be00f481e3f4..7bd17d80d80ea1dc7d4a0460ff60cb75f4804666 100644 (file)
        if (soc_is_ar913x())
 --- a/arch/mips/ath79/dev-wmac.h
 +++ b/arch/mips/ath79/dev-wmac.h
-@@ -13,5 +13,6 @@
- #define _ATH79_DEV_WMAC_H
+@@ -14,5 +14,6 @@
  
  void ath79_register_wmac(u8 *cal_data, u8 *mac_addr);
+ void ath79_register_wmac_simple(void);
 +bool ar93xx_wmac_read_mac_address(u8 *dest);
  
  #endif /* _ATH79_DEV_WMAC_H */
 --- a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
 +++ b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
-@@ -125,6 +125,14 @@
- #define QCA955X_GMAC_BASE     (AR71XX_APB_BASE + 0x00070000)
- #define QCA955X_GMAC_SIZE     0x40
+@@ -129,6 +129,14 @@
+ #define QCA955X_NFC_BASE      0x1b000200
+ #define QCA955X_NFC_SIZE      0xb8
  
 +#define AR9300_OTP_BASE               0x14000
 +#define AR9300_OTP_STATUS     0x15f18