coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pmif.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 /*
4  * This file is created based on MT8186 Functional Specification
5  * Chapter number: 3.7
6  */
7 
8 #include <device/mmio.h>
9 #include <soc/pmif.h>
10 
11 #define SLEEP_PROT_CTRL 0x3F0
12 
13 DEFINE_BITFIELD(SPM_SLEEP_REQ_SEL, 1, 0)
14 DEFINE_BITFIELD(SCP_SLEEP_REQ_SEL, 10, 9)
15 
17 {
19  SPM_SLEEP_REQ_SEL, 0,
20  SCP_SLEEP_REQ_SEL, 0);
21 }
#define DEFINE_BITFIELD(name, high_bit, low_bit)
Definition: mmio.h:124
#define SET32_BITFIELDS(addr,...)
Definition: mmio.h:201
#define SLEEP_PROT_CTRL
Definition: pmif.c:11
void pmif_spmi_set_lp_mode(void)
Definition: pmif.c:16
@ PMIF_BASE
Definition: addressmap.h:34