ar71xx/ath79: ew-dorin, fix the trigger level for WPS button
[openwrt/staging/wigyori.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-fritz450e.c
index e48ddd65e7c37d6955824a158aa03316b6b52108..5bded81a4d870c872e853f63b2cddf0c99da7ad2 100644 (file)
@@ -115,20 +115,21 @@ static struct gpio_keys_button fritz450E_gpio_keys[] __initdata = {
                .code                   = KEY_WPS_BUTTON,
                .debounce_interval      = FRITZ450E_KEYS_DEBOUNCE_INTERVAL,
                .gpio                   = FRITZ450E_GPIO_BTN_WPS,
-               .active_low             = 1,
+               .active_low             = 0,
        }
 };
 
 static struct at803x_platform_data fritz450E_at803x_data = {
        .disable_smarteee = 1,
        .has_reset_gpio = 1,
+       .override_sgmii_aneg = 1,
        .reset_gpio = FRITZ450E_GPIO_PHY_RESET,
 };
 
 static struct mdio_board_info fritz450E_mdio_info[] = {
        {
                .bus_id = "ag71xx-mdio.1",
-               .phy_addr = FRITZ450E_PHY_ADDRESS,
+               .mdio_addr = FRITZ450E_PHY_ADDRESS,
                .platform_data = &fritz450E_at803x_data,
        },
 };