diff options
author | Scott Williams <scwilliams@nvidia.com> | 2010-12-22 13:44:20 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:42:03 -0800 |
commit | 59c211f7e1aa4c6f948c289419d3facdf687d92f (patch) | |
tree | 3f12dc26508c43bf14e6db0b3cecbd9e111fb8ee /arch/arm/mach-tegra/pm.h | |
parent | 191914c96cd231c067a2895db19e512423a6c7d9 (diff) |
PARTIAL arm: tegra3: Add CPU idle support
Original-Change-Id: I5464b01ebb454b7fdc6fd316ba31de110a642063
Reviewed-on: http://git-master/r/14167
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Jin Qian <jqian@nvidia.com>
Tested-by: Jin Qian <jqian@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I201cdb6dc4e78f762266cb96e48689d4d4f963f6
Rebase-Id: Rb3ac2fff9435330ec65c5541d369b743c9cb898f
Diffstat (limited to 'arch/arm/mach-tegra/pm.h')
-rw-r--r-- | arch/arm/mach-tegra/pm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/pm.h b/arch/arm/mach-tegra/pm.h index e892d9f3bb0f..f5c6b3e0da49 100644 --- a/arch/arm/mach-tegra/pm.h +++ b/arch/arm/mach-tegra/pm.h @@ -83,4 +83,10 @@ void tegra_cluster_switch_epilog(unsigned int flags); unsigned int is_lp_cluster(void); #endif +static inline void flowctrl_writel(unsigned long val, unsigned int offs) +{ + __raw_writel(val, IO_ADDRESS(TEGRA_FLOW_CTRL_BASE) + offs); + (void)__raw_readl(IO_ADDRESS(TEGRA_FLOW_CTRL_BASE) + offs); +} + #endif /* _MACH_TEGRA_SUSPEND_H_ */ |