arm: tegra: cardhu: Initialize gpio pins mode
Laxman Dewangan [Tue, 4 Oct 2011 12:58:57 +0000 (17:58 +0530)]
Initializing the pins which is used in gpio to their inital state.

bug 876305

Reviewed-on: http://git-master/r/57516
(cherry picked from commit 3f33cb777295669e71e291bb05651d3c6c4b37d5)

Change-Id: Ie05862e5184bb95c85cf7aa96ce2eca497c01c93
Reviewed-on: http://git-master/r/57817
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R3886fa24fc77365529b86eef67f10a428764aee4

arch/arm/mach-tegra/include/mach/gpio-tegra.h

index d1f2221..b8847cd 100644 (file)
 
 #define TEGRA_NR_GPIOS         INT_GPIO_NR
 
+struct gpio_init_pin_info {
+       char name[16];
+       int gpio_nr;
+       bool is_gpio;
+       bool is_input;
+       int value; /* Value if it is output*/
+};
+
 void tegra_gpio_init_configure(unsigned gpio, bool is_input, int value);
 
 #endif