Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b86b33d2 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "clk: qcom: debugcc-bengal: Add clock measure support for ipa_2x_clk"

parents 23a7f77a 664cbc73
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt) "clk: %s: " fmt, __func__
@@ -211,6 +211,7 @@ static const char *const gcc_debug_mux_parent_names[] = {
	"gpu_cc_debug_mux",
	"mc_cc_debug_mux",
	"measure_only_cnoc_clk",
	"measure_only_ipa_2x_clk",
	"measure_only_snoc_clk",
};

@@ -315,6 +316,7 @@ static int gcc_debug_mux_sels[] = {
	0xE7,		/* gpu_cc_debug_mux */
	0x9E,		/* mc_cc_debug_mux */
	0x1A,		/* measure_only_cnoc_clk */
	0xC6,		/* measure_only_ipa_2x_clk */
	0x7,		/* measure_only_snoc_clk */
};

@@ -423,6 +425,14 @@ static struct clk_dummy measure_only_cnoc_clk = {
	},
};

static struct clk_dummy measure_only_ipa_2x_clk = {
	.rrate = 1000,
	.hw.init = &(struct clk_init_data){
		.name = "measure_only_ipa_2x_clk",
		.ops = &clk_dummy_ops,
	},
};

static struct clk_dummy measure_only_snoc_clk = {
	.rrate = 1000,
	.hw.init = &(struct clk_init_data){
@@ -449,6 +459,7 @@ static struct clk_dummy pwrcl_clk = {

struct clk_hw *debugcc_bengal_hws[] = {
	&measure_only_cnoc_clk.hw,
	&measure_only_ipa_2x_clk.hw,
	&measure_only_mccc_clk.hw,
	&measure_only_snoc_clk.hw,
	&perfcl_clk.hw,