3 #include <soc/addressmap.h>
7 #ifndef __SOC_QUALCOMM_SC7180_CLOCK_H__
8 #define __SOC_QUALCOMM_SC7180_CLOCK_H__
10 #define SRC_XO_HZ (19200 * KHz)
11 #define GPLL0_EVEN_HZ (300 * MHz)
12 #define GPLL0_MAIN_HZ (600 * MHz)
14 #define QUPV3_WRAP0_CLK_ENA_S(idx) (10 + idx)
15 #define QUPV3_WRAP1_CLK_ENA_S(idx) (22 + idx)
35 #define L_VAL_1516P8MHz 0x4F
36 #define L_VAL_1209P6MHz 0x3F
38 #define AOP_RESET_SHFT 0
39 #define SCALE_FREQ_SHFT 11
203 #define clock_reset_aop() \
204 clock_reset_subsystem(&aoss->aoss_cc_apcs_misc, AOP_RESET_SHFT)
int clock_configure_qspi(uint32_t hz)
static struct sc7180_apss_clock *const apss_silver
int mdss_clock_configure(enum mdss_clock clk_type, uint32_t source, uint32_t divider, uint32_t m, uint32_t n, uint32_t d)
static struct sc7180_apss_clock *const apss_l3
int mdss_clock_enable(enum mdss_clock clk_type)
static struct sc7180_gcc *const gcc
static struct sc7180_disp_cc *const mdss
#define clock_reset_aop()
void clock_configure_qup(int qup, uint32_t hz)
void clock_enable_qup(int qup)
@ QUPV3_WRAP_1_S_AHB_CLK_ENA
@ QUPV3_WRAP_1_M_AHB_CLK_ENA
@ QUPV3_WRAP_0_S_AHB_CLK_ENA
@ QUPV3_WRAP0_CORE_2X_CLK_ENA
@ QUPV3_WRAP1_CORE_2X_CLK_ENA
@ QUPV3_WRAP1_CORE_CLK_ENA
@ QUPV3_WRAP_0_M_AHB_CLK_ENA
@ QUPV3_WRAP0_CORE_CLK_ENA
check_member(sc7180_gcc, usb30_prim_bcr, 0xf000)
void clock_configure_dfsr(int qup)
u8 _res6[0x10000 - 0x215C]
u8 _res1[0x2028 - 0x2008]
u8 _res5[0x2148 - 0x2124]
struct clock_rcg_mnd byte0
u8 _res2[0x2038 - 0x2030]
u8 _res3[0x2098 - 0x203C]
struct clock_rcg_mnd pclk0
u8 _res4[0x2110 - 0x20AC]
struct clock_rcg_mnd esc0
struct qupv3_clock qup_wrap0_s[6]
u8 _res3[0x18000 - 0x17750]
u8 _res5[0x26000 - 0x18998]
u8 _res8[0x52008 - 0x50018]
u8 _res4[0x18994 - 0x18734]
struct qupv3_clock qup_wrap1_s[6]
u32 qup_wrap0_core_2x_cbcr
u8 _res6[0x4b000 - 0x26004]
u32 qup_wrap1_core_2x_cbcr
struct clock_rcg qspi_core
u8 _res9[0x1000000 - 0x5200c]
u8 _res1[0x17000 - 0xf004]
u8 _res2[0x17030 - 0x17020]
u8 _res0[0xf000 - 0x1000]
struct clock_rcg qup_wrap0_core_2x
u8 _res7[0x50000 - 0x4b014]
#define m(clkreg, src_bits, pmcreg, dst_bits)