15 Nov, 2011
1 commit
-
Remove most gpio macros and change gpio driver to platform driver.
Signed-off-by: Haojian Zhuang
14 Nov, 2011
1 commit
-
GPIO0 and GPIO1 are linked to unique interrupt line in PXA series,
others are linked to another interrupt line. All GPIO are linked to one
interrupt line in MMP series.Since gpio driver is shared between PXA series and MMP series, define
GPIO0 and GPIO1 as chained interrupt chip. So we can move out gpio code
from irq.c to gpio-pxa.c.Signed-off-by: Haojian Zhuang
Acked-by: Grant Likely
02 Nov, 2011
1 commit
-
* 'next/fixes' of git://git.linaro.org/people/arnd/arm-soc: (28 commits)
ARM: pxa/cm-x300: properly set bt_reset pin
ARM: mmp: rename SHEEVAD to GPLUGD
ARM: imx: Fix typo 'MACH_MX31_3DS_MXC_NAND_USE_BBT'
ARM: i.MX28: shift frac value in _CLK_SET_RATE
plat-mxc: iomux-v3.h: implicitly enable pull-up/down when that's desired
ARM: mx5: fix clock usage for suspend
ARM: pxa: use correct __iomem annotations
ARM: pxa: sharpsl pm needs SPI
ARM: pxa: centro and treo680 need palm27x
ARM: pxa: make pxafb_smart_*() empty when not enabled
ARM: pxa: select POWER_SUPPLY on raumfeld
ARM: pxa: pxa95x is incompatible with earlier pxa
ARM: pxa: CPU_FREQ_TABLE is needed for CPU_FREQ
ARM: pxa: pxa95x/saarb depends on pxa3xx code
ARM: pxa: allow selecting just one of TREO680/CENTRO
ARM: pxa: export symbols from pxa3xx-ulpi
ARM: pxa: make zylonite_pxa*_init declaration match code
ARM: pxa/z2: fix building error of pxa27x_cpu_suspend() no longer available
ARM: at91: add defconfig for at91sam9g45 family
ARM: at91: remove dependency for Atmel PWM driver selector in Kconfig
...
01 Nov, 2011
1 commit
-
This sorts out merge conflicts with the arm/gpio branch that
already got merged into mainline Linux.Signed-off-by: Arnd Bergmann
27 Oct, 2011
1 commit
-
* 'gpio' of http://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm: (43 commits)
ARM: 7135/1: ep93xx: bring back missing
ARM: 7104/1: plat-pxa: break out GPIO driver specifics
ARM: 7103/1: plat-pxa: move PXA GPIO driver to GPIO subsystem
ARM: 7042/3: mach-ep93xx: break out GPIO driver specifics
ARM: 7101/1: arm/tegra: Replace with
ARM: 7094/1: arm/tegra: Move EN_VDD_1V05_GPIO to board-harmony.h
ARM: 7083/1: rewrite U300 GPIO to use gpiolib
ARM: 7074/1: gpio: davinci: eliminate unused variable warnings
ARM: 7063/1: Orion: gpio: add missing include of linux/types.h
ARM: 7055/1: arm/tegra: mach/gpio.h: include linux/types.h to fix build
ARM: 7054/1: arm/tegra: Delete custom gpio_to_irq, and irq_to_gpio
ARM: 7053/1: gpio/tegra: Implement gpio_chip.to_irq
ARM: 7052/1: gpio/tegra: Remove use of irq_to_gpio
ARM: 7057/1: mach-pnx4008: rename GPIO header
ARM: 7056/1: plat-nomadik: kill off
ARM: 7050/1: mach-sa1100: delete irq_to_gpio() function
ARM: 7049/1: mach-sa1100: move SA1100 GPIO driver to GPIO subsystem
ARM: 7045/1: mach-lpc32xx: break out GPIO driver specifics
ARM: 7044/1: mach-lpc32xx: move LPC32XX GPIO driver to GPIO subsystem
ARM: 7043/1: mach-ixp2000: rename GPIO header
...Fix up trivial conflicts in arch/arm/mach-u300/Kconfig manually
17 Oct, 2011
1 commit
-
The definition of __exception_irq_entry for
CONFIG_FUNCTION_GRAPH_TRACER=y needs linux/ftrace.h, but this creates a
circular dependency with it's current home in asm/system.h. Create
asm/exception.h and update all current users.v4: - rebase to rmk/for-next
v3: - remove redundant includes of linux/ftrace.h
v2: - document the usage restricitions of __exception*Cc: Zoltan Devai
Signed-off-by: Jamie Iles
Signed-off-by: Russell King
08 Oct, 2011
1 commit
-
This tries to clear up the confusion between integers and iomem pointers
in the marvell pxa platform. MMIO addresses are supposed to be __iomem*
values, in order to let the Linux type checking work correctly. This
patch moves the cast to __iomem as far back as possible, to the place
where the MMIO virtual address windows are defined.Signed-off-by: Arnd Bergmann
Signed-off-by: Eric Miao
02 Oct, 2011
1 commit
-
The file is included from upper directories
and deal with generic GPIO and gpiolib stuff. Break out the
platform and driver specific defines and functions into its own
header file.Cc: Eric Miao
Signed-off-by: Linus Walleij
Signed-off-by: Russell King
08 Aug, 2011
1 commit
-
Convert arch/arm includes of mach/gpio.h and asm/gpio.h to linux/gpio.h
before we start consolidating the individual platform implementations
of the gpio header files.Signed-off-by: Russell King
12 Jul, 2011
2 commits
-
Thanks Dmitry for providing a fix to the original code.
Signed-off-by: Eric Miao
Signed-off-by: Dmitry Eremin-Solenikov -
Signed-off-by: Eric Miao
25 Apr, 2011
1 commit
-
Replace sysdev classes and struct sys_device objects used for "core"
power management by the PXA platform code with struct syscore_ops
objects that are simpler.This reduces the code size and the kernel memory footprint. It also
is necessary for removing sysdevs entirely from the kernel in the
future.Signed-off-by: Rafael J. Wysocki
Acked-by: Greg Kroah-Hartman
29 Mar, 2011
3 commits
-
Use irq_set_chip_and_handler() instead. Converted with coccinelle.
Signed-off-by: Thomas Gleixner
-
Reorder
irq_set_chip()
irq_set_chip_data()
irq_set_handler()to
irq_set_chip()
irq_set_handler()
irq_set_chip_data()so the next patch can combine irq_set_chip() and irq_set_handler() to
irq_set_chip_and_handler().Automated conversion with coccinelle.
Signed-off-by: Thomas Gleixner
-
Convert to the new function names. Automated with coccinelle.
Signed-off-by: Thomas Gleixner
15 Jan, 2011
3 commits
-
Signed-off-by: Eric Miao
Tested-by: Marek Vasut -
Signed-off-by: Marek Vasut
Signed-off-by: Eric Miao -
Signed-off-by: Marek Vasut
Signed-off-by: Eric Miao
14 Jan, 2011
1 commit
-
Signed-off-by: Lennert Buytenhek
18 Dec, 2010
1 commit
-
Signed-off-by: Eric Miao
Signed-off-by: Haojian Zhuang
16 Dec, 2010
1 commit
-
Define all IRQs in irqs.h. If some IRQs are sharing one IRQ number, define
them together. If some IRQs are sharing same name with different IRQ number,
define different IRQ.Signed-off-by: Haojian Zhuang
Cc: Eric Miao
Signed-off-by: Eric Miao
13 Jan, 2010
1 commit
-
PXA25x does not have IPR registers, saving and restoring should happen
only for pxa27x and pxa3xx.Signed-off-by: Eric Miao
03 Nov, 2009
1 commit
-
Since interrupt handler is changed to use interrupt priority, we also need
to save and restore these interrupt controller registers in suspend/resume
routine.Signed-off-by: Haojian Zhuang
Tested-by: Daniel Mack
Tested-by: Pavel Machek
Tested-by: Robert Jarzmik
Acked-by: Pavel Machek
Signed-off-by: Eric Miao
10 Sep, 2009
1 commit
-
Signed-off-by: Haojian Zhuang
Signed-off-by: Eric Miao
09 Mar, 2009
2 commits
-
The remaining registers are separated into:
-
-
-and then we can remove pxa-regs.h completely. Instead of #include this
file, let's:1. include the specific with care (if that's absolutely
necessary)2. define the registers in the driver, make cleanly defined API to expose
the register access to external with sufficient reasonSigned-off-by: Eric Miao
-
This is part of the work making gpio.c generic enough, the changes
include:1. move IRQ handling of GPIO 0 and 1 outside (and back into irq.c)
2. pxa_init_gpio() accepts a range for muxed GPIO IRQs, and an IRQ
number for the muxed GPIOs3. __gpio_is_occupied() and __gpio_is_inverted() are made inline,
and are moved into instead of generic gpio.cSigned-off-by: Eric Miao
02 Sep, 2008
1 commit
-
Allow PXA IRQs to be numbered starting at 16, leaving 0 to 15 for the
ISA IRQs, if needed.This patch depends on RMK's PXA_HAVE_BOARD_IRQS patch.
Signed-off-by: Marc Zyngier
Acked-by: Russel King
Acked-by: Eric Miao
Signed-off-by: Russell King
07 Aug, 2008
2 commits
-
This just leaves include/asm-arm/plat-* to deal with.
Signed-off-by: Russell King
-
Remove includes of asm/hardware.h in addition to asm/arch/hardware.h.
Then, since asm/hardware.h only exists to include asm/arch/hardware.h,
update everything to directly include asm/arch/hardware.h and remove
asm/hardware.h.Signed-off-by: Russell King
07 Jul, 2008
1 commit
-
Both i2c-pxa.c and irq.c still include pxa2xx-gpio.h although is is not
needed anymore.Signed-off-by: Philipp Zabel
Acked-by: Eric Miao
Signed-off-by: Russell King
19 Apr, 2008
7 commits
-
two reasons:
1. GPIO namings and their mode definitions are conceptually not part
of the PXA register definitions2. this is actually a temporary move in the transition of PXA2xx to
use MFP-alike APIs (as what PXA3xx is now doing), so that legacy
code will still work and new code can be added in step by stepSigned-off-by: eric miao
Signed-off-by: Russell King -
To further clean up the GPIO and IRQ structure:
1. pxa_init_irq_gpio() and pxa_init_gpio() combines into a single
function pxa_init_gpio()2. assignment of set_wake merged into pxa_init_{irq,gpio}() as
an argumentSigned-off-by: eric miao
Signed-off-by: Russell King -
This makes the code better organized and simplified a bit. The change
will lose a bit of performance when performing IRQ ack/mask/unmask,but
that's not too much after checking the result binary.This patch also removes the ugly #ifdef CONFIG_PXA27x .. #endif by
carefully not to access those pxa{27x,3xx} specific registers, this
is done by keeping an internal IRQ number variable. The pxa-regs.h
is also modified so registers for IRQ > PXA_IRQ(31) are made public
even if CONFIG_PXA{27x,3xx} isn't defined (for pxa25x's sake)The incorrect assumption in the original code that internal irq starts
from 0 is also corrected by comparing with PXA_IRQ(0)."struct sys_device" for the IRQ are reduced into one single device on
pxa{27x,3xx}.Signed-off-by: eric miao
Signed-off-by: Russell King -
Signed-off-by: eric miao
Signed-off-by: Russell King -
by
1. wrapping long lines and making comments tidy
2. using IRQ_TYPE_* instead of migration macros __IRQT_*
3. introduce a pr_debug() for the commented printk(KERN_DEBUG ...)
stuffSigned-off-by: eric miao
Signed-off-by: Russell King -
by:
1. introduce dedicated pxa_{mask,unmask}_low_gpio()
2. remove set_irq_chip(IRQ_GPIO_2_x, ...) which has already been
initialized in pxa_init_irq()3. introduce dedicated pxa_init_gpio_set_wake()
Signed-off-by: eric miao
Signed-off-by: Russell King -
1. As David Brownell suggests, using ffs() is going to make the loop
a bit faster (by avoiding unnecessary shift and iteration)2. Russell suggested find_{first,next}_bit() being used with the
gedr[] arraySigned-off-by: eric miao
Cc: David Brownell
Signed-off-by: Russell King
06 Feb, 2008
1 commit
-
This adds gpiolib support for the PXA architecture:
- move all GPIO API functions from generic.c into gpio.c
- convert the gpio_get/set_value macros into inline functionsThis makes it easier to hook up GPIOs provided by external chips like
ASICs and CPLDs.Signed-off-by: Philipp Zabel
Signed-off-by: David Brownell
Acked-by: Russell King
Cc: Jean Delvare
Cc: Eric Miao
Cc: Sam Ravnborg
Cc: Haavard Skinnemoen
Cc: Ben Gardner
Signed-off-by: Andrew Morton
[ Minor ARM fixup from David Brownell folded into this ]
Signed-off-by: Linus Torvalds
04 Feb, 2008
1 commit
-
Signed-off-by: eric miao
Signed-off-by: Russell King
16 Oct, 2007
1 commit
-
Signed-off-by: eric miao
Signed-off-by: Russell King