diff options
Diffstat (limited to 'firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c')
-rw-r--r-- | firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c index 6bdee395c0..f157b552e4 100644 --- a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c +++ b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include "system.h" | 31 | #include "system.h" |
32 | #include "font.h" | 32 | #include "font.h" |
33 | #include "bidi.h" | 33 | #include "bidi.h" |
34 | #include "clock-target.h" | ||
34 | 35 | ||
35 | static bool display_on = false; /* is the display turned on? */ | 36 | static bool display_on = false; /* is the display turned on? */ |
36 | static bool display_flipped = false; | 37 | static bool display_flipped = false; |
@@ -94,7 +95,7 @@ static void lcd_delay(int x) | |||
94 | /* DBOP initialisation, do what OF does */ | 95 | /* DBOP initialisation, do what OF does */ |
95 | static void ams3525_dbop_init(void) | 96 | static void ams3525_dbop_init(void) |
96 | { | 97 | { |
97 | CGU_DBOP = (1<<3) | (3-1); | 98 | CGU_DBOP = (1<<3) | CLK_DIV(AS3525_PCLK_FREQ, AS3525_DBOP_FREQ); |
98 | 99 | ||
99 | DBOP_TIMPOL_01 = 0xe167e167; | 100 | DBOP_TIMPOL_01 = 0xe167e167; |
100 | DBOP_TIMPOL_23 = 0xe167006e; | 101 | DBOP_TIMPOL_23 = 0xe167006e; |