pxa25x.c (88dfe98c688e1700a4a9f73f8b7d570f4f52170d) pxa25x.c (cd49104d99b56383a3b1fdce2f31018197093c31)
1/*
2 * linux/arch/arm/mach-pxa/pxa25x.c
3 *
4 * Author: Nicolas Pitre
5 * Created: Jun 15, 2001
6 * Copyright: MontaVista Software Inc.
7 *
8 * Code specific to PXA21x/25x/26x variants.

--- 8 unchanged lines hidden (view full) ---

17 * need be.
18 */
19#include <linux/module.h>
20#include <linux/kernel.h>
21#include <linux/init.h>
22#include <linux/pm.h>
23
24#include <asm/hardware.h>
1/*
2 * linux/arch/arm/mach-pxa/pxa25x.c
3 *
4 * Author: Nicolas Pitre
5 * Created: Jun 15, 2001
6 * Copyright: MontaVista Software Inc.
7 *
8 * Code specific to PXA21x/25x/26x variants.

--- 8 unchanged lines hidden (view full) ---

17 * need be.
18 */
19#include <linux/module.h>
20#include <linux/kernel.h>
21#include <linux/init.h>
22#include <linux/pm.h>
23
24#include <asm/hardware.h>
25#include <asm/arch/irqs.h>
25#include <asm/arch/pxa-regs.h>
26#include <asm/arch/pm.h>
27
28#include "generic.h"
29
30/*
31 * Various clock factors driven by the CCCR register.
32 */

--- 90 unchanged lines hidden (view full) ---

123}
124
125static struct pm_ops pxa25x_pm_ops = {
126 .enter = pxa_pm_enter,
127 .valid = pm_valid_only_mem,
128};
129#endif
130
26#include <asm/arch/pxa-regs.h>
27#include <asm/arch/pm.h>
28
29#include "generic.h"
30
31/*
32 * Various clock factors driven by the CCCR register.
33 */

--- 90 unchanged lines hidden (view full) ---

124}
125
126static struct pm_ops pxa25x_pm_ops = {
127 .enter = pxa_pm_enter,
128 .valid = pm_valid_only_mem,
129};
130#endif
131
132void __init pxa25x_init_irq(void)
133{
134 pxa_init_irq_low();
135 pxa_init_irq_gpio(85);
136}
137
131static int __init pxa25x_init(void)
132{
133 if (cpu_is_pxa21x() || cpu_is_pxa25x()) {
134#ifdef CONFIG_PM
135 pm_set_ops(&pxa25x_pm_ops);
136#endif
137 }
138 return 0;
139}
140
141subsys_initcall(pxa25x_init);
138static int __init pxa25x_init(void)
139{
140 if (cpu_is_pxa21x() || cpu_is_pxa25x()) {
141#ifdef CONFIG_PM
142 pm_set_ops(&pxa25x_pm_ops);
143#endif
144 }
145 return 0;
146}
147
148subsys_initcall(pxa25x_init);