Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f9cd22b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "wcnss: configure iris into cxo mode"

parents 4c7e85e3 dd814199
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -256,6 +256,18 @@ configure_iris_xo(struct device *dev,
				cpu_relax();

			iris_reg = readl_relaxed(iris_read_reg);
			pr_info("wcnss: IRIS Reg: %08x\n", iris_reg);
			if (iris_reg == PRONTO_IRIS_REG_CHIP_ID) {
				pr_info("wcnss: IRIS Card not Preset\n");
				auto_detect = WCNSS_XO_INVALID;
				/* Reset iris read bit */
				reg &= ~WCNSS_PMU_CFG_IRIS_XO_READ;
				/* Clear XO_MODE[b2:b1] bits.
				   Clear implies 19.2 MHz TCXO
				 */
				reg &= ~(WCNSS_PMU_CFG_IRIS_XO_MODE);
				goto xo_configure;
			}
			auto_detect = xo_auto_detect(iris_reg);

			/* Reset iris read bit */
@@ -278,6 +290,7 @@ configure_iris_xo(struct device *dev,
				*iris_xo_set = WCNSS_XO_48MHZ;
		}

xo_configure:
		writel_relaxed(reg, pmu_conf_reg);

		/* Reset IRIS */