Lines Matching refs:blob
23 static int ft_del_cpuhandle(void *blob, int cpuhandle) in ft_del_cpuhandle() argument
30 off = fdt_node_offset_by_prop_value(blob, -1, "cpu-handle", in ft_del_cpuhandle()
33 fdt_delprop(blob, off, "cpu-handle"); in ft_del_cpuhandle()
35 off = fdt_node_offset_by_prop_value(blob, -1, "cpu-handle", in ft_del_cpuhandle()
42 void ft_fixup_num_cores(void *blob) { in ft_fixup_num_cores() argument
48 off = fdt_node_offset_by_prop_value(blob, -1, "device_type", "cpu", 4); in ft_fixup_num_cores()
50 u32 *reg = (u32 *)fdt_getprop(blob, off, "reg", 0); in ft_fixup_num_cores()
54 int ph = fdt_get_phandle(blob, off); in ft_fixup_num_cores()
57 if (-FDT_ERR_NOTFOUND == ft_del_cpuhandle(blob, ph)) { in ft_fixup_num_cores()
58 fdt_del_node(blob, off); in ft_fixup_num_cores()
67 off = fdt_node_offset_by_prop_value(blob, off, in ft_fixup_num_cores()
76 int fdt_fixup_phy_connection(void *blob, int offset, phy_interface_t phyc) in fdt_fixup_phy_connection() argument
78 return fdt_setprop_string(blob, offset, "phy-connection-type", in fdt_fixup_phy_connection()
83 static inline void ft_disable_srio_port(void *blob, int srio_off, int port) in ft_disable_srio_port() argument
85 int off = fdt_node_offset_by_prop_value(blob, srio_off, in ft_disable_srio_port()
88 off = fdt_setprop_string(blob, off, "status", "disabled"); in ft_disable_srio_port()
95 static inline void ft_disable_rman(void *blob) in ft_disable_rman() argument
97 int off = fdt_node_offset_by_compatible(blob, -1, "fsl,rman"); in ft_disable_rman()
99 off = fdt_setprop_string(blob, off, "status", "disabled"); in ft_disable_rman()
106 static inline void ft_disable_rmu(void *blob) in ft_disable_rmu() argument
108 int off = fdt_node_offset_by_compatible(blob, -1, "fsl,srio-rmu"); in ft_disable_rmu()
110 off = fdt_setprop_string(blob, off, "status", "disabled"); in ft_disable_rmu()
117 void ft_srio_setup(void *blob) in ft_srio_setup() argument
123 srio_off = fdt_node_offset_by_compatible(blob, -1, "fsl,srio"); in ft_srio_setup()
138 ft_disable_srio_port(blob, srio_off, 1); in ft_srio_setup()
142 ft_disable_srio_port(blob, srio_off, 2); in ft_srio_setup()
146 fdt_setprop_string(blob, srio_off, "status", "disabled"); in ft_srio_setup()
148 ft_disable_rman(blob); in ft_srio_setup()
149 ft_disable_rmu(blob); in ft_srio_setup()