SAMA5 WM8904: Fix errors in programmable clock output configuration

This commit is contained in:
Gregory Nutt
2014-08-01 15:18:58 -06:00
parent 3bd90f8c74
commit 83dab03576
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ void sam_sckc_enable(bool enable)
regval |= SCKC_CR_OSC32EN;
putreg32(regval, SAM_SCKC_CR);
/* Wait 5 slow clock cycles for clock stabilization */
/* Wait for 32,768 XTAL start-up time */
up_udelay(5 * USEC_PER_SEC / BOARD_SLOWCLK_FREQUENCY);
+2 -2
View File
@@ -276,12 +276,12 @@ int sam_wm8904_initialize(int minor)
goto errout_with_i2s;
}
/* Configure the DAC master clock. This clock is provided by PCK2 (PB10)
/* Configure the DAC master clock. This clock is provided by PCK0 (PD30)
* that is connected to the WM8904 MCLK.
*/
sam_sckc_enable(true);
(void)sam_pck_configure(PCK2, PCKSRC_SCK, BOARD_SLOWCLK_FREQUENCY);
(void)sam_pck_configure(PCK0, PCKSRC_SCK, BOARD_SLOWCLK_FREQUENCY);
/* Enable the DAC master clock */
+1 -1
View File
@@ -285,7 +285,7 @@ int sam_wm8904_initialize(int minor)
/* Enable the DAC master clock */
sam_pck_enable(PCK0, true);
sam_pck_enable(PCK2, true);
/* Configure WM8904 interrupts */