Lines Matching +full:device +full:- +full:sram
61 struct device *dev = get_cpu_device(cpu); in rockchip_get_core_reset()
64 /* The cpu device is only available after the initial core bringup */ in rockchip_get_core_reset()
66 np = dev->of_node; in rockchip_get_core_reset()
101 ret = -1; in pmu_set_power_domain()
130 pr_err("%s: sram or pmu missing for cpu boot\n", __func__); in rockchip_boot_secondary()
131 return -ENXIO; in rockchip_boot_secondary()
137 return -ENXIO; in rockchip_boot_secondary()
155 * (e.g: cpu frequency, bootrom frequency, sram frequency, ...) in rockchip_boot_secondary()
168 * rockchip_smp_prepare_sram - populate necessary sram block
169 * Starting cores execute the code residing at the start of the on-chip sram
170 * after power-on. Therefore make sure, this sram region is reserved and
172 * core to the real startup code in ram into the sram-region.
173 * @node: mmio-sram device node
177 unsigned int trampoline_sz = &rockchip_secondary_trampoline_end - in rockchip_smp_prepare_sram()
194 return -EINVAL; in rockchip_smp_prepare_sram()
197 /* set the boot function for the sram code */ in rockchip_smp_prepare_sram()
200 /* copy the trampoline to sram, that runs during startup of the core */ in rockchip_smp_prepare_sram()
211 .name = "rockchip-pmu",
223 * This function is only called via smp_ops->smp_prepare_cpu(). in rockchip_smp_prepare_pmu()
224 * That only happens if a "/cpus" device tree node exists in rockchip_smp_prepare_pmu()
225 * and has an "enable-method" property that selects the SMP in rockchip_smp_prepare_pmu()
235 pmu = syscon_regmap_lookup_by_compatible("rockchip,rk3066-pmu"); in rockchip_smp_prepare_pmu()
241 node = of_find_compatible_node(NULL, NULL, "rockchip,rk3066-pmu"); in rockchip_smp_prepare_pmu()
244 return -ENODEV; in rockchip_smp_prepare_pmu()
250 return -ENOMEM; in rockchip_smp_prepare_pmu()
271 node = of_find_compatible_node(NULL, NULL, "rockchip,rk3066-smp-sram"); in rockchip_smp_prepare_cpus()
273 pr_err("%s: could not find sram dt node\n", __func__); in rockchip_smp_prepare_cpus()
279 pr_err("%s: could not map sram registers\n", __func__); in rockchip_smp_prepare_cpus()
293 node = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-scu"); in rockchip_smp_prepare_cpus()
373 CPU_METHOD_OF_DECLARE(rk3036_smp, "rockchip,rk3036-smp", &rk3036_smp_ops);
374 CPU_METHOD_OF_DECLARE(rk3066_smp, "rockchip,rk3066-smp", &rockchip_smp_ops);