Lines Matching refs:fdt_addr
107 static int __pip_eth_node(const void *fdt_addr, int aliases, int ipd_port)
115 pip_path = fdt_getprop(fdt_addr, aliases, "pip", NULL);
121 pip = fdt_path_offset(fdt_addr, pip_path);
132 iface = fdt_subnode_offset(fdt_addr, pip, name_buffer);
144 eth = fdt_subnode_offset(fdt_addr, iface, name_buffer);
154 static int __mix_eth_node(const void *fdt_addr, int aliases, int interface_index)
165 mix_path = fdt_getprop(fdt_addr, aliases, name_buffer, NULL);
170 mix = fdt_path_offset(fdt_addr, mix_path);
205 const void *fdt_addr = CASTPTR(const void *, cvmx_sysinfo_get()->fdt_addr);
217 if (!fdt_addr)
222 aliases = fdt_path_offset(fdt_addr, "/aliases");
230 eth = __mix_eth_node(fdt_addr, aliases, interface_index) ;
234 eth = __pip_eth_node(fdt_addr, aliases, ipd_port);
242 phy_handle = (uint32_t *) fdt_getprop(fdt_addr, eth, "phy-handle", NULL);
250 phy = fdt_node_offset_by_phandle(fdt_addr, phandle);
257 phy_comaptible_str = (const char *) fdt_getprop(fdt_addr, phy,
279 phy_parent = fdt_parent_offset(fdt_addr, phy);
286 ret = fdt_node_check_compatible(fdt_addr, phy_parent,
291 uint32_t *mdio_reg_base = (uint32_t *) fdt_getprop(fdt_addr, phy_parent,"reg",0);
299 // fdt_get_name(fdt_addr,phy_parent, NULL), mdio_reg_base[1], mdio_unit);
313 phy_addr_ptr = (uint32_t *) fdt_getprop(fdt_addr, phy, "reg", NULL);
376 if (cvmx_sysinfo_get()->fdt_addr)
991 if (cvmx_sysinfo_get()->fdt_addr)
1530 const void *fdt_addr = CASTPTR(const void *, cvmx_sysinfo_get()->fdt_addr);
1537 if (fdt_addr)
1539 nodeoffset = fdt_path_offset(fdt_addr, "/soc/uctl");
1541 nodeoffset = fdt_path_offset(fdt_addr, "/soc/usbn");
1545 nodep = fdt_getprop(fdt_addr, nodeoffset, "refclk-type", &len);
1550 nodep = fdt_getprop(fdt_addr, nodeoffset, "refclk-frequency", &len);