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
|
|
@ -31,6 +31,7 @@
|
|||
#include "system.h"
|
||||
#include "font.h"
|
||||
#include "bidi.h"
|
||||
#include "clock-target.h"
|
||||
|
||||
static bool display_on = false; /* is the display turned on? */
|
||||
static bool display_flipped = false;
|
||||
|
|
@ -94,7 +95,7 @@ static void lcd_delay(int x)
|
|||
/* DBOP initialisation, do what OF does */
|
||||
static void ams3525_dbop_init(void)
|
||||
{
|
||||
CGU_DBOP = (1<<3) | (3-1);
|
||||
CGU_DBOP = (1<<3) | CLK_DIV(AS3525_PCLK_FREQ, AS3525_DBOP_FREQ);
|
||||
|
||||
DBOP_TIMPOL_01 = 0xe167e167;
|
||||
DBOP_TIMPOL_23 = 0xe167006e;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue