mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
FS#10273 : Power Sansa Clip screen for some models needing as3514's DCDC15
No battery life loss for models not needing it git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21207 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d5842005c0
commit
f8a8619615
1 changed files with 9 additions and 1 deletions
|
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
/*** AS3525 specifics ***/
|
/*** AS3525 specifics ***/
|
||||||
#include "as3525.h"
|
#include "as3525.h"
|
||||||
|
#include "ascodec.h"
|
||||||
|
|
||||||
/*** definitions ***/
|
/*** definitions ***/
|
||||||
|
|
||||||
|
|
@ -167,11 +168,18 @@ void lcd_enable(bool enable)
|
||||||
|
|
||||||
if( (display_on = enable) ) /* simple '=' is not a typo ! */
|
if( (display_on = enable) ) /* simple '=' is not a typo ! */
|
||||||
{
|
{
|
||||||
|
/* Enable DC-DC AS3525 for some Clip v1 that need it */
|
||||||
|
ascodec_write(AS3514_DCDC15, 1);
|
||||||
|
|
||||||
lcd_write_command(LCD_SET_DISPLAY_ON);
|
lcd_write_command(LCD_SET_DISPLAY_ON);
|
||||||
lcd_activation_call_hook();
|
lcd_activation_call_hook();
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
lcd_write_command(LCD_SET_DISPLAY_OFF);
|
lcd_write_command(LCD_SET_DISPLAY_OFF);
|
||||||
|
|
||||||
|
/* Disable DC-DC AS3525 */
|
||||||
|
ascodec_write(AS3514_DCDC15, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool lcd_active(void)
|
bool lcd_active(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue