Lines Matching refs:cpu

39 static void tegra_secondary_init(unsigned int cpu)  in tegra_secondary_init()  argument
41 cpumask_set_cpu(cpu, &tegra_cpu_init_mask); in tegra_secondary_init()
45 static int tegra20_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra20_boot_secondary() argument
47 cpu = cpu_logical_map(cpu); in tegra20_boot_secondary()
57 tegra_put_cpu_in_reset(cpu); in tegra20_boot_secondary()
65 flowctrl_write_cpu_halt(cpu, 0); in tegra20_boot_secondary()
67 tegra_enable_cpu_clock(cpu); in tegra20_boot_secondary()
68 flowctrl_write_cpu_csr(cpu, 0); /* Clear flow controller CSR. */ in tegra20_boot_secondary()
69 tegra_cpu_out_of_reset(cpu); in tegra20_boot_secondary()
73 static int tegra30_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra30_boot_secondary() argument
78 cpu = cpu_logical_map(cpu); in tegra30_boot_secondary()
79 tegra_put_cpu_in_reset(cpu); in tegra30_boot_secondary()
80 flowctrl_write_cpu_halt(cpu, 0); in tegra30_boot_secondary()
96 if (cpumask_test_cpu(cpu, &tegra_cpu_init_mask)) { in tegra30_boot_secondary()
99 if (tegra_pmc_cpu_is_powered(cpu)) in tegra30_boot_secondary()
111 if (!tegra_pmc_cpu_is_powered(cpu)) { in tegra30_boot_secondary()
112 ret = tegra_pmc_cpu_power_on(cpu); in tegra30_boot_secondary()
118 while (!tegra_pmc_cpu_is_powered(cpu)) { in tegra30_boot_secondary()
127 tegra_enable_cpu_clock(cpu); in tegra30_boot_secondary()
131 ret = tegra_pmc_cpu_remove_clamping(cpu); in tegra30_boot_secondary()
137 flowctrl_write_cpu_csr(cpu, 0); /* Clear flow controller CSR. */ in tegra30_boot_secondary()
138 tegra_cpu_out_of_reset(cpu); in tegra30_boot_secondary()
142 static int tegra114_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra114_boot_secondary() argument
146 cpu = cpu_logical_map(cpu); in tegra114_boot_secondary()
148 if (cpumask_test_cpu(cpu, &tegra_cpu_init_mask)) { in tegra114_boot_secondary()
155 flowctrl_write_cpu_csr(cpu, 1); in tegra114_boot_secondary()
156 flowctrl_write_cpu_halt(cpu, in tegra114_boot_secondary()
165 ret = tegra_pmc_cpu_power_on(cpu); in tegra114_boot_secondary()
171 static int tegra_boot_secondary(unsigned int cpu, in tegra_boot_secondary() argument
175 return tegra20_boot_secondary(cpu, idle); in tegra_boot_secondary()
177 return tegra30_boot_secondary(cpu, idle); in tegra_boot_secondary()
179 return tegra114_boot_secondary(cpu, idle); in tegra_boot_secondary()
181 return tegra114_boot_secondary(cpu, idle); in tegra_boot_secondary()