blob: 30827be67b4cb6f325e605f78799576a6d0bb1c0 [file] [log] [blame]
Alexander Shishkin14cdbf02015-09-22 15:47:19 +03001/*
2 * Intel(R) Trace Hub PTI output data structures
3 *
4 * Copyright (C) 2014-2015 Intel Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 */
15
16#ifndef __INTEL_TH_STH_H__
17#define __INTEL_TH_STH_H__
18
19enum {
20 REG_PTI_CTL = 0x1c00,
21};
22
23#define PTI_EN BIT(0)
24#define PTI_FCEN BIT(1)
25#define PTI_MODE 0xf0
Alexander Shishkinf77d22b2016-11-11 12:07:25 +020026#define LPP_PTIPRESENT BIT(8)
27#define LPP_BSSBPRESENT BIT(9)
Alexander Shishkin14cdbf02015-09-22 15:47:19 +030028#define PTI_CLKDIV 0x000f0000
29#define PTI_PATGENMODE 0x00f00000
Alexander Shishkinf77d22b2016-11-11 12:07:25 +020030#define LPP_DEST BIT(25)
31#define LPP_BSSBACT BIT(30)
32#define LPP_LPPBUSY BIT(31)
33
34#define LPP_DEST_PTI BIT(0)
35#define LPP_DEST_EXI BIT(1)
Alexander Shishkin14cdbf02015-09-22 15:47:19 +030036
37#endif /* __INTEL_TH_STH_H__ */