Go to the documentation of this file.
9 #ifndef _ASM_SH_SH7760FB_H
10 #define _ASM_SH_SH7760FB_H
16 #define SH7760FB_PALETTE_MASK 0x00f8fcf8
19 #define SH7760FB_DMA_MASK 0x0C000000
22 #define LDPR(x) (((x) << 2))
29 #define LDDFR_PABD (1 << 8)
30 #define LDDFR_COLOR_MASK 0x7F
32 #define LDSMR_ROT (1 << 13)
37 #define LDPALCR_PALS (1 << 4)
38 #define LDPALCR_PALEN (1 << 0)
49 #define LDCNTR_DON (1 << 0)
50 #define LDCNTR_DON2 (1 << 4)
52 #ifdef CONFIG_CPU_SUBTYPE_SH7763
53 # define LDLIRNR 0x440
55 # define LDINTR_MINTEN (1 << 15)
56 # define LDINTR_FINTEN (1 << 14)
57 # define LDINTR_VSINTEN (1 << 13)
58 # define LDINTR_VEINTEN (1 << 12)
59 # define LDINTR_MINTS (1 << 11)
60 # define LDINTR_FINTS (1 << 10)
61 # define LDINTR_VSINTS (1 << 9)
62 # define LDINTR_VEINTS (1 << 8)
63 # define VINT_START (LDINTR_VSINTEN)
64 # define VINT_CHECK (LDINTR_VSINTS)
67 # define LDINTR_VINTSEL (1 << 12)
68 # define LDINTR_VINTE (1 << 8)
69 # define LDINTR_VINTS (1 << 0)
70 # define VINT_START (LDINTR_VINTSEL)
71 # define VINT_CHECK (LDINTR_VINTS)
75 #define LDMTR_FLMPOL (1 << 15)
78 #define LDMTR_CL1POL (1 << 14)
81 #define LDMTR_DISPEN_LOWACT (1 << 13)
84 #define LDMTR_DPOL_LOWACT (1 << 12)
87 #define LDMTR_MCNT (1 << 10)
90 #define LDMTR_CL1CNT (1 << 9)
93 #define LDMTR_CL2CNT (1 << 8)
96 #define LDMTR_STN_MONO_4 0x00
97 #define LDMTR_STN_MONO_8 0x01
98 #define LDMTR_STN_COLOR_4 0x08
99 #define LDMTR_STN_COLOR_8 0x09
100 #define LDMTR_STN_COLOR_12 0x0A
101 #define LDMTR_STN_COLOR_16 0x0B
102 #define LDMTR_DSTN_MONO_8 0x11
103 #define LDMTR_DSTN_MONO_16 0x13
104 #define LDMTR_DSTN_COLOR_8 0x19
105 #define LDMTR_DSTN_COLOR_12 0x1A
106 #define LDMTR_DSTN_COLOR_16 0x1B
107 #define LDMTR_TFT_COLOR_16 0x2B
110 #define LDDFR_1BPP_MONO 0x00
111 #define LDDFR_2BPP_MONO 0x01
112 #define LDDFR_4BPP_MONO 0x02
113 #define LDDFR_6BPP_MONO 0x04
114 #define LDDFR_4BPP 0x0A
115 #define LDDFR_8BPP 0x0C
116 #define LDDFR_16BPP_RGB555 0x1D
117 #define LDDFR_16BPP_RGB565 0x2D
120 #define LCDC_CLKSRC_BUSCLOCK 0
121 #define LCDC_CLKSRC_PERIPHERAL 1
122 #define LCDC_CLKSRC_EXTERNAL 2
124 #define LDICKR_CLKSRC(x) \
128 #define LDICKR_CLKDIV(x) \