mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
rk27xx: lcdif refactoring: make lcdif-rk27xx.c more generic
iomux_lcd now has parameter for display bit mode settings, so we doesn't need ifdef here. lcd_init_device moved to target specific code lcdif_init configure pins and lcd cotroller Change-Id: I3a2d7fd38b08fe3bc5ebefa8c9f7288c21f58212 Reviewed-on: http://gerrit.rockbox.org/153 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com> Tested-by: Marcin Bukat <marcin.bukat@gmail.com>
This commit is contained in:
parent
4601a8b44a
commit
b069562ef4
4 changed files with 27 additions and 11 deletions
|
|
@ -1,11 +1,16 @@
|
|||
#ifndef _LCDIF_RK27XX_H
|
||||
#define _LCDIF_RK27XX_H
|
||||
|
||||
enum lcdif_mode_t {
|
||||
LCDIF_16BIT,
|
||||
LCDIF_18BIT
|
||||
};
|
||||
|
||||
unsigned int lcd_data_transform(unsigned int data);
|
||||
|
||||
void lcd_cmd(unsigned int cmd);
|
||||
void lcd_data(unsigned int data);
|
||||
void lcd_write_reg(unsigned int reg, unsigned int val);
|
||||
void lcd_display_init(void);
|
||||
void lcdif_init(enum lcdif_mode_t mode);
|
||||
|
||||
#endif /* _LCDIF_RK27XX_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue