2009-12-15 17:46:21 -07:00
|
|
|
/*
|
|
|
|
* Blackfin LCD Framebuffer driver SHARP LQ035Q1DH02
|
|
|
|
*
|
|
|
|
* Copyright 2008-2009 Analog Devices Inc.
|
|
|
|
* Licensed under the GPL-2 or later.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BFIN_LQ035Q1_H
|
|
|
|
#define BFIN_LQ035Q1_H
|
|
|
|
|
2009-12-08 04:45:55 -07:00
|
|
|
/*
|
|
|
|
* LCD Modes
|
|
|
|
*/
|
2009-12-15 17:46:21 -07:00
|
|
|
#define LQ035_RL (0 << 8) /* Right -> Left Scan */
|
|
|
|
#define LQ035_LR (1 << 8) /* Left -> Right Scan */
|
|
|
|
#define LQ035_TB (1 << 9) /* Top -> Botton Scan */
|
|
|
|
#define LQ035_BT (0 << 9) /* Botton -> Top Scan */
|
|
|
|
#define LQ035_BGR (1 << 11) /* Use BGR format */
|
|
|
|
#define LQ035_RGB (0 << 11) /* Use RGB format */
|
|
|
|
#define LQ035_NORM (1 << 13) /* Reversal */
|
|
|
|
#define LQ035_REV (0 << 13) /* Reversal */
|
|
|
|
|
2009-12-08 04:45:55 -07:00
|
|
|
/*
|
|
|
|
* PPI Modes
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define USE_RGB565_16_BIT_PPI 1
|
|
|
|
#define USE_RGB565_8_BIT_PPI 2
|
|
|
|
#define USE_RGB888_8_BIT_PPI 3
|
|
|
|
|
2009-12-15 17:46:21 -07:00
|
|
|
struct bfin_lq035q1fb_disp_info {
|
|
|
|
|
|
|
|
unsigned mode;
|
2009-12-08 04:45:55 -07:00
|
|
|
unsigned ppi_mode;
|
2009-12-15 17:46:21 -07:00
|
|
|
/* GPIOs */
|
|
|
|
int use_bl;
|
|
|
|
unsigned gpio_bl;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* BFIN_LQ035Q1_H */
|