blob: 836895156b5b6220ca25a41300313a2a8f2a1f1a [file] [log] [blame]
Michael Hennerich9cfe4a92009-12-15 16:46:21 -08001/*
2 * Blackfin LCD Framebuffer driver SHARP LQ035Q1DH02
3 *
4 * Copyright 2008-2009 Analog Devices Inc.
5 * Licensed under the GPL-2 or later.
6 */
7
8#ifndef BFIN_LQ035Q1_H
9#define BFIN_LQ035Q1_H
10
Michael Hennerichd94a1aa2009-12-08 11:45:55 +000011/*
12 * LCD Modes
13 */
Michael Hennerich9cfe4a92009-12-15 16:46:21 -080014#define LQ035_RL (0 << 8) /* Right -> Left Scan */
15#define LQ035_LR (1 << 8) /* Left -> Right Scan */
16#define LQ035_TB (1 << 9) /* Top -> Botton Scan */
17#define LQ035_BT (0 << 9) /* Botton -> Top Scan */
18#define LQ035_BGR (1 << 11) /* Use BGR format */
19#define LQ035_RGB (0 << 11) /* Use RGB format */
20#define LQ035_NORM (1 << 13) /* Reversal */
21#define LQ035_REV (0 << 13) /* Reversal */
22
Michael Hennerichd94a1aa2009-12-08 11:45:55 +000023/*
24 * PPI Modes
25 */
26
27#define USE_RGB565_16_BIT_PPI 1
28#define USE_RGB565_8_BIT_PPI 2
29#define USE_RGB888_8_BIT_PPI 3
30
Michael Hennerich9cfe4a92009-12-15 16:46:21 -080031struct bfin_lq035q1fb_disp_info {
32
33 unsigned mode;
Michael Hennerichd94a1aa2009-12-08 11:45:55 +000034 unsigned ppi_mode;
Michael Hennerich9cfe4a92009-12-15 16:46:21 -080035 /* GPIOs */
36 int use_bl;
37 unsigned gpio_bl;
38};
39
40#endif /* BFIN_LQ035Q1_H */