summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/samsungypr/lcd-target.h
diff options
context:
space:
mode:
authorLorenzo Miori <memorys60@gmail.com>2013-03-06 22:24:40 +0100
committerThomas Martitz <kugel@rockbox.org>2013-03-06 23:23:52 +0100
commit2f9e3cae2c567185a501f4e2a301665452a83350 (patch)
treed7f13e767bd794d6157d50aeb3d68383dc25a137 /firmware/target/hosted/samsungypr/lcd-target.h
parent8ef8ea2da2fb800832293054dd41be342f77764d (diff)
downloadrockbox-2f9e3cae2c567185a501f4e2a301665452a83350.tar.gz
rockbox-2f9e3cae2c567185a501f4e2a301665452a83350.zip
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 <kugel@rockbox.org>
Diffstat (limited to 'firmware/target/hosted/samsungypr/lcd-target.h')
-rw-r--r--firmware/target/hosted/samsungypr/lcd-target.h5
1 files changed, 4 insertions, 1 deletions
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 @@
22 22
23extern fb_data *dev_fb; 23extern fb_data *dev_fb;
24#define LCD_FRAMEBUF_ADDR(col, row) (dev_fb + row*LCD_WIDTH + col) 24#define LCD_FRAMEBUF_ADDR(col, row) (dev_fb + row*LCD_WIDTH + col)
25 25#ifdef HAVE_LCD_ENABLE
26extern void lcd_set_active(bool active);
27extern void lcd_enable(bool enable);
28#endif
26#endif 29#endif