1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * This file is created based on MT8186 Functional Specification
8 #include <device/mmio.h>
11 #define SLEEP_PROT_CTRL 0x3F0
13 DEFINE_BITFIELD(SPM_SLEEP_REQ_SEL
, 1, 0)
14 DEFINE_BITFIELD(SCP_SLEEP_REQ_SEL
, 10, 9)
16 void pmif_spmi_set_lp_mode(void)
18 SET32_BITFIELDS((void *)(PMIF_SPMI_BASE
+ SLEEP_PROT_CTRL
),
20 SCP_SLEEP_REQ_SEL
, 0);