mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -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
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include "cpu.h"
|
||||
#include "lcd.h"
|
||||
#include "clock-target.h"
|
||||
|
||||
/* The controller is unknown, but some registers appear to be the same as the
|
||||
HD66789R */
|
||||
|
|
@ -49,7 +50,8 @@ static void lcd_delay(int x)
|
|||
|
||||
static void as3525_dbop_init(void)
|
||||
{
|
||||
CGU_DBOP = (1<<3);
|
||||
CGU_DBOP = (1<<3) | CLK_DIV(AS3525_PCLK_FREQ, AS3525_DBOP_FREQ);
|
||||
|
||||
DBOP_TIMPOL_01 = 0xe167e167;
|
||||
DBOP_TIMPOL_23 = 0xe167006e;
|
||||
DBOP_CTRL = 0x41008;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue