summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/common.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-01-25 21:43:28 (GMT)
committerOlof Johansson <olof@lixom.net>2012-02-07 02:25:01 (GMT)
commitd3b8bdd5f9bc538fb17466cbb7af43209b55cb93 (patch)
treeebad05f40bd821d30c1b777000ca04999bc04b98 /arch/arm/mach-tegra/common.c
parent8bc4f556bd740789cf6fab36d1776d6d4d8bd375 (diff)
downloadlinux-d3b8bdd5f9bc538fb17466cbb7af43209b55cb93.tar.xz
ARM: tegra: Add a simple PMC driver
This PMC driver is enough to parse the nvidia,invert-interrupt property from device tree, and configure the PMC's to honor that. In the future, this file could expand to centralize all other PMC accesses within the mach-tegra code. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-tegra/common.c')
-rw-r--r--arch/arm/mach-tegra/common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c
index 76210e5..43da428 100644
--- a/arch/arm/mach-tegra/common.c
+++ b/arch/arm/mach-tegra/common.c
@@ -32,6 +32,7 @@
#include "board.h"
#include "clock.h"
#include "fuse.h"
+#include "pmc.h"
/*
* Storage for debug-macro.S's state.
@@ -117,11 +118,13 @@ void __init tegra20_init_early(void)
tegra2_init_clocks();
tegra_clk_init_from_table(tegra20_clk_init_table);
tegra_init_cache(0x331, 0x441);
+ tegra_pmc_init();
}
#endif
#ifdef CONFIG_ARCH_TEGRA_3x_SOC
void __init tegra30_init_early(void)
{
tegra_init_cache(0x441, 0x551);
+ tegra_pmc_init();
}
#endif