From 2f9e3cae2c567185a501f4e2a301665452a83350 Mon Sep 17 00:00:00 2001 From: Lorenzo Miori Date: Wed, 6 Mar 2013 22:24:40 +0100 Subject: Samsung YP-R0 LCD improvements This patch adds to YP-R0 (and other future targets using Linux framebuffer) the ability to use LCD_ENABLE to save some CPU cycles while display is powered off. This patch also changes the way to toggle LCD power: now using a proper ioctl call, slightly more efficient. Change-Id: I544de77f5abd4ac1c13d3fe3a6e40a30f7c0bece Reviewed-on: http://gerrit.rockbox.org/410 Reviewed-by: Thomas Martitz --- firmware/target/hosted/samsungypr/lcd-target.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'firmware/target/hosted/samsungypr/lcd-target.h') diff --git a/firmware/target/hosted/samsungypr/lcd-target.h b/firmware/target/hosted/samsungypr/lcd-target.h index c8a6de74f9..900350eca2 100644 --- a/firmware/target/hosted/samsungypr/lcd-target.h +++ b/firmware/target/hosted/samsungypr/lcd-target.h @@ -22,5 +22,8 @@ extern fb_data *dev_fb; #define LCD_FRAMEBUF_ADDR(col, row) (dev_fb + row*LCD_WIDTH + col) - +#ifdef HAVE_LCD_ENABLE +extern void lcd_set_active(bool active); +extern void lcd_enable(bool enable); +#endif #endif -- cgit v1.2.3