This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM625: 如何在AM625内核驱动里申请GPIO并设置模式

Part Number: AM625

我在内核里增加了一个自定义驱动,请问在驱动里如何对GPIO设置输出模式,
之前我在335x芯片上是这么设置的,

static int __init fl8_init(void)
{int res = gpio_request(353,"fl8_spi_input");
printk("gpio_request res = %d\n",res);
res = gpio_direction_input(353);
printk("gpio_direction_input res = %d\n",res);return 0;}

请问在am625里该如何设置呢?