dir-825-b1: Fix wholeflash images: Attempting to flash a wholeflash (-openwrt) image...
[openwrt/staging/yousong.git] / target / linux / ar71xx / patches-3.3 / 620-MIPS-ath79-OTP-support.patch
index 7859eba3216ce82114b15e5e2c802fb87c76e07b..087dbc0829b56eb09080ff5be157bb0f5798d563 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/ath79/dev-wmac.c
 +++ b/arch/mips/ath79/dev-wmac.c
-@@ -121,6 +121,137 @@ static void ar934x_wmac_setup(void)
+@@ -139,6 +139,137 @@ static void qca955x_wmac_setup(void)
                ath79_wmac_data.is_clk_25mhz = true;
  }
  
  #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
-@@ -102,6 +102,14 @@
- #define AR934X_EHCI_BASE      0x1b000000
- #define AR934X_EHCI_SIZE      0x1000
+@@ -129,6 +129,14 @@
+ #define QCA955X_NFC_BASE      0x1b000200
+ #define QCA955X_NFC_SIZE      0xb8
  
 +#define AR9300_OTP_BASE               0x14000
 +#define AR9300_OTP_STATUS     0x15f18