| 1 | /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ |
| 2 | |
| 3 | #include <device/mmio.h> |
| 4 | #include <soc/addressmap.h> |
| 5 | #include <soc/cpu_input_gating.h> |
| 6 | |
| 7 | #define CPU6_IG_EN_REG (MCUSYS_BASE + 0x3308) |
| 8 | #define CPU7_IG_EN_REG (MCUSYS_BASE + 0x3b08) |
| 9 | #define DISABLE_CPU_IG 0xfc000001 |
| 10 | |
| 11 | void disable_cpu_input_gating(void) |
| 12 | { |
| 13 | write32p(CPU6_IG_EN_REG, DISABLE_CPU_IG); |
| 14 | write32p(CPU7_IG_EN_REG, DISABLE_CPU_IG); |
| 15 | } |