diff options
Diffstat (limited to 'firmware/target/arm/lcd-ssd1815.c')
-rw-r--r-- | firmware/target/arm/lcd-ssd1815.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/target/arm/lcd-ssd1815.c b/firmware/target/arm/lcd-ssd1815.c index e9b6bff579..6bbad19ff8 100644 --- a/firmware/target/arm/lcd-ssd1815.c +++ b/firmware/target/arm/lcd-ssd1815.c | |||
@@ -102,9 +102,7 @@ void lcd_write_data(const fb_data* p_bytes, int count) | |||
102 | 102 | ||
103 | static inline void ams3525_dbop_init(void) | 103 | static inline void ams3525_dbop_init(void) |
104 | { | 104 | { |
105 | int clkdiv = 4 - 1; | 105 | CGU_DBOP |= (1<<3) /* clk enable */ | (3 - 1) /* clkdiv: 3 bits */ ; |
106 | |||
107 | CGU_DBOP |= (1<<3) /* clk enable */ | clkdiv /* clkdiv: 3 bits */ ; | ||
108 | 106 | ||
109 | GPIOB_AFSEL = 0x0f; /* DBOP on pin 3:0 */ | 107 | GPIOB_AFSEL = 0x0f; /* DBOP on pin 3:0 */ |
110 | GPIOC_AFSEL = 0xff; /* DBOP on pins 7:0 */ | 108 | GPIOC_AFSEL = 0xff; /* DBOP on pins 7:0 */ |