diff options
Diffstat (limited to 'firmware/target/arm/lcd-ssd1815.c')
-rw-r--r-- | firmware/target/arm/lcd-ssd1815.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/lcd-ssd1815.c b/firmware/target/arm/lcd-ssd1815.c index 6bbad19ff8..35d8cf2275 100644 --- a/firmware/target/arm/lcd-ssd1815.c +++ b/firmware/target/arm/lcd-ssd1815.c | |||
@@ -71,6 +71,7 @@ | |||
71 | 71 | ||
72 | #if CONFIG_CPU == AS3525 | 72 | #if CONFIG_CPU == AS3525 |
73 | #include "as3525.h" | 73 | #include "as3525.h" |
74 | #include "clock-target.h" | ||
74 | 75 | ||
75 | void lcd_write_command(int byte) | 76 | void lcd_write_command(int byte) |
76 | { | 77 | { |
@@ -102,7 +103,7 @@ void lcd_write_data(const fb_data* p_bytes, int count) | |||
102 | 103 | ||
103 | static inline void ams3525_dbop_init(void) | 104 | static inline void ams3525_dbop_init(void) |
104 | { | 105 | { |
105 | CGU_DBOP |= (1<<3) /* clk enable */ | (3 - 1) /* clkdiv: 3 bits */ ; | 106 | CGU_DBOP |= (1<<3) | CLK_DIV(AS3525_PCLK_FREQ, AS3525_DBOP_FREQ); |
106 | 107 | ||
107 | GPIOB_AFSEL = 0x0f; /* DBOP on pin 3:0 */ | 108 | GPIOB_AFSEL = 0x0f; /* DBOP on pin 3:0 */ |
108 | GPIOC_AFSEL = 0xff; /* DBOP on pins 7:0 */ | 109 | GPIOC_AFSEL = 0xff; /* DBOP on pins 7:0 */ |