Lines Matching refs:bst
114 sunxi_mc_smp_start(bus_space_tag_t bst, bus_space_handle_t prcm, bus_space_handle_t cpucfg,
122 val = bus_space_read_4(bst, cpuxcfg, CPUXCFG_CL_RST(cluster));
124 bus_space_write_4(bst, cpuxcfg, CPUXCFG_CL_RST(cluster), val);
128 val = bus_space_read_4(bst, cpucfg, CPUCFG_CL_RST(cluster));
130 bus_space_write_4(bst, cpucfg, CPUCFG_CL_RST(cluster), val);
135 val = bus_space_read_4(bst, cpuxcfg, CPUXCFG_CL_CTRL0(cluster));
137 bus_space_write_4(bst, cpuxcfg, CPUXCFG_CL_CTRL0(cluster), val);
142 bus_space_write_4(bst, prcm, PRCM_CL_PWR_CLAMP(cluster, cpu), 0xff >> i);
146 if (bus_space_read_4(bst, prcm, PRCM_CL_PWR_CLAMP(cluster, cpu)) == 0)
155 val = bus_space_read_4(bst, prcm, PRCM_CL_PWROFF(cluster));
166 bus_space_write_4(bst, prcm, PRCM_CL_PWROFF(cluster), val);
169 val = bus_space_read_4(bst, prcm, PRCM_CL_RST_CTRL(cluster));
171 bus_space_write_4(bst, prcm, PRCM_CL_RST_CTRL(cluster), val);
174 val = bus_space_read_4(bst, cpucfg, CPUCFG_CL_RST(cluster));
176 bus_space_write_4(bst, cpucfg, CPUCFG_CL_RST(cluster), val);
181 val = bus_space_read_4(bst, cpuxcfg, CPUXCFG_CL_RST(cluster));
191 bus_space_write_4(bst, cpuxcfg, CPUXCFG_CL_RST(cluster), val);
194 val = bus_space_read_4(bst, cpuxcfg, CPUXCFG_CL_CTRL1(cluster));
196 bus_space_write_4(bst, cpuxcfg, CPUXCFG_CL_CTRL1(cluster), val);
204 bus_space_tag_t bst = &arm_generic_bs_tag;
211 if (bus_space_map(bst, A83T_PRCM_BASE, A83T_PRCM_SIZE, 0, &prcm) != 0 ||
212 bus_space_map(bst, CPUCFG_BASE, CPUCFG_SIZE, 0, &cpucfg) != 0 ||
213 bus_space_map(bst, CPUXCFG_BASE, CPUXCFG_SIZE, 0, &cpuxcfg) != 0)
222 bus_space_write_4(bst, cpucfg, CPUCFG_P_REG0, sunxi_mc_smp_pa());
225 error = sunxi_mc_smp_start(bst, prcm, cpucfg, cpuxcfg, cluster, cpu,
228 bus_space_unmap(bst, cpuxcfg, CPUXCFG_SIZE);
229 bus_space_unmap(bst, cpucfg, CPUCFG_SIZE);
230 bus_space_unmap(bst, prcm, A83T_PRCM_SIZE);
238 bus_space_tag_t bst = &arm_generic_bs_tag;
245 if (bus_space_map(bst, A80_PRCM_BASE, A80_PRCM_SIZE, 0, &prcm) != 0 ||
246 bus_space_map(bst, CPUXCFG_BASE, CPUXCFG_SIZE, 0, &cpuxcfg) != 0)
255 bus_space_write_4(bst, prcm, PRCM_CPU_SOFT_ENTRY, sunxi_mc_smp_pa());
258 error = sunxi_mc_smp_start(bst, prcm, 0, cpuxcfg, cluster, cpu,
261 bus_space_unmap(bst, cpuxcfg, CPUXCFG_SIZE);
262 bus_space_unmap(bst, prcm, A80_PRCM_SIZE);