2 * This file is part of the coreboot project.
4 * Copyright (C) 2013 Google, Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #ifndef _BAYTRAIL_PCIE_H_
17 #define _BAYTRAIL_PCIE_H_
19 /* PCIe root port config space registers. */
24 #define DCTL_DSTS 0x48
30 # define L1EXIT_SHIFT 15
31 # define L1EXIT_MASK (0x7 << L1EXIT_SHIFT)
43 #define SLCTL_SLSTS 0x58
44 # define PDS (1 << 22)
46 # define OBFFS (0x3 << 18)
47 # define LTRMS (1 << 11)
49 # define OBFFEN (3 << 13)
50 # define LTRME (1 << 10)
53 # define UPSD (1 << 24)
54 # define UNRS (1 << 15)
55 # define UPRS (1 << 14)
57 # define IPF (1 << 11)
58 # define LSTP (1 << 6)
59 # define EOIFD (1 << 1)
61 # define CCEL_SHIFT 15
62 # define CCEL_MASK (0x7 << CCEL_SHIFT)
64 # define RPSCGEN (1 << 15)
65 # define LCLKREQEN (1 << 13)
66 # define BBCLKREQEN (1 << 12)
67 # define SRDLCGEN (1 << 11)
68 # define SRDBCGEN (1 << 10)
69 # define RPDLCGEN (1 << 9)
70 # define RPDBCGEN (1 << 8)
72 # define RPL1SQPOL (1 << 1)
73 # define RPDTSQPOL (1 << 0)
74 #define PHYCTL2_IOSFBCTL 0xf4
75 # define PLL_OFF_EN (1 << 8)
76 # define TDFT (3 << 14)
77 # define TXCFGCHWAIT (3 << 12)
78 # define SIID (3 << 26)
79 #define STRPFUSECFG 0xfc
80 # define LANECFG_SHIFT 14
81 # define LANECFG_MASK (0x3 << LANECFG_SHIFT)
86 # define CSREN (1 << 22)
87 # define LATGC_SHIFT 6
88 # define LATGC_MASK (0x7 << LATGC_SHIFT)
90 # define SPCE (1 << 5)
91 #define PCIESTS1 0x328
95 # define SQDIS (1 << 27)
98 #endif /* _BAYTRAIL_PCIE_H_ */