| 1 | /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ |
| 2 | |
| 3 | #include <console/console.h> |
| 4 | #include <device/mmio.h> |
| 5 | #include <soc/addressmap.h> |
| 6 | #include <soc/cksys.h> |
| 7 | |
| 8 | #define CKSYS_OFFSET 0x270 |
| 9 | #define PERI_MASK_IDLE_TO_CKSYS (PERICFG_AO_SEC_BASE + CKSYS_OFFSET) |
| 10 | |
| 11 | void mtk_cksys_init(void) |
| 12 | { |
| 13 | setbits32p(PERI_MASK_IDLE_TO_CKSYS, BIT(0)); |
| 14 | printk(BIOS_INFO, "%s = %#x\n", __func__, read32p(PERI_MASK_IDLE_TO_CKSYS)); |
| 15 | } |