1 /* SPDX-License-Identifier: GPL-2.0-only */
6 /* PCIe root port config space registers. */
11 #define DCTL_DSTS 0x48
17 # define L1EXIT_SHIFT 15
18 # define L1EXIT_MASK (0x7 << L1EXIT_SHIFT)
30 #define SLCTL_SLSTS 0x58
31 # define PDS (1 << 22)
33 # define OBFFS (0x3 << 18)
34 # define LTRMS (1 << 11)
36 # define OBFFEN (3 << 13)
37 # define LTRME (1 << 10)
40 # define UPSD (1 << 24)
41 # define UNRS (1 << 15)
42 # define UPRS (1 << 14)
44 # define IPF (1 << 11)
45 # define LSTP (1 << 6)
46 # define EOIFD (1 << 1)
48 # define CCEL_SHIFT 15
49 # define CCEL_MASK (0x7 << CCEL_SHIFT)
51 # define RPSCGEN (1 << 15)
52 # define LCLKREQEN (1 << 13)
53 # define BBCLKREQEN (1 << 12)
54 # define SRDLCGEN (1 << 11)
55 # define SRDBCGEN (1 << 10)
56 # define RPDLCGEN (1 << 9)
57 # define RPDBCGEN (1 << 8)
59 # define RPL1SQPOL (1 << 1)
60 # define RPDTSQPOL (1 << 0)
61 #define PHYCTL2_IOSFBCTL 0xf4
62 # define PLL_OFF_EN (1 << 8)
63 # define TDFT (3 << 14)
64 # define TXCFGCHWAIT (3 << 12)
65 # define SIID (3 << 26)
66 #define STRPFUSECFG 0xfc
67 # define LANECFG_SHIFT 14
68 # define LANECFG_MASK (0x3 << LANECFG_SHIFT)
73 # define CSREN (1 << 22)
74 # define LATGC_SHIFT 6
75 # define LATGC_MASK (0x7 << LATGC_SHIFT)
77 # define SPCE (1 << 5)
78 #define PCIESTS1 0x328
82 # define SQDIS (1 << 27)
84 #endif /* _SOC_PCIE_H_ */