Agptek Rocker: Implement lcd_enable()

In theory this should slightly improve battery life.

Change-Id: Iaf55beb7dbc20e7562017958aeb0386459d49a31
This commit is contained in:
Marcin Bukat 2018-06-14 10:03:07 +02:00
parent 755b824596
commit 5c015ada90
4 changed files with 34 additions and 2 deletions

View file

@ -21,6 +21,10 @@
#ifndef __LCD_TARGET_H__
#define __LCD_TARGET_H__
extern fb_data *framebuffer; /* see lcd-nwz.c */
/* Agptek needs special ioctl() to redraw updated framebuffer content */
#define LCD_OPTIMIZED_UPDATE
#define LCD_OPTIMIZED_UPDATE_RECT
extern fb_data *framebuffer; /* see lcd-agptek.c */
#define LCD_FRAMEBUF_ADDR(col, row) (framebuffer + (row)*LCD_WIDTH + (col))
#endif /* __LCD_TARGET_H__ */