diff options
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuze')
-rw-r--r-- | firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c index cc61a82c6f..76b74b7c3e 100644 --- a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c +++ b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include "cpu.h" | 25 | #include "cpu.h" |
26 | #include "lcd.h" | 26 | #include "lcd.h" |
27 | #include "clock-target.h" | ||
27 | 28 | ||
28 | /* The controller is unknown, but some registers appear to be the same as the | 29 | /* The controller is unknown, but some registers appear to be the same as the |
29 | HD66789R */ | 30 | HD66789R */ |
@@ -49,7 +50,8 @@ static void lcd_delay(int x) | |||
49 | 50 | ||
50 | static void as3525_dbop_init(void) | 51 | static void as3525_dbop_init(void) |
51 | { | 52 | { |
52 | CGU_DBOP = (1<<3); | 53 | CGU_DBOP = (1<<3) | CLK_DIV(AS3525_PCLK_FREQ, AS3525_DBOP_FREQ); |
54 | |||
53 | DBOP_TIMPOL_01 = 0xe167e167; | 55 | DBOP_TIMPOL_01 = 0xe167e167; |
54 | DBOP_TIMPOL_23 = 0xe167006e; | 56 | DBOP_TIMPOL_23 = 0xe167006e; |
55 | DBOP_CTRL = 0x41008; | 57 | DBOP_CTRL = 0x41008; |