pxa25x.c (f43dc23d5ea91fca257be02138a255f02d98e806) | pxa25x.c (a3f4c927d379cfaa597bc8ff75dc9d28f8d9200e) |
---|---|
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/platform_device.h> 23#include <linux/suspend.h> 24#include <linux/sysdev.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/platform_device.h> 23#include <linux/suspend.h> 24#include <linux/sysdev.h> |
25#include <linux/irq.h> |
|
25 26#include <asm/mach/map.h> 27#include <mach/hardware.h> 28#include <mach/irqs.h> 29#include <mach/gpio.h> 30#include <mach/pxa25x.h> 31#include <mach/reset.h> 32#include <mach/pm.h> --- 244 unchanged lines hidden (view full) --- 277} 278#else 279static inline void pxa25x_init_pm(void) {} 280#endif 281 282/* PXA25x: supports wakeup from GPIO0..GPIO15 and RTC alarm 283 */ 284 | 26 27#include <asm/mach/map.h> 28#include <mach/hardware.h> 29#include <mach/irqs.h> 30#include <mach/gpio.h> 31#include <mach/pxa25x.h> 32#include <mach/reset.h> 33#include <mach/pm.h> --- 244 unchanged lines hidden (view full) --- 278} 279#else 280static inline void pxa25x_init_pm(void) {} 281#endif 282 283/* PXA25x: supports wakeup from GPIO0..GPIO15 and RTC alarm 284 */ 285 |
285static int pxa25x_set_wake(unsigned int irq, unsigned int on) | 286static int pxa25x_set_wake(struct irq_data *d, unsigned int on) |
286{ | 287{ |
287 int gpio = IRQ_TO_GPIO(irq); | 288 int gpio = IRQ_TO_GPIO(d->irq); |
288 uint32_t mask = 0; 289 290 if (gpio >= 0 && gpio < 85) 291 return gpio_set_wake(gpio, on); 292 | 289 uint32_t mask = 0; 290 291 if (gpio >= 0 && gpio < 85) 292 return gpio_set_wake(gpio, on); 293 |
293 if (irq == IRQ_RTCAlrm) { | 294 if (d->irq == IRQ_RTCAlrm) { |
294 mask = PWER_RTC; 295 goto set_pwer; 296 } 297 298 return -EINVAL; 299 300set_pwer: 301 if (on) --- 96 unchanged lines hidden --- | 295 mask = PWER_RTC; 296 goto set_pwer; 297 } 298 299 return -EINVAL; 300 301set_pwer: 302 if (on) --- 96 unchanged lines hidden --- |