pxa3xx.c (f6fb7af4768bc1ddc2349f6eaefedd746c8e4913) pxa3xx.c (b9e25aced33eeb7279ccbaef198f28370cfb4e93)
1/*
2 * linux/arch/arm/mach-pxa/pxa3xx.c
3 *
4 * code specific to pxa3xx aka Monahans
5 *
6 * Copyright (C) 2006 Marvell International Ltd.
7 *
8 * 2007-09-02: eric miao <eric.miao@marvell.com>

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

489 if (on)
490 wakeup_src |= mask;
491 else
492 wakeup_src &= ~mask;
493 local_irq_restore(flags);
494
495 return 0;
496}
1/*
2 * linux/arch/arm/mach-pxa/pxa3xx.c
3 *
4 * code specific to pxa3xx aka Monahans
5 *
6 * Copyright (C) 2006 Marvell International Ltd.
7 *
8 * 2007-09-02: eric miao <eric.miao@marvell.com>

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

489 if (on)
490 wakeup_src |= mask;
491 else
492 wakeup_src &= ~mask;
493 local_irq_restore(flags);
494
495 return 0;
496}
497
498static void pxa3xx_init_irq_pm(void)
499{
500 pxa_init_irq_set_wake(pxa3xx_set_wake);
501}
502
503#else
504static inline void pxa3xx_init_pm(void) {}
497#else
498static inline void pxa3xx_init_pm(void) {}
505static inline void pxa3xx_init_irq_pm(void) {}
499#define pxa3xx_set_wake NULL
506#endif
507
508void __init pxa3xx_init_irq(void)
509{
510 /* enable CP6 access */
511 u32 value;
512 __asm__ __volatile__("mrc p15, 0, %0, c15, c1, 0\n": "=r"(value));
513 value |= (1 << 6);
514 __asm__ __volatile__("mcr p15, 0, %0, c15, c1, 0\n": :"r"(value));
515
500#endif
501
502void __init pxa3xx_init_irq(void)
503{
504 /* enable CP6 access */
505 u32 value;
506 __asm__ __volatile__("mrc p15, 0, %0, c15, c1, 0\n": "=r"(value));
507 value |= (1 << 6);
508 __asm__ __volatile__("mcr p15, 0, %0, c15, c1, 0\n": :"r"(value));
509
516 pxa_init_irq(56);
517 pxa_init_irq_gpio(128);
518 pxa3xx_init_irq_pm();
510 pxa_init_irq(56, pxa3xx_set_wake);
511 pxa_init_gpio(128, NULL);
519}
520
521/*
522 * device registration specific to PXA3xx.
523 */
524
525static struct platform_device *devices[] __initdata = {
526 &pxa_device_udc,

--- 52 unchanged lines hidden ---
512}
513
514/*
515 * device registration specific to PXA3xx.
516 */
517
518static struct platform_device *devices[] __initdata = {
519 &pxa_device_udc,

--- 52 unchanged lines hidden ---