mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Philips SA9200. Add LCD features: enable, sleep, flip, contrast, and invert.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21583 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d12df3a50e
commit
4093874f80
4 changed files with 262 additions and 36 deletions
|
|
@ -26,6 +26,7 @@
|
|||
#include "as3514.h"
|
||||
#include "power.h"
|
||||
#include "synaptics-mep.h"
|
||||
#include "lcd.h"
|
||||
#include "logf.h"
|
||||
|
||||
void power_init(void)
|
||||
|
|
@ -72,6 +73,12 @@ void power_off(void)
|
|||
{
|
||||
char byte;
|
||||
|
||||
/* Backlight off */
|
||||
ascodec_write(AS3514_DCDC15, 0);
|
||||
|
||||
/* LCD off/sleep (otherwise the image slowly fades out) */
|
||||
lcd_sleep();
|
||||
|
||||
/* Send shutdown command to PMU */
|
||||
byte = ascodec_read(AS3514_SYSTEM);
|
||||
byte &= ~0x1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue