diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-09-02 12:55:02 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-09-02 16:59:13 +0000 |
commit | f913829d06f706e0f7df3b791835edd41fc487c4 (patch) | |
tree | 6cb5ee38a3e6fcd4ea9fe334e848003c73b3f7ff /firmware/target/mips/ingenic_jz47xx/xduoo_x3/lcd-xduoo_x3.c | |
parent | 1a8939cc3d236bc143c8d31e9b46b4b763b95bbb (diff) | |
download | rockbox-f913829d06f706e0f7df3b791835edd41fc487c4.tar.gz rockbox-f913829d06f706e0f7df3b791835edd41fc487c4.zip |
xduoox3: Disable the LCD and MSC0 clocks as we don't use them
Change-Id: If2261aed464fcbe3ea1f036dd18376fa8ff42e69
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/xduoo_x3/lcd-xduoo_x3.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/xduoo_x3/lcd-xduoo_x3.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/xduoo_x3/lcd-xduoo_x3.c b/firmware/target/mips/ingenic_jz47xx/xduoo_x3/lcd-xduoo_x3.c index a7449f144d..0446fb2cce 100644 --- a/firmware/target/mips/ingenic_jz47xx/xduoo_x3/lcd-xduoo_x3.c +++ b/firmware/target/mips/ingenic_jz47xx/xduoo_x3/lcd-xduoo_x3.c | |||
@@ -118,6 +118,8 @@ void lcd_hw_init(void) | |||
118 | udelay(1); | 118 | udelay(1); |
119 | __gpio_set_pin(PIN_LCD_RES); | 119 | __gpio_set_pin(PIN_LCD_RES); |
120 | __gpio_clear_pin(PIN_LCD_CS); | 120 | __gpio_clear_pin(PIN_LCD_CS); |
121 | |||
122 | __cpm_stop_lcd(); /* We don't use the LCD controller */ | ||
121 | } | 123 | } |
122 | 124 | ||
123 | void lcd_write_command(int byte) | 125 | void lcd_write_command(int byte) |
@@ -167,7 +169,7 @@ int lcd_default_contrast(void) | |||
167 | void lcd_set_contrast(int val) | 169 | void lcd_set_contrast(int val) |
168 | { | 170 | { |
169 | static int last_val = 0xFFFFFF; | 171 | static int last_val = 0xFFFFFF; |
170 | 172 | ||
171 | if (val >= 0) /* brightness menu */ | 173 | if (val >= 0) /* brightness menu */ |
172 | { | 174 | { |
173 | lcd_write_command(LCD_CNTL_CONTRAST); | 175 | lcd_write_command(LCD_CNTL_CONTRAST); |
@@ -175,7 +177,7 @@ void lcd_set_contrast(int val) | |||
175 | } | 177 | } |
176 | else if (val != last_val) | 178 | else if (val != last_val) |
177 | { | 179 | { |
178 | /* here we change the voltage level and drive times | 180 | /* here we change the voltage level and drive times |
179 | * longer precharge = dimmer display | 181 | * longer precharge = dimmer display |
180 | * higher voltage = shorter precharge required | 182 | * higher voltage = shorter precharge required |
181 | */ | 183 | */ |