summaryrefslogtreecommitdiffstats
path: root/drivers/clk/at91
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-01-15 15:59:31 +0100
committerNicolas Ferre <nicolas.ferre@atmel.com>2015-01-16 18:08:42 +0100
commit29ee506d0d56f6d39cc237de2512f9cb5629cbf7 (patch)
tree462f50bbdf5fa73d202bccff720516c4809dabe4 /drivers/clk/at91
parent0be0b8cd49f22037096ad41b831a93dd8d0d4f87 (diff)
downloadop-kernel-dev-29ee506d0d56f6d39cc237de2512f9cb5629cbf7.zip
op-kernel-dev-29ee506d0d56f6d39cc237de2512f9cb5629cbf7.tar.gz
ARM: at91: move at91rm9200_idle() to clk/at91/pmc.c
Move at91rm9200_idle() along with at91sam9_idle() in clk/at91/pmc.c. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Michael Turquette <mturquette@linaro.org> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'drivers/clk/at91')
-rw-r--r--drivers/clk/at91/pmc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c
index 386999b..f07c815 100644
--- a/drivers/clk/at91/pmc.c
+++ b/drivers/clk/at91/pmc.c
@@ -27,6 +27,15 @@
void __iomem *at91_pmc_base;
EXPORT_SYMBOL_GPL(at91_pmc_base);
+void at91rm9200_idle(void)
+{
+ /*
+ * Disable the processor clock. The processor will be automatically
+ * re-enabled by an interrupt or by a reset.
+ */
+ at91_pmc_write(AT91_PMC_SCDR, AT91_PMC_PCK);
+}
+
void at91sam9_idle(void)
{
at91_pmc_write(AT91_PMC_SCDR, AT91_PMC_PCK);
OpenPOWER on IntegriCloud