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

Commit e179ac0f authored by Mark Brown's avatar Mark Brown Committed by Ben Dooks
Browse files

ARM: S3C64XX: Set rate of crystal mux



The current code assumes that the external clock mux will be set to
the crystal. Set this up explicitly within the clock API.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent e73486b8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -677,6 +677,9 @@ void __init_or_cpufreq s3c6400_setup_clocks(void)

	printk(KERN_DEBUG "%s: xtal is %ld\n", __func__, xtal);

	/* For now assume the mux always selects the crystal */
	clk_ext_xtal_mux.parent = xtal_clk;

	epll = s3c6400_get_epll(xtal);
	mpll = s3c6400_get_pll(xtal, __raw_readl(S3C_MPLL_CON));
	apll = s3c6400_get_pll(xtal, __raw_readl(S3C_APLL_CON));