Skip to content

Commit fcbd803

Browse files
Lukasz Lubachanwoochoi
authored andcommitted
include: dt-bindings: add Performance Monitoring Unit for Exynos
This patch add support of a new feature which can be used in DT: Performance Monitoring Unit with defined event data type. In this patch the event data types are defined for Exynos PPMU. The patch also updates the MAINTAINERS file accordingly and adds the header file to devfreq event subsystem. Acked-by: Chanwoo Choi <cw00.choi@samsung.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
1 parent a99d808 commit fcbd803

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

‎MAINTAINERS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4778,6 +4778,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/mzx/devfreq.git
47784778
S: Supported
47794779
F: drivers/devfreq/event/
47804780
F: drivers/devfreq/devfreq-event.c
4781+
F: include/dt-bindings/pmu/exynos_ppmu.h
47814782
F: include/linux/devfreq-event.h
47824783
F: Documentation/devicetree/bindings/devfreq/event/
47834784

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
/*
3+
* Samsung Exynos PPMU event types for counting in regs
4+
*
5+
* Copyright (c) 2019, Samsung Electronics
6+
* Author: Lukasz Luba <l.luba@partner.samsung.com>
7+
*/
8+
9+
#ifndef __DT_BINDINGS_PMU_EXYNOS_PPMU_H
10+
#define __DT_BINDINGS_PMU_EXYNOS_PPMU_H
11+
12+
#define PPMU_RO_BUSY_CYCLE_CNT 0x0
13+
#define PPMU_WO_BUSY_CYCLE_CNT 0x1
14+
#define PPMU_RW_BUSY_CYCLE_CNT 0x2
15+
#define PPMU_RO_REQUEST_CNT 0x3
16+
#define PPMU_WO_REQUEST_CNT 0x4
17+
#define PPMU_RO_DATA_CNT 0x5
18+
#define PPMU_WO_DATA_CNT 0x6
19+
#define PPMU_RO_LATENCY 0x12
20+
#define PPMU_WO_LATENCY 0x16
21+
#define PPMU_V2_RO_DATA_CNT 0x4
22+
#define PPMU_V2_WO_DATA_CNT 0x5
23+
#define PPMU_V2_EVT3_RW_DATA_CNT 0x22
24+
25+
#endif

0 commit comments

Comments
 (0)