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

Commit fc6607a7 authored by Taniya Das's avatar Taniya Das Committed by Gerrit - the friendly Code Review server
Browse files

clk: msm: gcc: Add support for active clients of SNOC/BIMC



WCNSS would require to directly vote on the snoc & bimc active only clocks.
Add new instances of voter clocks to support the same.

Change-Id: Ib2fd2565676c1007be514b548c881bfe87463e52
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent c1b67407
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -91,6 +91,9 @@ static DEFINE_CLK_VOTER(pnoc_usb_clk, &pnoc_clk.c, LONG_MAX);
static DEFINE_CLK_VOTER(snoc_usb_clk, &snoc_clk.c, LONG_MAX);
static DEFINE_CLK_VOTER(snoc_usb_clk, &snoc_clk.c, LONG_MAX);
static DEFINE_CLK_VOTER(bimc_usb_clk, &bimc_clk.c, LONG_MAX);
static DEFINE_CLK_VOTER(bimc_usb_clk, &bimc_clk.c, LONG_MAX);


static DEFINE_CLK_VOTER(snoc_wcnss_a_clk, &snoc_a_clk.c, LONG_MAX);
static DEFINE_CLK_VOTER(bimc_wcnss_a_clk, &bimc_a_clk.c, LONG_MAX);

/* Branch Voter clocks */
/* Branch Voter clocks */
static DEFINE_CLK_BRANCH_VOTER(xo_gcc, &xo_clk_src.c);
static DEFINE_CLK_BRANCH_VOTER(xo_gcc, &xo_clk_src.c);
static DEFINE_CLK_BRANCH_VOTER(xo_otg_clk, &xo_clk_src.c);
static DEFINE_CLK_BRANCH_VOTER(xo_otg_clk, &xo_clk_src.c);
@@ -3782,6 +3785,9 @@ static struct clk_lookup msm_clocks_lookup_common[] = {
	CLK_LIST(snoc_usb_clk),
	CLK_LIST(snoc_usb_clk),
	CLK_LIST(bimc_usb_clk),
	CLK_LIST(bimc_usb_clk),


	CLK_LIST(snoc_wcnss_a_clk),
	CLK_LIST(bimc_wcnss_a_clk),

	CLK_LIST(qdss_clk),
	CLK_LIST(qdss_clk),
	CLK_LIST(qdss_a_clk),
	CLK_LIST(qdss_a_clk),


+3 −1
Original line number Original line Diff line number Diff line
/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * it under the terms of the GNU General Public License version 2 and
@@ -261,6 +261,7 @@
#define clk_snoc_clk				0x2c341aa0
#define clk_snoc_clk				0x2c341aa0
#define clk_snoc_a_clk				0x8fcef2af
#define clk_snoc_a_clk				0x8fcef2af
#define clk_snoc_usb_a_clk			0x34b7821b
#define clk_snoc_usb_a_clk			0x34b7821b
#define clk_snoc_wcnss_a_clk			0xd3949ebc
#define clk_snoc_usb_clk			0x29f9d73d
#define clk_snoc_usb_clk			0x29f9d73d
#define clk_snoc_msmbus_clk			0xe6900bb6
#define clk_snoc_msmbus_clk			0xe6900bb6
#define clk_snoc_msmbus_a_clk			0x5d4683bd
#define clk_snoc_msmbus_a_clk			0x5d4683bd
@@ -276,6 +277,7 @@
#define clk_bimc_msmbus_clk			0xd212feea
#define clk_bimc_msmbus_clk			0xd212feea
#define clk_bimc_msmbus_a_clk			0x71d1a499
#define clk_bimc_msmbus_a_clk			0x71d1a499
#define clk_bimc_usb_a_clk			0xea410834
#define clk_bimc_usb_a_clk			0xea410834
#define clk_bimc_wcnss_a_clk			0x5a6df715
#define clk_bimc_usb_clk			0x9bd2b2bf
#define clk_bimc_usb_clk			0x9bd2b2bf
#define clk_bimc_gpu_clk			0xd3e0a327
#define clk_bimc_gpu_clk			0xd3e0a327
#define clk_bimc_gpu_a_clk			0x67f0e9a5
#define clk_bimc_gpu_a_clk			0x67f0e9a5