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:
Mark Arigo 2009-07-01 02:18:49 +00:00
parent d12df3a50e
commit 4093874f80
4 changed files with 262 additions and 36 deletions

View file

@ -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;