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

Commit 00983895 authored by Chris Rattray's avatar Chris Rattray Committed by Mark Brown
Browse files

ASoC: wm2200: Set system clock control register is adsp structs



Allows ADSP control code to set the dsp clock rate to match the
sys clock rate.

Signed-off-by: default avatarChris Rattray <crattray@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 908a5741
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2224,6 +2224,9 @@ static int wm2200_i2c_probe(struct i2c_client *i2c,
		wm2200->dsp[i].num = i + 1;
		wm2200->dsp[i].dev = &i2c->dev;
		wm2200->dsp[i].regmap = wm2200->regmap;
		wm2200->dsp[i].sysclk_reg = WM2200_CLOCKING_3;
		wm2200->dsp[i].sysclk_mask = WM2200_SYSCLK_FREQ_MASK;
		wm2200->dsp[i].sysclk_shift =  WM2200_SYSCLK_FREQ_SHIFT;
	}

	wm2200->dsp[0].base = WM2200_DSP1_CONTROL_1;