84134f737f
Use DMA engine for fullscreen updates and bypass mode for partial
updates. This gives major boost on rk27generic:
default ARM:AHB:APB 200💯50
HEAD 1/1: 26.3fps 1/4: 105.0fps
patched 1/1: 116.5fps 1/4: 249.5fps
with freq scalling NORMAL mode ARM:AHB:APB 50:50:50
HEAD 1/1: 13.1fps 1/4: 52.5fps
patched 1/1: 54.5fps 1/4: 119.0fps
Tested on rk27generic noname DAP and on Hifimans.
Change-Id: Id9dd4d2d61542c7ea6b5c6336b170d6357cefde9
17 lines
391 B
C
17 lines
391 B
C
#ifndef _LCDIF_RK27XX_H
|
|
#define _LCDIF_RK27XX_H
|
|
|
|
enum lcdif_mode_t {
|
|
LCDIF_16BIT,
|
|
LCDIF_18BIT
|
|
};
|
|
|
|
void lcd_cmd(unsigned int cmd);
|
|
void lcd_data(unsigned int data);
|
|
void lcd_write_reg(unsigned int reg, unsigned int val);
|
|
void lcdctrl_bypass(unsigned int on_off);
|
|
void lcd_display_init(void);
|
|
|
|
void lcd_set_gram_area(int x, int y, int width, int height);
|
|
|
|
#endif /* _LCDIF_RK27XX_H */
|