diff options
author | Stephen Warren <swarren@nvidia.com> | 2013-08-20 15:47:38 -0600 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-09-17 13:44:21 -0600 |
commit | 51100bdc067706624f0ffe285e63a6099336e11a (patch) | |
tree | f70ecaf8beced713834dc492badea9ae2384b7ec /arch/arm/mach-tegra/pmc.c | |
parent | d2207071b3c74b144a860cbe6a46496a44963972 (diff) | |
download | talos-obmc-linux-51100bdc067706624f0ffe285e63a6099336e11a.tar.gz talos-obmc-linux-51100bdc067706624f0ffe285e63a6099336e11a.zip |
ARM: tegra: remove common.c
common.c was create to contain code shared across the various Tegra board
files. There is now only one board file, tegra.c. So, move the code there.
One exception is the PMC reboot routine, which moves to pmc.c, and now
takes advantage of the 'standard' tegra_pmc_readl/writel functions.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/pmc.c')
-rw-r--r-- | arch/arm/mach-tegra/pmc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/pmc.c b/arch/arm/mach-tegra/pmc.c index 7916ff91f969..93a4dbcde27e 100644 --- a/arch/arm/mach-tegra/pmc.c +++ b/arch/arm/mach-tegra/pmc.c @@ -166,6 +166,15 @@ int tegra_pmc_cpu_remove_clamping(int cpuid) return tegra_pmc_powergate_remove_clamping(id); } +void tegra_pmc_restart(enum reboot_mode mode, const char *cmd) +{ + u32 val; + + val = tegra_pmc_readl(0); + val |= 0x10; + tegra_pmc_writel(val, 0); +} + #ifdef CONFIG_PM_SLEEP static void set_power_timers(u32 us_on, u32 us_off, unsigned long rate) { |