Commit a46091c1 authored by 薛德章's avatar 薛德章

software reset for aic32

This patch run a software reset before start to program the
registers. it's also used to allow full reset of the audio
settings on soft reboot.
parent 2eaa4a30
...@@ -1101,6 +1101,12 @@ static inline void aic32_configure() ...@@ -1101,6 +1101,12 @@ static inline void aic32_configure()
/* Page select register */ /* Page select register */
audio_aic32_write(PAGE_SELECT_REG, PAGE0); audio_aic32_write(PAGE_SELECT_REG, PAGE0);
/* Self clearing aic32 software reset */
audio_aic32_write(SOFT_RESET_REG, SELF_CLEAR_SOFT_RESET);
/* wait for reset to complete */
mdelay(100);
davinci_set_mono_stereo(aic32_local.nochan); davinci_set_mono_stereo(aic32_local.nochan);
#ifdef AIC32_MASTER #ifdef AIC32_MASTER
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment