forked from Ivasoft/openwrt
fix GPIO function select bit definitions (based on a patch by Jonas <jmajau at ubnt.com>)
SVN-Revision: 13699
This commit is contained in:
@@ -152,6 +152,9 @@ static inline void rb433_add_device_spi(void) {}
|
||||
|
||||
static void __init rb4xx_generic_setup(void)
|
||||
{
|
||||
ar71xx_gpio_function_enable(GPIO_FUNC_SPI_CS1_EN |
|
||||
GPIO_FUNC_SPI_CS2_EN);
|
||||
|
||||
ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(rb4xx_leds_gpio),
|
||||
rb4xx_leds_gpio);
|
||||
|
||||
|
||||
@@ -481,8 +481,6 @@ void __init ar71xx_add_device_spi(struct ar71xx_spi_platform_data *pdata,
|
||||
struct spi_board_info const *info,
|
||||
unsigned n)
|
||||
{
|
||||
ar71xx_gpio_function_enable(GPIO_FUNC_SPI_EN);
|
||||
|
||||
spi_register_board_info(info, n);
|
||||
ar71xx_spi_device.dev.platform_data = pdata;
|
||||
platform_device_register(&ar71xx_spi_device);
|
||||
|
||||
Reference in New Issue
Block a user