blob: 1e2950397454297c6c655fcf02b700338c80dfaa [file] [log] [blame]
Simon Glass8c0629b2019-12-08 17:40:08 -07001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2017 Intel Corporation.
4 * Copyright 2019 Google LLC
5 *
6 * Modified from coreboot itss.h
7 */
8
9#ifndef _ASM_ARCH_ITSS_H
10#define _ASM_ARCH_ITSS_H
11
12#define GPIO_IRQ_START 50
13#define GPIO_IRQ_END ITSS_MAX_IRQ
14
15#define ITSS_MAX_IRQ 119
16#define IRQS_PER_IPC 32
17#define NUM_IPC_REGS ((ITSS_MAX_IRQ + IRQS_PER_IPC - 1) / IRQS_PER_IPC)
18
19/* Max PXRC registers in ITSS */
20#define MAX_PXRC_CONFIG (PCR_ITSS_PIRQH_ROUT - PCR_ITSS_PIRQA_ROUT + 1)
21
22/* PIRQA Routing Control Register */
23#define PCR_ITSS_PIRQA_ROUT 0x3100
24/* PIRQB Routing Control Register */
25#define PCR_ITSS_PIRQB_ROUT 0x3101
26/* PIRQC Routing Control Register */
27#define PCR_ITSS_PIRQC_ROUT 0x3102
28/* PIRQD Routing Control Register */
29#define PCR_ITSS_PIRQD_ROUT 0x3103
30/* PIRQE Routing Control Register */
31#define PCR_ITSS_PIRQE_ROUT 0x3104
32/* PIRQF Routing Control Register */
33#define PCR_ITSS_PIRQF_ROUT 0x3105
34/* PIRQG Routing Control Register */
35#define PCR_ITSS_PIRQG_ROUT 0x3106
36/* PIRQH Routing Control Register */
37#define PCR_ITSS_PIRQH_ROUT 0x3107
38/* ITSS Interrupt polarity control */
39#define PCR_ITSS_IPC0_CONF 0x3200
40/* ITSS Power reduction control */
41#define PCR_ITSS_ITSSPRC 0x3300
42
43#endif /* _ASM_ARCH_ITSS_H */