ar71xx: spi cleanup for ap121, db120, ubnt-xm and ap136
[openwrt.git] / target / linux / ar71xx / patches-3.18 / 609-MIPS-ath79-ap136-fixes.patch
index ef0ae9a..af7368a 100644 (file)
                .gpio           = AP136_GPIO_LED_USB,
                .active_low     = 1,
        }
-@@ -98,65 +106,151 @@ static struct gpio_keys_button ap136_gpi
+@@ -98,59 +106,151 @@ static struct gpio_keys_button ap136_gpi
        },
  };
  
--static struct ath79_spi_controller_data ap136_spi0_data = {
--      .cs_type = ATH79_SPI_CS_TYPE_INTERNAL,
--      .cs_line = 0,
 +static struct ar8327_pad_cfg ap136_ar8327_pad0_cfg;
 +static struct ar8327_pad_cfg ap136_ar8327_pad6_cfg;
 +
 +              .txpause = 1,
 +              .rxpause = 1,
 +      },
- };
++};
++
 -static struct spi_board_info ap136_spi_info[] = {
 +static struct mdio_board_info ap136_mdio0_info[] = {
        {
 -              .chip_select    = 0,
 -              .max_speed_hz   = 25000000,
 -              .modalias       = "mx25l6405d",
--              .controller_data = &ap136_spi0_data,
 -      }
 +              .bus_id = "ag71xx-mdio.0",
 +              .phy_addr = 0,