提交 4d5f4ed3 编写于 作者: M Michael Hennerich 提交者: Bryan Wu

Blackfin arch: extract gpio number from PIN function

Singed-off-by: NMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: NBryan Wu <bryan.wu@analog.com>
上级 168f1212
......@@ -902,7 +902,9 @@ EXPORT_SYMBOL(gpio_direction_output);
*/
void bfin_gpio_reset_spi0_ssel1(void)
{
port_setup(P_SPI0_SSEL1, GPIO_USAGE);
gpio_bankb[gpio_bank(P_SPI0_SSEL1)]->data_set = gpio_bit(P_SPI0_SSEL1);
u16 gpio = P_IDENT(P_SPI0_SSEL1);
port_setup(gpio, GPIO_USAGE);
gpio_bankb[gpio_bank(gpio)]->data_set = gpio_bit(gpio);
udelay(1);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册