AnsweredAssumed Answered

gpio configuration issue

Question asked by lee seungik on May 29, 2013
Latest reply on Jun 3, 2013 by lee seungik

I test with my custom board based on sabrelite and sabreauto.

my board mainly based on sabrelite but some part are based on sabreauto.

so I want to merge some code from sabreauto to sabrelite for i2c3 usage.

first I configure pad and gpio

#define SABREAUTO_I2C3_STEER        IMX_GPIO_NR(5, 4) // from sabreauto
MX6Q_PAD_EIM_A24__GPIO_5_4, // to steer to weim and i2c3

 

then

1290     ret = gpio_request(SABREAUTO_I2C3_STEER, "i2c3-steer"); //SABREAUTO_I2C3_STEER

1291     printk("silee gpio request = %d \n",ret, "i2c3-steer");

gpio_request retun EINVAL

 

 

what is needed more?

 

gpio_request return 0 when I run sabreauto binary.

 

 

thanks.

 

Outcomes