summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorSanjeev Premi <premi@ti.com>2011-09-08 10:48:39 -0400
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-09-13 08:25:15 +0200
commit3b690ebbbf21303a3bac1f62d967c36cd8655ce0 (patch)
tree838e69822e7349ed723c168b0f1e7a328e08ac75 /arch/arm
parent81bdc155c72ef9e093b388b90c58d8134d870976 (diff)
omap: gpio: generic changes after changing API
This patch contains the generic changes required after change to generic API in the previous patch. Signed-off-by: Sanjeev Premi <premi@ti.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/armv7/omap4/clocks.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/omap4/clocks.c b/arch/arm/cpu/armv7/omap4/clocks.c
index eda960ca76..4f0e0cd881 100644
--- a/arch/arm/cpu/armv7/omap4/clocks.c
+++ b/arch/arm/cpu/armv7/omap4/clocks.c
@@ -31,6 +31,7 @@
*/
#include <common.h>
#include <asm/omap_common.h>
+#include <asm/gpio.h>
#include <asm/arch/clocks.h>
#include <asm/arch/sys_proto.h>
#include <asm/utils.h>
@@ -481,8 +482,8 @@ static void do_scale_tps62361(u32 reg, u32 volt_mv)
* VSEL1 is grounded on board. So the following selects
* VSEL1 = 0 and VSEL0 = 1
*/
- omap_set_gpio_direction(TPS62361_VSEL0_GPIO, 0);
- omap_set_gpio_dataout(TPS62361_VSEL0_GPIO, 1);
+ gpio_direction_output(TPS62361_VSEL0_GPIO, 0);
+ gpio_set_value(TPS62361_VSEL0_GPIO, 1);
temp = TPS62361_I2C_SLAVE_ADDR |
(reg << PRM_VC_VAL_BYPASS_REGADDR_SHIFT) |