| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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]>
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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]>
|
| |\
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
arch/arm/mach-mxs/include/mach/gpio.h
arch/arm/plat-mxc/include/mach/gpio.h
Signed-off-by: Arnd Bergmann <[email protected]>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
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]>
|
| | |
| |
| |
| |
| | |
Signed-off-by: Stephen Warren <[email protected]>
Signed-off-by: Russell King <[email protected]>
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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]>
|
| |/
|
|
|
|
|
|
|
|
|
|
| |
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]>
|
| |
|
|
|
|
|
|
| |
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]>
|
| |
|
|
|
|
|
| |
Add support for decoding gpios from the device tree
Signed-off-by: Grant Likely <[email protected]>
Acked-by: Olof Johansson <[email protected]>
|
|
|
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]>
|