diff options
author | Simon Glass <sjg@chromium.org> | 2018-12-27 13:24:39 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-02-09 12:50:22 -0700 |
commit | afcd64579486e1745a3cb964bfe36267d90b4c3e (patch) | |
tree | e3727fc25888dd90b2cbcc2fe2e385213e21bcdd /drivers/sound/samsung_sound.c | |
parent | f0b02f3dd674783b02ee18e1c841b47c294318f7 (diff) |
sound: Allow audio codecs to be used by other SoCs
At present there is still some samsung-specific code in the audio codecs.
Remove it so that these can be used by other SoCs.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/sound/samsung_sound.c')
-rw-r--r-- | drivers/sound/samsung_sound.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/sound/samsung_sound.c b/drivers/sound/samsung_sound.c index 84064ebd0f..b6952675bd 100644 --- a/drivers/sound/samsung_sound.c +++ b/drivers/sound/samsung_sound.c @@ -10,6 +10,7 @@ #include <i2s.h> #include <sound.h> #include <asm/gpio.h> +#include <asm/arch/power.h> static int samsung_sound_setup(struct udevice *dev) { @@ -79,6 +80,9 @@ static int samsung_sound_probe(struct udevice *dev) debug("Probed sound '%s' with codec '%s' and i2s '%s'\n", dev->name, uc_priv->codec->name, uc_priv->i2s->name); + /* Enable codec clock */ + set_xclkout(); + return 0; } |