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

Commit 90a7e429 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "clk: msm: clock-gcc-8998: Update parent src for qup_spi/uart_apps clocks"

parents 7d517eef 82f1f37c
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ static void __iomem *virt_dbgbase;
#define gpll0_out_main_source_val 1
#define gpll0_ao_source_val 1
#define gpll4_out_main_source_val 5
#define gpll0_early_div_source_val 6

#define FIXDIV(div) (div ? (2 * (div) - 1) : (0))

@@ -164,6 +165,7 @@ static struct pll_vote_clk gpll0_ao = {
};

DEFINE_EXT_CLK(gpll0_out_main, &gpll0.c);
DEFINE_EXT_CLK(gpll0_early_div, &gpll0.c);

static struct local_vote_clk gcc_mmss_gpll0_clk = {
	.cbcr_reg = GCC_APCS_CLOCK_BRANCH_ENA_VOTE_1,
@@ -328,7 +330,7 @@ static struct clk_freq_tbl ftbl_blsp_qup_spi_apps_clk_src[] = {
	F(    960000,    cxo_clk_src,   10,    1,     2),
	F(   4800000,    cxo_clk_src,    4,    0,     0),
	F(   9600000,    cxo_clk_src,    2,    0,     0),
	F(  15000000, gpll0_out_main,   10,    1,     4),
	F(  15000000, gpll0_early_div,   5,    1,     4),
	F(  19200000,    cxo_clk_src,    1,    0,     0),
	F(  25000000, gpll0_out_main,   12,    1,     2),
	F(  50000000, gpll0_out_main,   12,    0,     0),
@@ -496,10 +498,10 @@ static struct rcg_clk blsp1_qup6_spi_apps_clk_src = {
};

static struct clk_freq_tbl ftbl_blsp_uart_apps_clk_src[] = {
	F(   3686400, gpll0_out_main,    1,   96, 15625),
	F(   7372800, gpll0_out_main,    1,  192, 15625),
	F(  14745600, gpll0_out_main,    1,  384, 15625),
	F(  16000000, gpll0_out_main,    5,    2,    15),
	F(   3686400, gpll0_early_div,   1,  192, 15625),
	F(   7372800, gpll0_early_div,   1,  384, 15625),
	F(  14745600, gpll0_early_div,   1,  768, 15625),
	F(  16000000, gpll0_early_div,   1,    4,    75),
	F(  19200000,    cxo_clk_src,    1,    0,     0),
	F(  24000000, gpll0_out_main,    5,    1,     5),
	F(  32000000, gpll0_out_main,    1,    4,    75),
@@ -2732,6 +2734,8 @@ static int msm_gcc_8998_probe(struct platform_device *pdev)
	if (ret)
		return ret;

	gpll0_early_div.c.rate = 300000000;

	ret = enable_rpm_scaling();
	if (ret < 0)
		return ret;