linux/arch/arm/mach-pxa
eric miao c0a596d6a1 [ARM] pxa: allow dynamic enable/disable of GPIO wakeup for pxa{25x,27x}
Changes include:

1. rename MFP_LPM_WAKEUP_ENABLE into MFP_LPM_CAN_WAKEUP to indicate
   the board capability of this pin to wakeup the system

2. add gpio_set_wake() and keypad_set_wake() to allow dynamically
   enable/disable wakeup from GPIOs and keypad GPIO

   * these functions are currently kept in mfp-pxa2xx.c due to their
     dependency to the MFP configuration

3. pxa2xx_mfp_config() only gives early warning if MFP_LPM_CAN_WAKEUP
   is set on incorrect pins

So that the GPIO's wakeup capability is now decided by the following:

   a) processor's capability: (only those GPIOs which have dedicated
      bits within PWER/PRER/PFER can wakeup the system), this is
      initialized by pxa{25x,27x}_init_mfp()

   b) board design decides:
      - whether the pin is designed to wakeup the system (some of
        the GPIOs are configured as other functions, which is not
        intended to be a wakeup source), by OR'ing the pin config
        with MFP_LPM_CAN_WAKEUP

      - which edge the pin is designed to wakeup the system, this
        may depends on external peripherals/connections, which is
        totally board specific; this is indicated by MFP_LPM_EDGE_*

   c) the corresponding device's (most likely the gpio_keys.c) wakeup
      attribute:

Signed-off-by: eric miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2008-04-19 11:29:05 +01:00
..
akita-ioexp.c i2c: normal_i2c can be made const (remaining drivers) 2008-01-27 18:14:47 +01:00
clock.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
clock.h [ARM] pxa: introduce clk support for PXA SoC clocks 2007-10-12 21:14:55 +01:00
cm-x270-pci.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
cm-x270-pci.h [ARM] 4576/1: CM-X270 machine support 2007-10-15 18:53:57 +01:00
cm-x270.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
colibri.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
corgi_lcd.c [ARM] 4737/1: Refactor corgi_lcd to improve readability + bugfix 2008-01-28 13:13:25 +00:00
corgi_pm.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
corgi_ssp.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
corgi.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
cpu-pxa.c [ARM] eliminate MODULE_PARM() usage 2008-02-29 22:47:17 +00:00
devices.c [ARM] pxa: fix the warning of undeclared "struct pxaohci_platform_data" 2008-02-04 13:17:32 +00:00
devices.h [ARM] pxa: mmc: add 3rd host controller support for pxa310 2008-01-26 15:07:53 +00:00
dma.c [ARM] replace remaining __FUNCTION__ occurrences 2008-03-06 12:18:18 +00:00
em-x270.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
eseries.c [ARM] 4649/1: Base support for pxa-based Toshiba e-series PDAs. 2008-01-28 13:13:13 +00:00
generic.c [ARM] pxa: move GPIO sysdev outside of generic.c into gpio.c 2008-04-19 11:29:04 +01:00
generic.h [ARM] pxa: move ARRAY_AND_SIZE definition to generic.h 2008-04-19 11:29:04 +01:00
gpio.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
idp.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
irq.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
Kconfig [ARM] 4762/1: Basic support for Toradex Colibri module 2008-01-28 13:13:27 +00:00
leds-idp.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
leds-lubbock.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
leds-mainstone.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
leds-trizeps4.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
leds.c [ARM] 3666/1: TRIZEPS4 [1/5] core 2006-06-29 16:25:37 +01:00
leds.h fix file specification in comments 2006-10-03 23:01:26 +02:00
littleton.c [ARM] pxa: move ARRAY_AND_SIZE definition to generic.h 2008-04-19 11:29:04 +01:00
lpd270.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
lubbock.c [ARM] pxa: use new pin configuration mechanism for lubbock 2008-04-19 11:29:05 +01:00
magician.c [ARM] 4664/1: Add basic support for HTC Magician PDA phones 2008-01-28 13:13:16 +00:00
mainstone.c [ARM] pxa: use new pin configuration mechanism for mainstone 2008-04-19 11:29:05 +01:00
Makefile [ARM] pxa: add MFP-alike pin configuration support for pxa{25x, 27x} 2008-04-19 11:29:04 +01:00
Makefile.boot Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mfp-pxa2xx.c [ARM] pxa: allow dynamic enable/disable of GPIO wakeup for pxa{25x,27x} 2008-04-19 11:29:05 +01:00
mfp-pxa3xx.c [ARM] pxa: move mfp sysdev registeration out for suspend/resume order 2008-04-19 11:29:04 +01:00
pcm027.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
pcm990-baseboard.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
pm.c [ARM] pxa: skip registers saving/restoring if entering standby mode 2008-01-26 15:07:57 +00:00
poodle.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
pxa3xx.c [ARM] pxa: move mfp sysdev registeration out for suspend/resume order 2008-04-19 11:29:04 +01:00
pxa25x.c [ARM] pxa: allow dynamic enable/disable of GPIO wakeup for pxa{25x,27x} 2008-04-19 11:29:05 +01:00
pxa27x.c [ARM] pxa: allow dynamic enable/disable of GPIO wakeup for pxa{25x,27x} 2008-04-19 11:29:05 +01:00
pxa300.c [ARM] 4635/1: pxa: Change Eric Miao's email address to eric.miao@marvell.com 2007-10-31 15:21:48 +00:00
pxa320.c [ARM] 4675/1: pxa: fix mfp address definition error for pxa320 2007-11-29 20:52:54 +00:00
sharpsl_pm.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
sharpsl.h [ARM] 4737/1: Refactor corgi_lcd to improve readability + bugfix 2008-01-28 13:13:25 +00:00
sleep.S [ARM] pxa: add preliminary suspend/resume code for pxa3xx 2008-02-04 13:17:33 +00:00
smemc.c [ARM] pxa: introduce sysdev for pxa3xx static memory controller 2008-02-04 13:17:33 +00:00
spitz_pm.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
spitz.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
ssp.c Merge branch 'pxa-plat' into devel 2008-01-28 13:21:38 +00:00
standby.S [ARM] pxa: Add PXA3 standby code hooked into the IRQ wake scheme 2008-01-26 15:07:56 +00:00
time.c [ARM] pxa: fix PXA27x resume 2008-01-26 15:07:57 +00:00
tosa.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
trizeps4.c [ARM] pxa: separate GPIOs and their mode definitions to pxa2xx-gpio.h 2008-04-19 11:29:04 +01:00
zylonite_pxa300.c [ARM] pxa: move ARRAY_AND_SIZE definition to generic.h 2008-04-19 11:29:04 +01:00
zylonite_pxa320.c [ARM] pxa: move ARRAY_AND_SIZE definition to generic.h 2008-04-19 11:29:04 +01:00
zylonite.c [ARM] 4841/1: pxa: fix typo in LCD platform data definition code for zylonite 2008-02-29 22:47:25 +00:00