spi: set spi chipselect gpios HIGH in io_init function for infosdk
authorlyx <lyx@rock-chips.com>
Mon, 13 Sep 2010 07:48:12 +0000 (00:48 -0700)
committerlyx <lyx@rock-chips.com>
Mon, 13 Sep 2010 07:48:12 +0000 (00:48 -0700)
arch/arm/mach-rk2818/board-infosdk.c

index eed2ebc67b12b0808fa056c756cc2071cfe386ff..2cb2f0e5bfb05d0bcc10611f3cf48f4157a8789f 100755 (executable)
@@ -940,6 +940,7 @@ static int spi_io_init(struct spi_cs_gpio *cs_gpios, int cs_num)
                                printk("[fun:%s, line:%d], gpio request err\n", __func__, __LINE__);
                                return -1;
                        }
+                       gpio_direction_output(cs_gpios[i].cs_gpio, GPIO_HIGH);
                }
        }
        return 0;