1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Qualcomm APQ8016, APQ8096
5 * (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
7 #ifndef _CLOCK_SNAPDRAGON_H
8 #define _CLOCK_SNAPDRAGON_H
10 #define CFG_CLK_SRC_CXO (0 << 8)
11 #define CFG_CLK_SRC_GPLL0 (1 << 8)
12 #define CFG_CLK_SRC_MASK (7 << 8)
38 void clk_enable_gpll0(phys_addr_t base, const struct pll_vote_clk *gpll0);
39 void clk_bcr_update(phys_addr_t apps_cmd_rgcr);
40 void clk_enable_cbc(phys_addr_t cbcr);
41 void clk_enable_vote_clk(phys_addr_t base, const struct vote_clk *vclk);
42 void clk_rcg_set_rate_mnd(phys_addr_t base, const struct bcr_regs *regs,
43 int div, int m, int n, int source);