From 7b993187103c05aa87bca5393a17c3d737d2f160 Mon Sep 17 00:00:00 2001 From: Andrew Ryabinin Date: Sun, 15 Jan 2012 17:25:31 +0400 Subject: HiFiMAN: Implement lcd powersave mode. Change-Id: I0a22b436549047ac0c2f9e2c203cbe8b31cfc1cd --- firmware/target/arm/rk27xx/lcd-hifiman.c | 47 +++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 7 deletions(-) (limited to 'firmware/target/arm/rk27xx/lcd-hifiman.c') diff --git a/firmware/target/arm/rk27xx/lcd-hifiman.c b/firmware/target/arm/rk27xx/lcd-hifiman.c index 932154da8d..91e55894e5 100644 --- a/firmware/target/arm/rk27xx/lcd-hifiman.c +++ b/firmware/target/arm/rk27xx/lcd-hifiman.c @@ -27,12 +27,7 @@ #include "cpu.h" #include "lcdif-rk27xx.h" - -/* TODO */ -static void lcd_sleep(unsigned int sleep) -{ - (void)sleep; -} +static bool display_on = false; void lcd_display_init() { @@ -110,9 +105,47 @@ void lcd_display_init() for(y=0; y