Lines Matching refs:ccm_anatop
145 struct mxc_ccm_anatop_reg *ccm_anatop = (struct mxc_ccm_anatop_reg *) in read_cpu_temperature() local
166 writel(TEMPMON_HW_ANADIG_TEMPSENSE1_POWER_DOWN_MASK, &ccm_anatop->tempsense1_clr); in read_cpu_temperature()
167 writel(PMU_REF_REFTOP_SELFBIASOFF_MASK, &ccm_anatop->ref_set); in read_cpu_temperature()
170 reg = readl(&ccm_anatop->tempsense1); in read_cpu_temperature()
173 writel(reg, &ccm_anatop->tempsense1); in read_cpu_temperature()
175 writel(TEMPMON_HW_ANADIG_TEMPSENSE1_MEASURE_TEMP_MASK, &ccm_anatop->tempsense1_clr); in read_cpu_temperature()
176 writel(TEMPMON_HW_ANADIG_TEMPSENSE1_FINISHED_MASK, &ccm_anatop->tempsense1_clr); in read_cpu_temperature()
177 writel(TEMPMON_HW_ANADIG_TEMPSENSE1_MEASURE_TEMP_MASK, &ccm_anatop->tempsense1_set); in read_cpu_temperature()
180 while ((readl(&ccm_anatop->tempsense1) & in read_cpu_temperature()
183 reg = readl(&ccm_anatop->tempsense1); in read_cpu_temperature()
194 reg = readl(&ccm_anatop->tempsense1); in read_cpu_temperature()
199 writel(TEMPMON_HW_ANADIG_TEMPSENSE1_FINISHED_MASK, &ccm_anatop->tempsense1_clr); in read_cpu_temperature()
202 writel(TEMPMON_HW_ANADIG_TEMPSENSE1_POWER_DOWN_MASK, &ccm_anatop->tempsense1_set); in read_cpu_temperature()
203 writel(PMU_REF_REFTOP_SELFBIASOFF_MASK, &ccm_anatop->ref_clr); in read_cpu_temperature()