2 #include <soc/addressmap.h>
5 #ifndef __SOC_QUALCOMM_QCS405_CLOCK_H__
6 #define __SOC_QUALCOMM_QCS405_CLOCK_H__
8 #define BLSP1_AHB_CLK_ENA 10
9 #define BLSP2_AHB_CLK_ENA 20
10 #define SRC_XO_19_2MHZ 0
11 #define SRC_GPLL0_MAIN_800MHZ 1
16 #define GCC_USB_HS_PHY_CFG_AHB_BCR 0x180000C
17 #define GCC_USB_HS_BCR 0x1841000
18 #define GCC_USB_30_BCR 0x1839000
19 #define GCC_USB2A_PHY_BCR 0x180000C
20 #define GCC_USB2_HS_PHY_ONLY_BCR 0x1841034
21 #define GCC_QUSB2_PHY_BCR 0x184103C
int clock_reset_bcr(void *bcr_addr, bool reset)
void clock_enable_i2c(void)
void clock_disable_spi(int blsp, int qup)
@ CLK_CTL_GPLL_PLLOUT_MAIN_SHFT
@ CLK_CTL_GPLL_PLLOUT_LV_EARLY_SHFT
@ CLK_CTL_GPLL_PLLOUT_AUX_SHFT
@ CLK_CTL_GPLL_PLLOUT_AUX_BMSK
@ CLK_CTL_GPLL_PLLOUT_MAIN_BMSK
@ CLK_CTL_GPLL_PLLOUT_AUX2_BMSK
@ CLK_CTL_GPLL_PLLOUT_LV_EARLY_BMSK
@ CLK_CTL_GPLL_PLLOUT_AUX2_SHFT
int clock_configure_qspi(uint32_t hz)
void clock_configure_spi(int blsp, int qup, uint32_t hz)
void clock_enable_spi(int blsp, int qup)
@ CLK_CTL_BCR_BLK_ARES_SHFT
@ CLK_CTL_BCR_BLK_ARES_BMSK
void clock_disable_uart(void)
@ CLK_CTL_CBC_CLK_EN_SHFT
@ CLK_CTL_CBC_CLK_EN_BMSK
@ CLK_CTL_CBC_CLK_OFF_SHFT
@ CLK_CTL_CBC_CLK_OFF_BMSK
void clock_disable_i2c(void)
void clock_configure_i2c(uint32_t hz)
void clock_enable_uart(void)
void clock_reset_aop(void)
@ CLK_CTL_CFG_SRC_DIV_BMSK
@ CLK_CTL_CFG_SRC_DIV_SHFT
@ CLK_CTL_CFG_SRC_SEL_SHFT
@ CLK_CTL_CFG_SRC_SEL_BMSK
@ CLK_CTL_CMD_UPDATE_BMSK
@ CLK_CTL_CMD_ROOT_OFF_SHFT
@ CLK_CTL_CMD_ROOT_EN_BMSK
@ CLK_CTL_CMD_ROOT_EN_SHFT
@ CLK_CTL_CMD_UPDATE_SHFT
@ CLK_CTL_CMD_ROOT_OFF_BMSK
static struct qcs405_gcc *const gcc
void clock_configure_uart(uint32_t hz)
struct qcs405_clock * rcgr
u8 _res8[0x5024 - 0x5020]
u8 _res13[0xC024 - 0xC008]
u32 blsp1_qup1_spi_apps_cbcr
struct qcs405_clock blsp1_uart2_apps_clk
u8 _res1[0x2000 - 0x1014]
u32 gcc_apcs_clock_branch_en_vote
u32 blsp1_qup4_spi_apps_cbcr
struct qcs405_clock blsp1_qup3_spi_clk
u32 blsp2_qup0_spi_apps_cbcr
struct qcs405_clock blsp2_qup0_spi_clk
struct qcs405_clock blsp1_qup2_spi_clk
u32 blsp1_qup1_i2c_apps_cbcr
struct qcs405_clock blsp1_qup1_spi_clk
u8 _res4[0x3014 - 0x3010]
u8 _res10[0x6034 - 0x6028]
struct qcs405_clock blsp1_qup4_spi_clk
u8 _res7[0x5018 - 0x4038]
struct qcs405_rcg gcc_blsp_uart_sim_rcg
u32 blsp1_qup0_spi_apps_cbcr
struct qcs405_clock blsp1_qup0_spi_clk
u8 _res14[0x21000 - 0xC038]
struct qcs405_clock blsp1_qup1_i2c_clk
u8 _res2[0x2024 - 0x2020]
u8 _res6[0x4024 - 0x4020]
u8 _res15[0x45004 - 0x21024]
u8 _res11[0xB000 - 0x6048]
u32 blsp1_qup3_spi_apps_cbcr
u8 _res5[0x4018 - 0x3048]
u8 _res9[0x6020 - 0x5038]
u8 _res12[0xC000 - 0xB00C]
u32 blsp1_qup2_spi_apps_cbcr
u32 blsp1_uart2_apps_cbcr
static void __noreturn reset(void)