Home
last modified time | relevance | path

Searched refs:gi2c (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/i2c/busses/
H A Di2c-qcom-geni.c155 static int geni_i2c_clk_map_idx(struct geni_i2c_dev *gi2c) in geni_i2c_clk_map_idx() argument
161 if (itr->clk_freq_out == gi2c->clk_freq_out) { in geni_i2c_clk_map_idx()
162 gi2c->clk_fld = itr; in geni_i2c_clk_map_idx()
169 static void qcom_geni_i2c_conf(struct geni_i2c_dev *gi2c) in qcom_geni_i2c_conf() argument
171 const struct geni_i2c_clk_fld *itr = gi2c->clk_fld; in qcom_geni_i2c_conf()
174 writel_relaxed(0, gi2c->se.base + SE_GENI_CLK_SEL); in qcom_geni_i2c_conf()
177 writel_relaxed(val, gi2c->se.base + GENI_SER_M_CLK_CFG); in qcom_geni_i2c_conf()
182 writel_relaxed(val, gi2c->se.base + SE_I2C_SCL_COUNTERS); in qcom_geni_i2c_conf()
185 static void geni_i2c_err_misc(struct geni_i2c_dev *gi2c) in geni_i2c_err_misc() argument
187 u32 m_cmd = readl_relaxed(gi2c->se.base + SE_GENI_M_CMD0); in geni_i2c_err_misc()
[all …]