Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256697
b: refs/heads/master
c: df22122
h: refs/heads/master
i:
  256695: e47c935
v: v3
  • Loading branch information
Grant Likely committed Jun 15, 2011
1 parent 4aa3728 commit 0548fb1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea5a9607cb2a3c7e5e9fcb1b3d75b8f88eca5766
refs/heads/master: df2212270ce94f12e9caed6ca04c7077672d588e
7 changes: 7 additions & 0 deletions trunk/Documentation/devicetree/bindings/gpio/gpio_nvidia.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
NVIDIA Tegra 2 GPIO controller

Required properties:
- compatible : "nvidia,tegra250-gpio"
- #gpio-cells : Should be two. The first cell is the pin number and the
second cell is used to specify optional parameters (currently unused).
- gpio-controller : Marks the device node as a GPIO controller.
10 changes: 10 additions & 0 deletions trunk/drivers/gpio/gpio-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include <linux/io.h>
#include <linux/gpio.h>
#include <linux/of.h>

#include <asm/mach/irq.h>

Expand Down Expand Up @@ -340,6 +341,15 @@ static int __init tegra_gpio_init(void)
}
}

#ifdef CONFIG_OF_GPIO
/*
* This isn't ideal, but it gets things hooked up until this
* driver is converted into a platform_device
*/
tegra_gpio_chip.of_node = of_find_compatible_node(NULL, NULL,
"nvidia,tegra250-gpio");
#endif /* CONFIG_OF_GPIO */

gpiochip_add(&tegra_gpio_chip);

for (i = INT_GPIO_BASE; i < (INT_GPIO_BASE + TEGRA_NR_GPIOS); i++) {
Expand Down

0 comments on commit 0548fb1

Please sign in to comment.