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

1 // SPDX-License-Identifier: GPL-2.0-or-later
24 #include <linux/spi/spi.h>
43 static phys_addr_t immrbase = -1;
49 if (immrbase != -1) in get_immrbase()
56 const __be32 *prop = of_get_property(soc, "#address-cells", &size); in get_immrbase()
77 static u32 sysfreq = -1; in fsl_get_sys_freq()
80 if (sysfreq != -1) in fsl_get_sys_freq()
85 return -1; in fsl_get_sys_freq()
87 of_property_read_u32(soc, "clock-frequency", &sysfreq); in fsl_get_sys_freq()
88 if (sysfreq == -1 || !sysfreq) in fsl_get_sys_freq()
89 of_property_read_u32(soc, "bus-frequency", &sysfreq); in fsl_get_sys_freq()
100 static u32 brgfreq = -1; in get_brgfreq()
103 if (brgfreq != -1) in get_brgfreq()
106 node = of_find_compatible_node(NULL, NULL, "fsl,cpm-brg"); in get_brgfreq()
108 of_property_read_u32(node, "clock-frequency", &brgfreq); in get_brgfreq()
113 /* Legacy device binding -- will go away when no users are left. */ in get_brgfreq()
121 of_property_read_u32(node, "brg-frequency", &brgfreq); in get_brgfreq()
122 if (brgfreq == -1 || !brgfreq) in get_brgfreq()
123 if (!of_property_read_u32(node, "bus-frequency", in get_brgfreq()
136 static u32 fs_baudrate = -1; in get_baudrate()
139 if (fs_baudrate != -1) in get_baudrate()
144 of_property_read_u32(node, "current-speed", &fs_baudrate); in get_baudrate()
176 for_each_node_by_name(np, "global-utilities") { in setup_rstcr()
177 if ((of_get_property(np, "fsl,has-rstcr", NULL))) { in setup_rstcr()
213 pr_info("hv restart\n"); in fsl_hv_restart()
214 fh_partition_restart(-1); in fsl_hv_restart()
227 pr_info("hv exit\n"); in fsl_hv_halt()
228 fh_partition_stop(-1); in fsl_hv_halt()