Lines Matching +full:tegra +full:- +full:pmc
1 // SPDX-License-Identifier: GPL-2.0+
12 #include <asm/arch-tegra/ap.h>
13 #include <asm/arch-tegra/pmc.h>
33 * - configure the Flow Controller in psci_board_init()
34 * - power up the CPUs in psci_board_init()
35 * - wait for the CPUs to hit wfi and be powered down again in psci_board_init()
46 writel((2 << CSR_WAIT_WFI_SHIFT) | CSR_ENABLE, &flow->cpu1_csr); in psci_board_init()
47 writel((4 << CSR_WAIT_WFI_SHIFT) | CSR_ENABLE, &flow->cpu2_csr); in psci_board_init()
48 writel((8 << CSR_WAIT_WFI_SHIFT) | CSR_ENABLE, &flow->cpu3_csr); in psci_board_init()
50 writel(EVENT_MODE_STOP, &flow->halt_cpu1_events); in psci_board_init()
51 writel(EVENT_MODE_STOP, &flow->halt_cpu2_events); in psci_board_init()
52 writel(EVENT_MODE_STOP, &flow->halt_cpu3_events); in psci_board_init()
54 while (!(readl(&flow->cpu1_csr) & CSR_PWR_OFF_STS) || in psci_board_init()
55 !(readl(&flow->cpu2_csr) & CSR_PWR_OFF_STS) || in psci_board_init()
56 !(readl(&flow->cpu3_csr) & CSR_PWR_OFF_STS)) in psci_board_init()