]> git.hungrycats.org Git - linux/commitdiff
MIPS: ath79: Fix AR724X_PLL_REG_PCIE_CONFIG offset
authorMathias Kresin <dev@kresin.me>
Thu, 11 May 2017 06:18:24 +0000 (08:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:47:41 +0000 (07:47 +0200)
[ Upstream commit 05454c1bde91fb013c0431801001da82947e6b5a ]

According to the QCA u-boot source the "PCIE Phase Lock Loop
Configuration (PCIE_PLL_CONFIG)" register is for all SoCs except the
QCA955X and QCA956X at offset 0x10.

Since the PCIE PLL config register is only defined for the AR724x fix
only this value. The value is wrong since the day it was added and isn't
used by any driver yet.

Signed-off-by: Mathias Kresin <dev@kresin.me>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16048/
Signed-off-by: James Hogan <jhogan@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/include/asm/mach-ath79/ar71xx_regs.h

index cd41e93bc1d80170330a26d6219b6fe6260619f7..19e5142bb9cc394e4dcba58df2961cd9e104e15d 100644 (file)
 #define AR71XX_AHB_DIV_MASK            0x7
 
 #define AR724X_PLL_REG_CPU_CONFIG      0x00
-#define AR724X_PLL_REG_PCIE_CONFIG     0x18
+#define AR724X_PLL_REG_PCIE_CONFIG     0x10
 
 #define AR724X_PLL_DIV_SHIFT           0
 #define AR724X_PLL_DIV_MASK            0x3ff