Alexander Shishkin | 50352fa | 2018-03-28 18:46:15 +0300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Alexander Shishkin | 14cdbf0 | 2015-09-22 15:47:19 +0300 | [diff] [blame] | 2 | /* |
| 3 | * Intel(R) Trace Hub PTI output data structures |
| 4 | * |
| 5 | * Copyright (C) 2014-2015 Intel Corporation. |
Alexander Shishkin | 14cdbf0 | 2015-09-22 15:47:19 +0300 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __INTEL_TH_STH_H__ |
| 9 | #define __INTEL_TH_STH_H__ |
| 10 | |
| 11 | enum { |
| 12 | REG_PTI_CTL = 0x1c00, |
| 13 | }; |
| 14 | |
| 15 | #define PTI_EN BIT(0) |
| 16 | #define PTI_FCEN BIT(1) |
| 17 | #define PTI_MODE 0xf0 |
Alexander Shishkin | f77d22b | 2016-11-11 12:07:25 +0200 | [diff] [blame] | 18 | #define LPP_PTIPRESENT BIT(8) |
| 19 | #define LPP_BSSBPRESENT BIT(9) |
Alexander Shishkin | 14cdbf0 | 2015-09-22 15:47:19 +0300 | [diff] [blame] | 20 | #define PTI_CLKDIV 0x000f0000 |
| 21 | #define PTI_PATGENMODE 0x00f00000 |
Alexander Shishkin | f77d22b | 2016-11-11 12:07:25 +0200 | [diff] [blame] | 22 | #define LPP_DEST BIT(25) |
| 23 | #define LPP_BSSBACT BIT(30) |
| 24 | #define LPP_LPPBUSY BIT(31) |
| 25 | |
| 26 | #define LPP_DEST_PTI BIT(0) |
| 27 | #define LPP_DEST_EXI BIT(1) |
Alexander Shishkin | 14cdbf0 | 2015-09-22 15:47:19 +0300 | [diff] [blame] | 28 | |
| 29 | #endif /* __INTEL_TH_STH_H__ */ |