blob: 1082668a93169972794d48ff39e076c4f0a12fb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
/****************************************************************************
****************************************************************************
***
*** This header was automatically generated from a Linux kernel header
*** of the same name, to make information necessary for userspace to
*** call into the kernel available to libc. It contains only constants,
*** structures, and macros generated from the original header, and thus,
*** contains no copyrightable information.
***
****************************************************************************
****************************************************************************/
#ifndef _ASM_SH_SH7760FB_H
#define _ASM_SH_SH7760FB_H
#define SH7760FB_PALETTE_MASK 0x00f8fcf8
#define SH7760FB_DMA_MASK 0x0C000000
#define LDPR(x) (((x) << 2))
#define LDICKR 0x400
#define LDMTR 0x402
#define LDDFR 0x404
#define LDDFR_PABD (1 << 8)
#define LDDFR_COLOR_MASK 0x7F
#define LDSMR 0x406
#define LDSMR_ROT (1 << 13)
#define LDSARU 0x408
#define LDSARL 0x40c
#define LDLAOR 0x410
#define LDPALCR 0x412
#define LDPALCR_PALS (1 << 4)
#define LDPALCR_PALEN (1 << 0)
#define LDHCNR 0x414
#define LDHSYNR 0x416
#define LDVDLNR 0x418
#define LDVTLNR 0x41a
#define LDVSYNR 0x41c
#define LDACLNR 0x41e
#define LDINTR 0x420
#define LDPMMR 0x424
#define LDPSPR 0x426
#define LDCNTR 0x428
#define LDCNTR_DON (1 << 0)
#define LDCNTR_DON2 (1 << 4)
#define LDINTR_VINTSEL (1 << 12)
#define LDINTR_VINTE (1 << 8)
#define LDINTR_VINTS (1 << 0)
#define VINT_START (LDINTR_VINTSEL)
#define VINT_CHECK (LDINTR_VINTS)
#define LDMTR_FLMPOL (1 << 15)
#define LDMTR_CL1POL (1 << 14)
#define LDMTR_DISPEN_LOWACT (1 << 13)
#define LDMTR_DPOL_LOWACT (1 << 12)
#define LDMTR_MCNT (1 << 10)
#define LDMTR_CL1CNT (1 << 9)
#define LDMTR_CL2CNT (1 << 8)
#define LDMTR_STN_MONO_4 0x00
#define LDMTR_STN_MONO_8 0x01
#define LDMTR_STN_COLOR_4 0x08
#define LDMTR_STN_COLOR_8 0x09
#define LDMTR_STN_COLOR_12 0x0A
#define LDMTR_STN_COLOR_16 0x0B
#define LDMTR_DSTN_MONO_8 0x11
#define LDMTR_DSTN_MONO_16 0x13
#define LDMTR_DSTN_COLOR_8 0x19
#define LDMTR_DSTN_COLOR_12 0x1A
#define LDMTR_DSTN_COLOR_16 0x1B
#define LDMTR_TFT_COLOR_16 0x2B
#define LDDFR_1BPP_MONO 0x00
#define LDDFR_2BPP_MONO 0x01
#define LDDFR_4BPP_MONO 0x02
#define LDDFR_6BPP_MONO 0x04
#define LDDFR_4BPP 0x0A
#define LDDFR_8BPP 0x0C
#define LDDFR_16BPP_RGB555 0x1D
#define LDDFR_16BPP_RGB565 0x2D
#define LCDC_CLKSRC_BUSCLOCK 0
#define LCDC_CLKSRC_PERIPHERAL 1
#define LCDC_CLKSRC_EXTERNAL 2
#define LDICKR_CLKSRC(x) (((x) & 3) << 12)
#define LDICKR_CLKDIV(x) ((x) & 0x1f)
struct sh7760fb_platdata {
struct fb_videomode *def_mode;
u16 ldmtr;
u16 lddfr;
u16 ldpmmr;
u16 ldpspr;
u16 ldaclnr;
u16 ldickr;
int rotate;
int novsync;
void (*blank) (int);
};
#endif
|