Lines Matching refs:initial_boot_params

456 	phy_handle = fdt_getprop(initial_boot_params, eth, "phy-handle", NULL);  in octeon_fdt_set_phy()
461 phy = fdt_node_offset_by_phandle(initial_boot_params, phandle); in octeon_fdt_set_phy()
463 alt_phy_handle = fdt_getprop(initial_boot_params, eth, "cavium,alt-phy-handle", NULL); in octeon_fdt_set_phy()
466 alt_phy = fdt_node_offset_by_phandle(initial_boot_params, alt_phandle); in octeon_fdt_set_phy()
473 fdt_nop_property(initial_boot_params, eth, "phy-handle"); in octeon_fdt_set_phy()
475 fdt_nop_property(initial_boot_params, eth, "cavium,alt-phy-handle"); in octeon_fdt_set_phy()
477 fdt_nop_node(initial_boot_params, phy); in octeon_fdt_set_phy()
479 fdt_nop_node(initial_boot_params, alt_phy); in octeon_fdt_set_phy()
489 phy_prop = fdt_get_property(initial_boot_params, eth, "phy-handle", NULL); in octeon_fdt_set_phy()
491 fdt_nop_node(initial_boot_params, phy); in octeon_fdt_set_phy()
492 fdt_nop_property(initial_boot_params, eth, "phy-handle"); in octeon_fdt_set_phy()
493 alt_prop = fdt_get_property_w(initial_boot_params, eth, "cavium,alt-phy-handle", NULL); in octeon_fdt_set_phy()
501 fdt_nop_property(initial_boot_params, phy, "marvell,reg-init"); in octeon_fdt_set_phy()
504 p = fdt_getprop(initial_boot_params, phy, "compatible", in octeon_fdt_set_phy()
507 fdt_setprop_inplace(initial_boot_params, phy, in octeon_fdt_set_phy()
511 reg = fdt_getprop(initial_boot_params, phy, "reg", NULL); in octeon_fdt_set_phy()
515 fdt_setprop_inplace_cell(initial_boot_params, phy, "reg", phy_addr); in octeon_fdt_set_phy()
519 p = fdt_get_name(initial_boot_params, phy, &current_len); in octeon_fdt_set_phy()
521 fdt_set_name(initial_boot_params, phy, new_name); in octeon_fdt_set_phy()
539 r = fdt_setprop_inplace(initial_boot_params, n, "local-mac-address", in octeon_fdt_set_mac_addr()
553 phy_handle = fdt_getprop(initial_boot_params, node, "phy-handle", NULL); in octeon_fdt_rm_ethernet()
556 int p = fdt_node_offset_by_phandle(initial_boot_params, ph); in octeon_fdt_rm_ethernet()
558 fdt_nop_node(initial_boot_params, p); in octeon_fdt_rm_ethernet()
560 fdt_nop_node(initial_boot_params, node); in octeon_fdt_rm_ethernet()
571 eth = fdt_subnode_offset(initial_boot_params, iface, name_buffer); in octeon_fdt_pip_port()
597 iface = fdt_subnode_offset(initial_boot_params, pip, name_buffer); in octeon_fdt_pip_iface()
617 if (fdt_check_header(initial_boot_params)) in octeon_prune_device_tree()
620 aliases = fdt_path_offset(initial_boot_params, "/aliases"); in octeon_prune_device_tree()
649 alias_prop = fdt_getprop(initial_boot_params, aliases, in octeon_prune_device_tree()
652 mgmt = fdt_path_offset(initial_boot_params, alias_prop); in octeon_prune_device_tree()
658 fdt_nop_property(initial_boot_params, aliases, in octeon_prune_device_tree()
668 pip_path = fdt_getprop(initial_boot_params, aliases, "pip", NULL); in octeon_prune_device_tree()
670 int pip = fdt_path_offset(initial_boot_params, pip_path); in octeon_prune_device_tree()
689 alias_prop = fdt_getprop(initial_boot_params, aliases, in octeon_prune_device_tree()
693 i2c = fdt_path_offset(initial_boot_params, alias_prop); in octeon_prune_device_tree()
698 fdt_nop_node(initial_boot_params, i2c); in octeon_prune_device_tree()
699 fdt_nop_property(initial_boot_params, aliases, in octeon_prune_device_tree()
719 alias_prop = fdt_getprop(initial_boot_params, aliases, in octeon_prune_device_tree()
723 i2c = fdt_path_offset(initial_boot_params, alias_prop); in octeon_prune_device_tree()
728 fdt_nop_node(initial_boot_params, i2c); in octeon_prune_device_tree()
729 fdt_nop_property(initial_boot_params, aliases, in octeon_prune_device_tree()
746 alias_prop = fdt_getprop(initial_boot_params, aliases, in octeon_prune_device_tree()
750 uart = fdt_path_offset(initial_boot_params, alias_prop); in octeon_prune_device_tree()
755 fdt_setprop_inplace(initial_boot_params, in octeon_prune_device_tree()
761 fdt_nop_node(initial_boot_params, uart); in octeon_prune_device_tree()
762 fdt_nop_property(initial_boot_params, aliases, in octeon_prune_device_tree()
768 alias_prop = fdt_getprop(initial_boot_params, aliases, in octeon_prune_device_tree()
782 int cf = fdt_path_offset(initial_boot_params, alias_prop); in octeon_prune_device_tree()
828 fdt_nop_property(initial_boot_params, cf, "cavium,true-ide"); in octeon_prune_device_tree()
829 fdt_nop_property(initial_boot_params, cf, "cavium,dma-engine-handle"); in octeon_prune_device_tree()
832 fdt_setprop_inplace(initial_boot_params, cf, in octeon_prune_device_tree()
842 fdt_setprop_inplace(initial_boot_params, cf, in octeon_prune_device_tree()
845 bootbus = fdt_parent_offset(initial_boot_params, cf); in octeon_prune_device_tree()
848 ranges = fdt_getprop_w(initial_boot_params, bootbus, "ranges", &len); in octeon_prune_device_tree()
863 fdt_nop_node(initial_boot_params, cf); in octeon_prune_device_tree()
870 alias_prop = fdt_getprop(initial_boot_params, aliases, in octeon_prune_device_tree()
879 int led = fdt_path_offset(initial_boot_params, alias_prop); in octeon_prune_device_tree()
903 fdt_setprop_inplace(initial_boot_params, led, in octeon_prune_device_tree()
906 bootbus = fdt_parent_offset(initial_boot_params, led); in octeon_prune_device_tree()
909 ranges = fdt_getprop_w(initial_boot_params, bootbus, "ranges", &len); in octeon_prune_device_tree()
919 fdt_nop_node(initial_boot_params, led); in octeon_prune_device_tree()
925 alias_prop = fdt_getprop(initial_boot_params, aliases, in octeon_prune_device_tree()
928 int uctl = fdt_path_offset(initial_boot_params, alias_prop); in octeon_prune_device_tree()
933 fdt_nop_node(initial_boot_params, uctl); in octeon_prune_device_tree()
934 fdt_nop_property(initial_boot_params, aliases, "uctl"); in octeon_prune_device_tree()
938 fdt_nop_property(initial_boot_params, uctl, "refclk-type"); in octeon_prune_device_tree()
943 alias_prop = fdt_getprop(initial_boot_params, aliases, in octeon_prune_device_tree()
946 int usbn = fdt_path_offset(initial_boot_params, alias_prop); in octeon_prune_device_tree()
951 fdt_nop_node(initial_boot_params, usbn); in octeon_prune_device_tree()
952 fdt_nop_property(initial_boot_params, aliases, "usbn"); in octeon_prune_device_tree()
960 fdt_setprop_inplace(initial_boot_params, usbn, in octeon_prune_device_tree()
965 fdt_nop_property(initial_boot_params, usbn, "refclk-type"); in octeon_prune_device_tree()
974 int dsr1000n_leds = fdt_path_offset(initial_boot_params, in octeon_prune_device_tree()
977 fdt_nop_node(initial_boot_params, dsr1000n_leds); in octeon_prune_device_tree()