]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: tegra: pinmux: account for different drivegroup base registers
authorStephen Warren <swarren@nvidia.com>
Tue, 24 Feb 2015 21:08:29 +0000 (14:08 -0700)
committerTom Warren <twarren@nvidia.com>
Wed, 4 Mar 2015 17:09:01 +0000 (10:09 -0700)
Tegra210 starts its drive group registers at a different offset from the
APB MISC register block that other SoCs. Update the code to handle this.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/include/asm/arch-tegra114/pinmux.h
arch/arm/include/asm/arch-tegra124/pinmux.h
arch/arm/include/asm/arch-tegra20/pinmux.h
arch/arm/include/asm/arch-tegra30/pinmux.h
arch/arm/mach-tegra/pinmux-common.c

index 4848c95c55808d6d25cfb4c3da2688e1e2fdca09..38d8b9cf4d030dfe1bedde40ac626b99c07224bf 100644 (file)
@@ -313,6 +313,7 @@ enum pmux_func {
        PMUX_FUNC_COUNT,
 };
 
+#define TEGRA_PMX_SOC_DRV_GROUP_BASE_REG 0x868
 #define TEGRA_PMX_SOC_HAS_IO_CLAMPING
 #define TEGRA_PMX_SOC_HAS_DRVGRPS
 #define TEGRA_PMX_GRPS_HAVE_LPMD
index 4e6b88ec0e6d6666a337c4ce2a81694270ee2d41..78bc9e6f178bf3fed86d7f84e615d0f68fc56c03 100644 (file)
@@ -335,6 +335,7 @@ enum pmux_func {
        PMUX_FUNC_COUNT,
 };
 
+#define TEGRA_PMX_SOC_DRV_GROUP_BASE_REG 0x868
 #define TEGRA_PMX_SOC_HAS_IO_CLAMPING
 #define TEGRA_PMX_SOC_HAS_DRVGRPS
 #define TEGRA_PMX_GRPS_HAVE_LPMD
index f7bc97fe5f7389cfc947b61537e8b10fe2d335ec..bf35d50ba316a599142f1b90fa358b66b3b019a8 100644 (file)
@@ -233,6 +233,7 @@ enum pmux_func {
        PMUX_FUNC_COUNT,
 };
 
+#define TEGRA_PMX_SOC_DRV_GROUP_BASE_REG 0x868
 #include <asm/arch-tegra/pinmux.h>
 
 #endif /* _TEGRA20_PINMUX_H_ */
index 56117a4b1ba1fad7704bc9fc238863a45e5612bb..3358bf7ce3865ae2341ecfceb0e207a6ec177c85 100644 (file)
@@ -391,6 +391,7 @@ enum pmux_func {
        PMUX_FUNC_COUNT,
 };
 
+#define TEGRA_PMX_SOC_DRV_GROUP_BASE_REG 0x868
 #define TEGRA_PMX_SOC_HAS_DRVGRPS
 #define TEGRA_PMX_GRPS_HAVE_LPMD
 #define TEGRA_PMX_GRPS_HAVE_SCHMT
index b4ed153a2e327b828fcf03ba379fa8ff4583ab64..9bf30869712e7dde8e1e29cbc7689ba5a0ce0317 100644 (file)
@@ -99,7 +99,7 @@
 
 #endif /* CONFIG_TEGRA20 */
 
-#define DRV_REG(group) _R(0x868 + ((group) * 4))
+#define DRV_REG(group) _R(TEGRA_PMX_SOC_DRV_GROUP_BASE_REG + ((group) * 4))
 
 /*
  * We could force arch-tegraNN/pinmux.h to define all of these. However,