diff options
| author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-09-29 19:58:40 -0400 |
|---|---|---|
| committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-02-17 11:53:02 -0500 |
| commit | fbc7edca5a7dd417013ef4900763ef931f325b3d (patch) | |
| tree | 39af724e49947af4476cc7277a2aa8bb3a8d824a /drivers/clk/at91 | |
| parent | 5737b73e193ba9d09286b621eecd9db3f3c6abd2 (diff) | |
ARM: at91: pm: move idle functions to pm.c
Avoid using code from clk/at91 for PM.
This also has the bonus effect of setting arm_pm_idle for sama5 platforms.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/clk/at91')
| -rw-r--r-- | drivers/clk/at91/pmc.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index 0b255e7fc718..361ea0c1d3c9 100644 --- a/drivers/clk/at91/pmc.c +++ b/drivers/clk/at91/pmc.c | |||
| @@ -32,21 +32,6 @@ struct at91_pmc { | |||
| 32 | void __iomem *at91_pmc_base; | 32 | void __iomem *at91_pmc_base; |
| 33 | EXPORT_SYMBOL_GPL(at91_pmc_base); | 33 | EXPORT_SYMBOL_GPL(at91_pmc_base); |
| 34 | 34 | ||
| 35 | void at91rm9200_idle(void) | ||
| 36 | { | ||
| 37 | /* | ||
| 38 | * Disable the processor clock. The processor will be automatically | ||
| 39 | * re-enabled by an interrupt or by a reset. | ||
| 40 | */ | ||
| 41 | at91_pmc_write(AT91_PMC_SCDR, AT91_PMC_PCK); | ||
| 42 | } | ||
| 43 | |||
| 44 | void at91sam9_idle(void) | ||
| 45 | { | ||
| 46 | at91_pmc_write(AT91_PMC_SCDR, AT91_PMC_PCK); | ||
| 47 | cpu_do_idle(); | ||
| 48 | } | ||
| 49 | |||
| 50 | int of_at91_get_clk_range(struct device_node *np, const char *propname, | 35 | int of_at91_get_clk_range(struct device_node *np, const char *propname, |
| 51 | struct clk_range *range) | 36 | struct clk_range *range) |
| 52 | { | 37 | { |
