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 ret = tegra_pmc_cpu_power_on(cpu); in tegra30_boot_secondary()
117 tegra_enable_cpu_clock(cpu); in tegra30_boot_secondary()
121 ret = tegra_pmc_cpu_remove_clamping(cpu); in tegra30_boot_secondary()
127 flowctrl_write_cpu_csr(cpu, 0); /* Clear flow controller CSR. */ in tegra30_boot_secondary()
128 tegra_cpu_out_of_reset(cpu); in tegra30_boot_secondary()
132 static int tegra114_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra114_boot_secondary() argument
136 cpu = cpu_logical_map(cpu); in tegra114_boot_secondary()
138 if (cpumask_test_cpu(cpu, &tegra_cpu_init_mask)) { in tegra114_boot_secondary()
145 flowctrl_write_cpu_csr(cpu, 1); in tegra114_boot_secondary()
146 flowctrl_write_cpu_halt(cpu, in tegra114_boot_secondary()
155 ret = tegra_pmc_cpu_power_on(cpu); in tegra114_boot_secondary()
161 static int tegra_boot_secondary(unsigned int cpu, in tegra_boot_secondary() argument
165 return tegra20_boot_secondary(cpu, idle); in tegra_boot_secondary()
167 return tegra30_boot_secondary(cpu, idle); in tegra_boot_secondary()
169 return tegra114_boot_secondary(cpu, idle); in tegra_boot_secondary()
171 return tegra114_boot_secondary(cpu, idle); in tegra_boot_secondary()