summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/denverton_ns/include/soc/pcr.h
blob: c407d3710c9d6d533b5224901bd3a325f8aa908d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef _DENVERTON_NS_PCR_H_
#define _DENVERTON_NS_PCR_H_

/* PCR BASE */
#include <soc/iomap.h>

/* PCR address */
#define PCH_PCR_ADDRESS(Pid, Offset) \
	(DEFAULT_PCR_BASE | ((uint8_t)(Pid) << 16) | (uint16_t)(Offset))

/* PID for PCR and SBI */
typedef enum {
	PID_SMB = 0xCF,
	PID_ITSS = 0xD0,
	PID_GPIOCOM0 = 0xC2,
	PID_GPIOCOM1 = 0xC5,
} PCH_SBI_PID;

#endif /* _DENVERTON_NS_PCR_H_ */