mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Sansa AMS: centralize clock settings in clock-target.h
Reorder system_init() to initialize peripherals not only in bootloader Use a 65MHz PCLK (and memclk) which will be needed for realtime decoding git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19330 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7ea9e31658
commit
45711ac286
9 changed files with 98 additions and 24 deletions
|
|
@ -72,7 +72,7 @@ static void ams3525_dbop_init(void)
|
|||
{
|
||||
int clkdiv = 4 - 1;
|
||||
|
||||
CGU_DBOP |= (1<<3) /* clk enable */ | clkdiv /* clkdiv: 3 bits */ ;
|
||||
CGU_DBOP |= (1<<3) | CLK_DIV(AS3525_PCLK_FREQ, AS3525_DBOP_FREQ);
|
||||
|
||||
GPIOB_AFSEL = 0x08; /* DBOP on pin 3 */
|
||||
GPIOC_AFSEL = 0x0f; /* DBOP on pins 3:0 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue