Hi Saurabh,
Thanks for your quick reply.
I found the file mx6q_sabreauto.c.In that file there is no method named gpio_direction_output or gpio_direction_input .
Only i could found below code snippet
#ifdef CONFIG_I2C_MXC
if (!mx6_board_is_reva()) {
mxc_iomux_v3_setup_multiple_pads(gpio_pads,
ARRAY_SIZE(gpio_pads));
gpio_direction_output(I2C_EXP_RST, 1);
gpio_direction_output(I2C3_STEER, 1);
}
setup_i2c(CONFIG_SYS_I2C_PORT);
/* Enable lvds power */
setup_lvds_poweron();
/* restore path for weim/spi nor */
if (!mx6_board_is_reva())
gpio_direction_output(I2C3_STEER, 0);
#endif
void udc_pins_setting(void)
{
mxc_iomux_v3_setup_pad(MX6X_IOMUX(PAD_ENET_RX_ER__ANATOP_USBOTG_ID));
/* USB_OTG_PWR = 0 */
gpio_direction_output(SABREAUTO_USB_OTG_PWR, 0);
/* USB_H1_POWER = 1 */
gpio_direction_output(SABREAUTO_USB_HOST1_PWR, 1);
mxc_iomux_set_gpr_register(1, 13, 1, 0);
}
if I want to control LED using GPIO then how will i setup gpio_direction_output.
Regards
Divya