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

Commit 9f6fc8a1 authored by Taniya Das's avatar Taniya Das
Browse files

clk: qcom: Add clock asynchronous resets to BCRs



Clock resets are required for video functionality, thus add the
corresponding video BCRs of GCC and VideoCC.

Change-Id: I97cc757e2b12cd104f332d8878f5807eeb340a70
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent e2932339
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt) "clk: %s: " fmt, __func__
@@ -4275,6 +4275,8 @@ static const struct qcom_reset_map gcc_kona_resets[] = {
	[GCC_USB3PHY_PHY_PRIM_BCR] = { 0x50004 },
	[GCC_USB3PHY_PHY_SEC_BCR] = { 0x50010 },
	[GCC_USB_PHY_CFG_AHB2PHY_BCR] = { 0x6a000 },
	[GCC_VIDEO_AXI0_CLK_BCR] = { 0xb024, 2 },
	[GCC_VIDEO_AXI1_CLK_BCR] = { 0xb028, 2 },
};

static const struct clk_rcg_dfs_data gcc_dfs_clocks[] = {
+3 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt) "clk: %s: " fmt, __func__
@@ -482,6 +482,8 @@ static const struct qcom_reset_map video_cc_kona_resets[] = {
	[CVP_VIDEO_CC_MVS0C_BCR] = { 0xbf4 },
	[CVP_VIDEO_CC_MVS1_BCR] = { 0xd94 },
	[CVP_VIDEO_CC_MVS1C_BCR] = { 0xc94 },
	[VIDEO_CC_MVS0C_CLK_BCR] = { 0xc34, 2},
	[VIDEO_CC_MVS1C_CLK_BCR] = { 0xcd4, 2},
};

static const struct regmap_config video_cc_kona_regmap_config = {