diff options
author | Thierry Reding <treding@nvidia.com> | 2014-07-17 14:58:18 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-07-17 14:58:18 +0200 |
commit | dd849e581d7d23e1729c23bb2d6b85360ce4dd9d (patch) | |
tree | 3176ddacf7941d95e3743b9af1f5802a3d8ffe0c /arch/arm/mach-tegra/powergate.c | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) | |
parent | 2fa937a767bd0933dfe6017cabd038ce52594171 (diff) |
Merge branch 'for-3.17/fuse-move' into for-3.17/soc
Diffstat (limited to 'arch/arm/mach-tegra/powergate.c')
-rw-r--r-- | arch/arm/mach-tegra/powergate.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/arm/mach-tegra/powergate.c b/arch/arm/mach-tegra/powergate.c index 4cefc5cd6bed..0a14b8638437 100644 --- a/arch/arm/mach-tegra/powergate.c +++ b/arch/arm/mach-tegra/powergate.c @@ -17,21 +17,22 @@ * */ -#include <linux/kernel.h> #include <linux/clk.h> +#include <linux/clk/tegra.h> #include <linux/debugfs.h> #include <linux/delay.h> #include <linux/err.h> #include <linux/export.h> #include <linux/init.h> #include <linux/io.h> +#include <linux/kernel.h> #include <linux/reset.h> #include <linux/seq_file.h> #include <linux/spinlock.h> -#include <linux/clk/tegra.h> -#include <linux/tegra-powergate.h> -#include "fuse.h" +#include <soc/tegra/fuse.h> +#include <soc/tegra/powergate.h> + #include "iomap.h" #define DPD_SAMPLE 0x020 @@ -157,7 +158,7 @@ int tegra_powergate_remove_clamping(int id) * The Tegra124 GPU has a separate register (with different semantics) * to remove clamps. */ - if (tegra_chip_id == TEGRA124) { + if (tegra_get_chip_id() == TEGRA124) { if (id == TEGRA_POWERGATE_3D) { pmc_write(0, GPU_RG_CNTRL); return 0; @@ -227,7 +228,7 @@ int tegra_cpu_powergate_id(int cpuid) int __init tegra_powergate_init(void) { - switch (tegra_chip_id) { + switch (tegra_get_chip_id()) { case TEGRA20: tegra_num_powerdomains = 7; break; @@ -368,7 +369,7 @@ int __init tegra_powergate_debugfs_init(void) { struct dentry *d; - switch (tegra_chip_id) { + switch (tegra_get_chip_id()) { case TEGRA20: powergate_name = powergate_name_t20; break; |