diff options
Diffstat (limited to 'target/linux/ar71xx/files/arch')
3 files changed, 24 insertions, 24 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-825-b1.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-825-b1.c index e80a992b41..d8b26eeb1a 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-825-b1.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-825-b1.c @@ -14,7 +14,7 @@ #include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/delay.h> -#include <linux/rtl8366_smi.h> +#include <linux/rtl8366s.h> #include <asm/mach-ar71xx/ar71xx.h> @@ -130,16 +130,16 @@ static struct gpio_button dir825b1_gpio_buttons[] __initdata = { } }; -static struct rtl8366_smi_platform_data dir825b1_rtl8366_smi_data = { +static struct rtl8366s_platform_data dir825b1_rtl8366s_data = { .gpio_sda = DIR825B1_GPIO_RTL8366_SDA, .gpio_sck = DIR825B1_GPIO_RTL8366_SCK, }; -static struct platform_device dir825b1_rtl8366_smi_device = { - .name = "rtl8366-smi", +static struct platform_device dir825b1_rtl8366s_device = { + .name = RTL8366S_DRIVER_NAME, .id = -1, .dev = { - .platform_data = &dir825b1_rtl8366_smi_data, + .platform_data = &dir825b1_rtl8366s_data, } }; @@ -155,13 +155,13 @@ static void __init dir825b1_setup(void) ar71xx_add_device_mdio(0x0); - ar71xx_eth0_data.mii_bus_dev = &dir825b1_rtl8366_smi_device.dev; + ar71xx_eth0_data.mii_bus_dev = &dir825b1_rtl8366s_device.dev; ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; ar71xx_eth0_data.speed = SPEED_1000; ar71xx_eth0_data.duplex = DUPLEX_FULL; ar71xx_eth0_pll_data.pll_1000 = 0x11110000; - ar71xx_eth1_data.mii_bus_dev = &dir825b1_rtl8366_smi_device.dev; + ar71xx_eth1_data.mii_bus_dev = &dir825b1_rtl8366s_device.dev; ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; ar71xx_eth1_data.phy_mask = 0x10; ar71xx_eth1_pll_data.pll_1000 = 0x11110000; @@ -180,7 +180,7 @@ static void __init dir825b1_setup(void) ar71xx_add_device_usb(); - platform_device_register(&dir825b1_rtl8366_smi_device); + platform_device_register(&dir825b1_rtl8366s_device); ap94_pci_init((u8 *) KSEG1ADDR(DIR825B1_CAL_LOCATION_0), (u8 *) KSEG1ADDR(DIR825B1_MAC_LOCATION_0), diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c index b289d9d727..a0eb8d4826 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c @@ -13,7 +13,7 @@ #include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/delay.h> -#include <linux/rtl8366_smi.h> +#include <linux/rtl8366s.h> #include <asm/mach-ar71xx/ar71xx.h> @@ -143,16 +143,16 @@ static struct gpio_button wndr3700_gpio_buttons[] __initdata = { } }; -static struct rtl8366_smi_platform_data wndr3700_rtl8366_smi_data = { +static struct rtl8366s_platform_data wndr3700_rtl8366s_data = { .gpio_sda = WNDR3700_GPIO_RTL8366_SDA, .gpio_sck = WNDR3700_GPIO_RTL8366_SCK, }; -static struct platform_device wndr3700_rtl8366_smi_device = { - .name = "rtl8366-smi", +static struct platform_device wndr3700_rtl8366s_device = { + .name = RTL8366S_DRIVER_NAME, .id = -1, .dev = { - .platform_data = &wndr3700_rtl8366_smi_data, + .platform_data = &wndr3700_rtl8366s_data, } }; @@ -163,14 +163,14 @@ static void __init wndr3700_setup(void) ar71xx_set_mac_base(art); ar71xx_eth0_pll_data.pll_1000 = 0x11110000; - ar71xx_eth0_data.mii_bus_dev = &wndr3700_rtl8366_smi_device.dev; + ar71xx_eth0_data.mii_bus_dev = &wndr3700_rtl8366s_device.dev; ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; ar71xx_eth0_data.phy_mask = 0xf; ar71xx_eth0_data.speed = SPEED_1000; ar71xx_eth0_data.duplex = DUPLEX_FULL; ar71xx_eth1_pll_data.pll_1000 = 0x11110000; - ar71xx_eth1_data.mii_bus_dev = &wndr3700_rtl8366_smi_device.dev; + ar71xx_eth1_data.mii_bus_dev = &wndr3700_rtl8366s_device.dev; ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; ar71xx_eth1_data.phy_mask = 0x10; @@ -188,7 +188,7 @@ static void __init wndr3700_setup(void) ARRAY_SIZE(wndr3700_gpio_buttons), wndr3700_gpio_buttons); - platform_device_register(&wndr3700_rtl8366_smi_device); + platform_device_register(&wndr3700_rtl8366s_device); platform_device_register_simple("wndr3700-led-usb", -1, NULL, 0); ap94_pci_init(art + WNDR3700_CALDATA0_OFFSET, diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c index eb1f814d60..c6fb241c51 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c @@ -12,7 +12,7 @@ #include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/nxp_74hc153.h> -#include <linux/rtl8366_smi.h> +#include <linux/rtl8366s.h> #include <asm/mips_machine.h> #include <asm/mach-ar71xx/ar71xx.h> @@ -212,16 +212,16 @@ static struct platform_device wzrhpg300nh_74hc153_device = { } }; -static struct rtl8366_smi_platform_data wzrhpg300nh_rtl8366_smi_data = { +static struct rtl8366s_platform_data wzrhpg300nh_rtl8366s_data = { .gpio_sda = WZRHPG300NH_GPIO_RTL8366_SDA, .gpio_sck = WZRHPG300NH_GPIO_RTL8366_SCK, }; -static struct platform_device wzrhpg300nh_rtl8366_smi_device = { - .name = "rtl8366-smi", +static struct platform_device wzrhpg300nh_rtl8366s_device = { + .name = RTL8366S_DRIVER_NAME, .id = -1, .dev = { - .platform_data = &wzrhpg300nh_rtl8366_smi_data, + .platform_data = &wzrhpg300nh_rtl8366s_data, } }; @@ -232,14 +232,14 @@ static void __init wzrhpg300nh_setup(void) ar71xx_set_mac_base(eeprom + WZRHPG300NH_MAC_OFFSET); ar71xx_eth0_pll_data.pll_1000 = 0x1e000100; - ar71xx_eth0_data.mii_bus_dev = &wzrhpg300nh_rtl8366_smi_device.dev; + ar71xx_eth0_data.mii_bus_dev = &wzrhpg300nh_rtl8366s_device.dev; ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; ar71xx_eth0_data.phy_mask = 0xf; ar71xx_eth0_data.speed = SPEED_1000; ar71xx_eth0_data.duplex = DUPLEX_FULL; ar71xx_eth1_pll_data.pll_1000 = 0x1e000100; - ar71xx_eth1_data.mii_bus_dev = &wzrhpg300nh_rtl8366_smi_device.dev; + ar71xx_eth1_data.mii_bus_dev = &wzrhpg300nh_rtl8366s_device.dev; ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; ar71xx_eth1_data.phy_mask = 0x10; @@ -251,7 +251,7 @@ static void __init wzrhpg300nh_setup(void) platform_device_register(&wzrhpg300nh_74hc153_device); platform_device_register(&wzrhpg300nh_flash_device); - platform_device_register(&wzrhpg300nh_rtl8366_smi_device); + platform_device_register(&wzrhpg300nh_rtl8366s_device); ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(wzrhpg300nh_leds_gpio), wzrhpg300nh_leds_gpio); |