aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-tegra.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | gpio: tegra: Parameterize the number of banksStephen Warren2012-02-071-9/+33
| | | | | | | | | | | | | | | | | | | | Tegra20's GPIO controller has 7 banks, and Tegra30's controller has 8 banks. Allow the number of banks to be configured at run-time by the device tree. Signed-off-by: Stephen Warren <[email protected]> Acked-by: Grant Likely <[email protected]> Signed-off-by: Olof Johansson <[email protected]>
* | gpio: tegra: Dynamically allocate IRQ base, and support DTStephen Warren2012-02-071-7/+18
|/ | | | | | | | | | | | | | | | | | | Enhance the driver to dynamically allocate the base IRQ number, and create an IRQ domain for itself. The use of an IRQ domain ensures that any device tree node interrupts properties are correctly parsed. Describe interrupt-related properties in the device tree binding docs, and the contents of "child" node interrupts property. Update tegra*.dtsi to specify the required interrupt-related properties. Finally, remove the definition of TEGRA_GPIO_TO_IRQ; this macro no longer gives correct results since the IRQ numbers for GPIOs are dynamically allocated. Signed-off-by: Stephen Warren <[email protected]> Acked-by: Grant Likely <[email protected]> Signed-off-by: Olof Johansson <[email protected]>
* drivers/gpio/gpio-tegra.c: use devm_request_and_ioremapJulia Lawall2012-01-021-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reimplement a call to devm_request_mem_region followed by a call to ioremap or ioremap_nocache by a call to devm_request_and_ioremap. The semantic patch that makes this transformation is as follows: (http://coccinelle.lip6.fr/) // <smpl> @nm@ expression myname; identifier i; @@ struct platform_driver i = { .driver = { .name = myname } }; @@ expression dev,res,size; expression nm.myname; @@ -if (!devm_request_mem_region(dev, res->start, size, - \(res->name\|dev_name(dev)\|myname\))) { - ... - return ...; -} ... when != res->start ( -devm_ioremap(dev,res->start,size) +devm_request_and_ioremap(dev,res) | -devm_ioremap_nocache(dev,res->start,size) +devm_request_and_ioremap(dev,res) ) ... when any when != res->start // </smpl> Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: Grant Likely <[email protected]>
* Merge branch 'depends/rmk/gpio' into next/develArnd Bergmann2011-10-311-7/+16
|\ | | | | | | | | | | | | | | Conflicts: arch/arm/mach-mxs/include/mach/gpio.h arch/arm/plat-mxc/include/mach/gpio.h Signed-off-by: Arnd Bergmann <[email protected]>
| * ARM: 7101/1: arm/tegra: Replace <mach/gpio.h> with <mach/gpio-tegra.h>Stephen Warren2011-09-261-0/+1
| | | | | | | | | | | | | | | | | | This will eventually allow <mach/gpio.h> to be deleted. This mirrors LinusW's recent equivalent work on various other ARM platforms. Signed-off-by: Stephen Warren <[email protected]> Acked-by: Olof Johansson <[email protected]> Signed-off-by: Russell King <[email protected]>
| * ARM: 7053/1: gpio/tegra: Implement gpio_chip.to_irqStephen Warren2011-08-241-1/+5
| | | | | | | | | | Signed-off-by: Stephen Warren <[email protected]> Signed-off-by: Russell King <[email protected]>
| * ARM: 7052/1: gpio/tegra: Remove use of irq_to_gpioStephen Warren2011-08-241-6/+10
| | | | | | | | | | | | | | | | irq_to_gpio is being removed. Replace the only use of that API by the ARM Tegra sub-architecture. Signed-off-by: Stephen Warren <[email protected]> Signed-off-by: Russell King <[email protected]>
* | gpio/tegra: Convert to a platform deviceStephen Warren2011-10-131-48/+95
|/ | | | | | | | | | | | v3: Make regs variable static. Remove empty init of tegra_gpio_banks. v2: Retrieve IRQ and memory addresses from resources instead of hard- coding them. Add back initialization of tegra_gpio_chip.of_node. Signed-off-by: Stephen Warren <[email protected]> Acked-by: Grant Likely <[email protected]> [olof: switched probe routine to __devinit] Signed-off-by: Olof Johansson <[email protected]>
* gpio/tegra: Use engineering names in DT compatible propertyStephen Warren2011-07-061-1/+1
| | | | | | | | Engineering names are more stable than marketing names. Hence, use them for Device Tree compatible properties instead. Signed-off-by: Stephen Warren <[email protected]> Signed-off-by: Grant Likely <[email protected]>
* gpio/tegra: add devicetree supportGrant Likely2011-06-151-0/+10
| | | | | | | Add support for decoding gpios from the device tree Signed-off-by: Grant Likely <[email protected]> Acked-by: Olof Johansson <[email protected]>
* gpio/tegra: Move Tegra gpio driver to drivers/gpioGrant Likely2011-06-151-0/+431
As part of the gpio driver consolidation, this patch moves the Tegra driver into drivers/gpio Signed-off-by: Grant Likely <[email protected]> Acked-by: Olof Johansson <[email protected]> Acked-by: Colin Cross <[email protected]>