mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
SAMA5 WM8904: Fix errors in programmable clock output configuration
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user