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

Commit 9834fc54 authored by Veera Vegivada's avatar Veera Vegivada Committed by Gerrit - the friendly Code Review server
Browse files

clk: qcom: gcc: Add new frequency table for SDCC1 clock



The clock plan has been updated to support multiple
frequencies as per the client, so add the new table.

Change-Id: Ie418e82a635a556178d45b27f3ccf601d6efac38
Signed-off-by: default avatarVeera Vegivada <vvegivad@codeaurora.org>
parent 146e6bb2
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2018, 2020, The Linux Foundation. All rights reserved.
 *
 * 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
@@ -714,12 +714,24 @@ static struct clk_rcg2 gcc_pdm2_clk_src = {
	},
};

static const struct freq_tbl ftbl_gcc_sdcc1_apps_clk_src[] = {
	F(144000, P_BI_TCXO, 16, 3, 25),
	F(400000, P_BI_TCXO, 12, 1, 4),
	F(19200000, P_BI_TCXO, 1, 0, 0),
	F(20000000, P_GPLL0_OUT_EVEN, 5, 1, 3),
	F(25000000, P_GPLL0_OUT_EVEN, 12, 0, 0),
	F(50000000, P_GPLL0_OUT_EVEN, 6, 0, 0),
	F(100000000, P_GPLL0_OUT_MAIN, 6, 0, 0),
	F(200000000, P_GPLL0_OUT_MAIN, 3, 0, 0),
	{ }
};

static struct clk_rcg2 gcc_sdcc1_apps_clk_src = {
	.cmd_rcgr = 0xf00c,
	.mnd_width = 8,
	.hid_width = 5,
	.parent_map = gcc_parent_map_0,
	.freq_tbl = ftbl_gcc_gp1_clk_src,
	.freq_tbl = ftbl_gcc_sdcc1_apps_clk_src,
	.clkr.hw.init = &(struct clk_init_data){
		.name = "gcc_sdcc1_apps_clk_src",
		.parent_names = gcc_parent_names_0,