at91rm9200: fix spi cs support
the rm9200 have a errata the cs0 must be used via hw cs not gpio Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
45e9e0b1dc
commit
7230ca2380
|
@ -182,7 +182,12 @@ void at91_add_device_spi(int spi_id, struct at91_spi_platform_data *pdata)
|
|||
cs_pin = pdata->chipselect[i];
|
||||
|
||||
/* enable chip-select pin */
|
||||
if (cs_pin > 0)
|
||||
if (!gpio_is_valid(cs_pin))
|
||||
continue;
|
||||
|
||||
if (cs_pin == AT91_PIN_PA3)
|
||||
at91_set_A_periph(cs_pin, 0);
|
||||
else
|
||||
at91_set_gpio_output(cs_pin, 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue