1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 18:42:25 +02:00

ramips: rt3883: fix GPIO reservation for the SPI pins

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31920 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2012-05-27 17:09:56 +00:00
parent 0c9cb51fbb
commit 1e3e199faa

View File

@ -156,7 +156,7 @@ void __init rt3883_gpio_init(u32 mode)
rt3883_gpio_reserve(RT3883_GPIO_I2C_SD, RT3883_GPIO_I2C_SCLK); rt3883_gpio_reserve(RT3883_GPIO_I2C_SD, RT3883_GPIO_I2C_SCLK);
if ((mode & RT3883_GPIO_MODE_SPI) == 0) if ((mode & RT3883_GPIO_MODE_SPI) == 0)
rt3883_gpio_reserve(RT3883_GPIO_SPI_CS0, RT3883_GPIO_SPI_CLK); rt3883_gpio_reserve(RT3883_GPIO_SPI_CS0, RT3883_GPIO_SPI_MISO);
t = mode >> RT3883_GPIO_MODE_UART0_SHIFT; t = mode >> RT3883_GPIO_MODE_UART0_SHIFT;
t &= RT3883_GPIO_MODE_UART0_MASK; t &= RT3883_GPIO_MODE_UART0_MASK;