x86, efi: Set runtime_version to the EFI spec revision
[linux/fpc-iii.git] / arch / arm / mach-pxa / clock-pxa2xx.c
blob9ee2ad6a0a07ccdc20aa5d4878adfb4c635d9a2c
1 /*
2 * linux/arch/arm/mach-pxa/clock-pxa2xx.c
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
9 #include <linux/module.h>
10 #include <linux/kernel.h>
11 #include <linux/init.h>
12 #include <linux/io.h>
13 #include <linux/syscore_ops.h>
15 #include <mach/pxa2xx-regs.h>
17 #include "clock.h"
19 void clk_pxa2xx_cken_enable(struct clk *clk)
21 CKEN |= 1 << clk->cken;
24 void clk_pxa2xx_cken_disable(struct clk *clk)
26 CKEN &= ~(1 << clk->cken);
29 const struct clkops clk_pxa2xx_cken_ops = {
30 .enable = clk_pxa2xx_cken_enable,
31 .disable = clk_pxa2xx_cken_disable,
34 #ifdef CONFIG_PM
35 static uint32_t saved_cken;
37 static int pxa2xx_clock_suspend(void)
39 saved_cken = CKEN;
40 return 0;
43 static void pxa2xx_clock_resume(void)
45 CKEN = saved_cken;
47 #else
48 #define pxa2xx_clock_suspend NULL
49 #define pxa2xx_clock_resume NULL
50 #endif
52 struct syscore_ops pxa2xx_clock_syscore_ops = {
53 .suspend = pxa2xx_clock_suspend,
54 .resume = pxa2xx_clock_resume,