|
@@ -20,6 +20,7 @@
|
|
|
#ifndef __MACH_TEGRA_GPIO_H
|
|
|
#define __MACH_TEGRA_GPIO_H
|
|
|
|
|
|
+#include <linux/init.h>
|
|
|
#include <mach/irqs.h>
|
|
|
|
|
|
#define TEGRA_NR_GPIOS INT_GPIO_NR
|
|
@@ -47,6 +48,12 @@ static inline int irq_to_gpio(unsigned int irq)
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
+struct tegra_gpio_table {
|
|
|
+ int gpio; /* GPIO number */
|
|
|
+ bool enable; /* Enable for GPIO at init? */
|
|
|
+};
|
|
|
+
|
|
|
+void tegra_gpio_config(struct tegra_gpio_table *table, int num);
|
|
|
void tegra_gpio_enable(int gpio);
|
|
|
void tegra_gpio_disable(int gpio);
|
|
|
|