mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
ipq5018: remove phy_name from dts
This changes remove the phy_name from all mpXX dts and handle by driver itself. Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org> Change-Id: Ia2d0379151db0c68a0b28f5062e83f80579d37c1
This commit is contained in:
parent
4ee702eff9
commit
d15814b9f3
9 changed files with 4 additions and 37 deletions
|
|
@ -64,7 +64,6 @@
|
|||
unit = <0>;
|
||||
base = <0x39C00000>;
|
||||
phy_address = <7>;
|
||||
phy_name = "IPQ MDIO0";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -70,19 +70,4 @@
|
|||
nand: nand-controller@79B0000 {
|
||||
status = "disabled";
|
||||
};
|
||||
gmac_cfg {
|
||||
gmac_count = <1>;
|
||||
ext_mdio_gpio = <36 37>;
|
||||
gmac2_cfg {
|
||||
unit = <1>;
|
||||
base = <0x39D00000>;
|
||||
phy_name = "IPQ MDIO1";
|
||||
mac_pwr = <0xaa545>;
|
||||
s17c_switch_enable = <1>;
|
||||
switch_port_count = <4>;
|
||||
switch_phy_address = <0 1 2 3>;
|
||||
switch_gpio = <39>;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -137,13 +137,11 @@
|
|||
unit = <0>;
|
||||
base = <0x39C00000>;
|
||||
phy_address = <7>;
|
||||
phy_name = "IPQ MDIO0";
|
||||
};
|
||||
|
||||
gmac2_cfg {
|
||||
unit = <1>;
|
||||
base = <0x39D00000>;
|
||||
phy_name = "IPQ MDIO1";
|
||||
mac_pwr = <0xaa545>;
|
||||
s17c_switch_enable = <1>;
|
||||
switch_port_count = <4>;
|
||||
|
|
|
|||
|
|
@ -128,14 +128,12 @@
|
|||
unit = <0>;
|
||||
base = <0x39C00000>;
|
||||
phy_address = <7>;
|
||||
phy_name = "IPQ MDIO0";
|
||||
};
|
||||
gmac2_cfg {
|
||||
unit = <1>;
|
||||
base = <0x39D00000>;
|
||||
phy_address = <0x1c>;
|
||||
napa_gpio = <39>;
|
||||
phy_name = "IPQ MDIO1";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@
|
|||
unit = <0>;
|
||||
base = <0x39C00000>;
|
||||
phy_address = <7>;
|
||||
phy_name = "IPQ MDIO0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -123,13 +123,11 @@
|
|||
unit = <0>;
|
||||
base = <0x39C00000>;
|
||||
phy_address = <7>;
|
||||
phy_name = "IPQ MDIO0";
|
||||
};
|
||||
|
||||
gmac2_cfg {
|
||||
unit = <1>;
|
||||
base = <0x39D00000>;
|
||||
phy_name = "IPQ MDIO1";
|
||||
mac_pwr = <0xaa545>;
|
||||
s17c_switch_enable = <1>;
|
||||
switch_port_count = <4>;
|
||||
|
|
|
|||
|
|
@ -134,14 +134,12 @@
|
|||
unit = <0>;
|
||||
base = <0x39C00000>;
|
||||
phy_address = <7>;
|
||||
phy_name = "IPQ MDIO0";
|
||||
};
|
||||
gmac2_cfg {
|
||||
unit = <1>;
|
||||
base = <0x39D00000>;
|
||||
phy_address = <0x1c>;
|
||||
napa_gpio = <39>;
|
||||
phy_name = "IPQ MDIO1";
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -979,9 +979,7 @@ int board_eth_init(bd_t *bis)
|
|||
int gmac_cfg_node = 0, offset = 0;
|
||||
int loop = 0;
|
||||
int switch_gpio = 0;
|
||||
int phy_name_len = 0;
|
||||
unsigned int tmp_phy_array[8] = {0};
|
||||
char *phy_name_ptr = NULL;
|
||||
|
||||
gmac_cfg_node = fdt_path_offset(gd->fdt_blob, "/gmac_cfg");
|
||||
if (gmac_cfg_node >= 0) {
|
||||
|
|
@ -1043,11 +1041,6 @@ int board_eth_init(bd_t *bis)
|
|||
(char)tmp_phy_array[inner_loop];
|
||||
}
|
||||
}
|
||||
|
||||
phy_name_ptr = (char*)fdt_getprop(gd->fdt_blob, offset,
|
||||
"phy_name", &phy_name_len);
|
||||
|
||||
strlcpy((char *)gmac_cfg[loop].phy_name, phy_name_ptr, phy_name_len);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -658,14 +658,13 @@ int ipq_gmac_init(ipq_gmac_board_cfg_t *gmac_cfg)
|
|||
ipq_gmac_macs[i]->phy_type = gmac_cfg->phy_type;
|
||||
ipq_gmac_macs[i]->ipq_swith = gmac_cfg->ipq_swith;
|
||||
|
||||
strlcpy((char *)ipq_gmac_macs[i]->phy_name,
|
||||
gmac_cfg->phy_name,
|
||||
sizeof(ipq_gmac_macs[i]->phy_name));
|
||||
snprintf((char *)ipq_gmac_macs[i]->phy_name,
|
||||
sizeof(ipq_gmac_macs[i]->phy_name), "IPQ MDIO%d", i);
|
||||
|
||||
phy_chip_id = -1;
|
||||
|
||||
if (gmac_cfg->unit){
|
||||
ret = ipq_sw_mdio_init(gmac_cfg->phy_name);
|
||||
ret = ipq_sw_mdio_init(ipq_gmac_macs[i]->phy_name);
|
||||
if (ret)
|
||||
goto init_failed;
|
||||
if (ipq_gmac_macs[i]->ipq_swith){
|
||||
|
|
@ -716,7 +715,7 @@ int ipq_gmac_init(ipq_gmac_board_cfg_t *gmac_cfg)
|
|||
phy_chip_id = (phy_chip_id1 << 16) | phy_chip_id2;
|
||||
}
|
||||
} else {
|
||||
ret = ipq5018_sw_mdio_init(gmac_cfg->phy_name);
|
||||
ret = ipq5018_sw_mdio_init(ipq_gmac_macs[i]->phy_name);
|
||||
if (ret)
|
||||
goto init_failed;
|
||||
phy_chip_id1 = ipq5018_mdio_read(ipq_gmac_macs[i]->phy_address,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue