xref: /openbmc/linux/drivers/hwtracing/intel_th/pti.h (revision 14cdbf041788f150ec3b323583b80bfd5775f73e)
1*14cdbf04SAlexander Shishkin /*
2*14cdbf04SAlexander Shishkin  * Intel(R) Trace Hub PTI output data structures
3*14cdbf04SAlexander Shishkin  *
4*14cdbf04SAlexander Shishkin  * Copyright (C) 2014-2015 Intel Corporation.
5*14cdbf04SAlexander Shishkin  *
6*14cdbf04SAlexander Shishkin  * This program is free software; you can redistribute it and/or modify it
7*14cdbf04SAlexander Shishkin  * under the terms and conditions of the GNU General Public License,
8*14cdbf04SAlexander Shishkin  * version 2, as published by the Free Software Foundation.
9*14cdbf04SAlexander Shishkin  *
10*14cdbf04SAlexander Shishkin  * This program is distributed in the hope it will be useful, but WITHOUT
11*14cdbf04SAlexander Shishkin  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12*14cdbf04SAlexander Shishkin  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13*14cdbf04SAlexander Shishkin  * more details.
14*14cdbf04SAlexander Shishkin  */
15*14cdbf04SAlexander Shishkin 
16*14cdbf04SAlexander Shishkin #ifndef __INTEL_TH_STH_H__
17*14cdbf04SAlexander Shishkin #define __INTEL_TH_STH_H__
18*14cdbf04SAlexander Shishkin 
19*14cdbf04SAlexander Shishkin enum {
20*14cdbf04SAlexander Shishkin 	REG_PTI_CTL	= 0x1c00,
21*14cdbf04SAlexander Shishkin };
22*14cdbf04SAlexander Shishkin 
23*14cdbf04SAlexander Shishkin #define PTI_EN		BIT(0)
24*14cdbf04SAlexander Shishkin #define PTI_FCEN	BIT(1)
25*14cdbf04SAlexander Shishkin #define PTI_MODE	0xf0
26*14cdbf04SAlexander Shishkin #define PTI_CLKDIV	0x000f0000
27*14cdbf04SAlexander Shishkin #define PTI_PATGENMODE	0x00f00000
28*14cdbf04SAlexander Shishkin 
29*14cdbf04SAlexander Shishkin #endif /* __INTEL_TH_STH_H__ */
30