2005-04-16 22:20:36 +00:00
|
|
|
#
|
|
|
|
# Makefile for the linux kernel.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Common support (must be linked before board specific support)
|
2008-02-05 06:28:22 +00:00
|
|
|
obj-y += clock.o devices.o generic.o irq.o dma.o \
|
|
|
|
time.o gpio.o
|
[ARM] pxa: add MFP-alike pin configuration support for pxa{25x, 27x}
Pin configuration on pxa{25x,27x} has now separated from generic GPIO
into dedicated mfp-pxa2xx.c by this patch. The name "mfp" is borrowed
from pxa3xx and is used here to alert the difference between the two
concepts: pin configuration and generic GPIOs. A GPIO can be called
a "GPIO" _only_ when the corresponding pin is configured so.
A pin configuration on pxa{25x,27x} is composed of:
- alternate function selection (or pin mux as commonly called)
- low power state or sleep state
- wakeup enabling from low power mode
The following MFP_xxx bit definitions in mfp.h are re-used:
- MFP_PIN(x)
- MFP_AFx
- MFP_LPM_DRIVE_{LOW, HIGH}
- MFP_LPM_EDGE_*
Selecting alternate function on pxa{25x, 27x} involves configuration
of GPIO direction register GPDRx, so a new bit and MFP_DIR_{IN, OUT}
are introduced. And pin configurations are defined by the following
two macros:
- MFP_CFG_IN : for input alternate functions
- MFP_CFG_OUT : for output alternate functions
Every configuration should provide a low power state if it configured
as output using MFP_CFG_OUT(). As a general guideline, the low power
state should be decided to minimize the overall power dissipation. As
an example, it is better to drive the pin as high level in low power
mode if the GPIO is configured as an active low chip select.
Pins configured as GPIO are defined by MFP_CFG_IN(). This is to avoid
side effects when it is firstly configured as output. The actual
direction of the GPIO is configured by gpio_direction_{input, output}
Wakeup enabling on pxa{25x, 27x} is actually GPIO based wakeup, thus
the device based enable_irq_wake() mechanism is not applicable here.
E.g. invoking enable_irq_wake() with a GPIO IRQ as in the following
code to enable OTG wakeup is by no means portable and intuitive, and
it is valid _only_ when GPIO35 is configured as USB_P2_1:
enable_irq_wake( gpio_to_irq(35) );
To make things worse, not every GPIO is able to wakeup the system.
Only a small number of them can, on either rising or falling edge,
or when level is high (for keypad GPIOs).
Thus, another new bit is introduced to indicate that the GPIO will
wakeup the system:
- MFP_LPM_WAKEUP_ENABLE
The following macros can be used in platform code, and be OR'ed to
the GPIO configuration to enable its wakeup:
- WAKEUP_ON_EDGE_{RISE, FALL, BOTH}
- WAKEUP_ON_LEVEL_HIGH
The WAKEUP_ON_LEVEL_HIGH is used for keypad GPIOs _only_, there is
no edge settings for those GPIOs.
These WAKEUP_ON_* flags OR'ed on wrong GPIOs will be ignored in case
that platform code author is careless enough.
The tradeoff here is that the wakeup source is fully determined by
the platform configuration, instead of enable_irq_wake().
Signed-off-by: eric miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2008-03-05 09:16:29 +00:00
|
|
|
obj-$(CONFIG_PXA25x) += pxa25x.o mfp-pxa2xx.o
|
|
|
|
obj-$(CONFIG_PXA27x) += pxa27x.o mfp-pxa2xx.o
|
2008-03-03 00:59:13 +00:00
|
|
|
obj-$(CONFIG_PXA3xx) += pxa3xx.o mfp-pxa3xx.o smemc.o
|
2007-09-12 02:13:17 +00:00
|
|
|
obj-$(CONFIG_CPU_PXA300) += pxa300.o
|
|
|
|
obj-$(CONFIG_CPU_PXA320) += pxa320.o
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
# Specific board support
|
2008-03-15 04:11:07 +00:00
|
|
|
obj-$(CONFIG_ARCH_GUMSTIX) += gumstix.o
|
2007-09-19 08:21:51 +00:00
|
|
|
obj-$(CONFIG_ARCH_LUBBOCK) += lubbock.o
|
2006-03-28 20:08:13 +00:00
|
|
|
obj-$(CONFIG_MACH_LOGICPD_PXA270) += lpd270.o
|
2007-09-19 08:21:51 +00:00
|
|
|
obj-$(CONFIG_MACH_MAINSTONE) += mainstone.o
|
|
|
|
obj-$(CONFIG_ARCH_PXA_IDP) += idp.o
|
2006-06-29 15:01:43 +00:00
|
|
|
obj-$(CONFIG_MACH_TRIZEPS4) += trizeps4.o
|
2008-01-23 13:54:50 +00:00
|
|
|
obj-$(CONFIG_MACH_COLIBRI) += colibri.o
|
2005-11-13 10:07:46 +00:00
|
|
|
obj-$(CONFIG_PXA_SHARP_C7xx) += corgi.o corgi_ssp.o corgi_lcd.o sharpsl_pm.o corgi_pm.o
|
2005-11-13 10:07:47 +00:00
|
|
|
obj-$(CONFIG_PXA_SHARP_Cxx00) += spitz.o corgi_ssp.o corgi_lcd.o sharpsl_pm.o spitz_pm.o
|
2005-11-13 10:07:48 +00:00
|
|
|
obj-$(CONFIG_MACH_AKITA) += akita-ioexp.o
|
2006-06-19 19:46:05 +00:00
|
|
|
obj-$(CONFIG_MACH_POODLE) += poodle.o corgi_ssp.o
|
2008-01-08 07:44:23 +00:00
|
|
|
obj-$(CONFIG_MACH_PCM027) += pcm027.o
|
2008-01-08 07:52:04 +00:00
|
|
|
obj-$(CONFIG_MACH_PCM990_BASEBOARD) += pcm990-baseboard.o
|
2007-09-19 08:21:51 +00:00
|
|
|
obj-$(CONFIG_MACH_TOSA) += tosa.o
|
|
|
|
obj-$(CONFIG_MACH_EM_X270) += em-x270.o
|
2007-11-22 16:59:11 +00:00
|
|
|
obj-$(CONFIG_MACH_MAGICIAN) += magician.o
|
2007-11-19 12:16:56 +00:00
|
|
|
obj-$(CONFIG_ARCH_PXA_ESERIES) += eseries.o
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2007-09-12 02:13:17 +00:00
|
|
|
ifeq ($(CONFIG_MACH_ZYLONITE),y)
|
|
|
|
obj-y += zylonite.o
|
|
|
|
obj-$(CONFIG_CPU_PXA300) += zylonite_pxa300.o
|
|
|
|
obj-$(CONFIG_CPU_PXA320) += zylonite_pxa320.o
|
|
|
|
endif
|
2007-12-13 02:41:43 +00:00
|
|
|
obj-$(CONFIG_MACH_LITTLETON) += littleton.o
|
2007-09-12 02:13:17 +00:00
|
|
|
|
2007-09-23 14:59:26 +00:00
|
|
|
obj-$(CONFIG_MACH_ARMCORE) += cm-x270.o
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
# Support for blinky lights
|
|
|
|
led-y := leds.o
|
2007-09-19 08:21:51 +00:00
|
|
|
led-$(CONFIG_ARCH_LUBBOCK) += leds-lubbock.o
|
|
|
|
led-$(CONFIG_MACH_MAINSTONE) += leds-mainstone.o
|
|
|
|
led-$(CONFIG_ARCH_PXA_IDP) += leds-idp.o
|
|
|
|
led-$(CONFIG_MACH_TRIZEPS4) += leds-trizeps4.o
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2007-09-19 08:21:51 +00:00
|
|
|
obj-$(CONFIG_LEDS) += $(led-y)
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
# Misc features
|
2008-01-04 22:43:36 +00:00
|
|
|
obj-$(CONFIG_PM) += pm.o sleep.o standby.o
|
2007-12-14 13:30:14 +00:00
|
|
|
obj-$(CONFIG_CPU_FREQ) += cpu-pxa.o
|
2007-09-19 08:21:51 +00:00
|
|
|
obj-$(CONFIG_PXA_SSP) += ssp.o
|
2005-07-01 10:27:05 +00:00
|
|
|
|
2007-09-23 14:59:26 +00:00
|
|
|
ifeq ($(CONFIG_PCI),y)
|
|
|
|
obj-$(CONFIG_MACH_ARMCORE) += cm-x270-pci.o
|
|
|
|
endif
|