Lines Matching +full:spi +full:- +full:hv

1 // SPDX-License-Identifier: GPL-2.0-or-later
23 #include <linux/spi/spi.h>
37 static phys_addr_t immrbase = -1;
43 if (immrbase != -1) in get_immrbase()
63 static u32 sysfreq = -1; in fsl_get_sys_freq()
66 if (sysfreq != -1) in fsl_get_sys_freq()
71 return -1; in fsl_get_sys_freq()
73 of_property_read_u32(soc, "clock-frequency", &sysfreq); in fsl_get_sys_freq()
74 if (sysfreq == -1 || !sysfreq) in fsl_get_sys_freq()
75 of_property_read_u32(soc, "bus-frequency", &sysfreq); in fsl_get_sys_freq()
86 static u32 brgfreq = -1; in get_brgfreq()
89 if (brgfreq != -1) in get_brgfreq()
92 node = of_find_compatible_node(NULL, NULL, "fsl,cpm-brg"); in get_brgfreq()
94 of_property_read_u32(node, "clock-frequency", &brgfreq); in get_brgfreq()
99 /* Legacy device binding -- will go away when no users are left. */ in get_brgfreq()
107 of_property_read_u32(node, "brg-frequency", &brgfreq); in get_brgfreq()
108 if (brgfreq == -1 || !brgfreq) in get_brgfreq()
109 if (!of_property_read_u32(node, "bus-frequency", in get_brgfreq()
122 static u32 fs_baudrate = -1; in get_baudrate()
125 if (fs_baudrate != -1) in get_baudrate()
130 of_property_read_u32(node, "current-speed", &fs_baudrate); in get_baudrate()
162 for_each_node_by_name(np, "global-utilities") { in setup_rstcr()
163 if (of_property_read_bool(np, "fsl,has-rstcr")) { in setup_rstcr()
199 pr_info("hv restart\n"); in fsl_hv_restart()
200 fh_partition_restart(-1); in fsl_hv_restart()
213 pr_info("hv exit\n"); in fsl_hv_halt()
214 fh_partition_stop(-1); in fsl_hv_halt()