diff options
Diffstat (limited to 'arch/arm/plat-samsung/include/plat/regs-fb-v4.h')
-rw-r--r-- | arch/arm/plat-samsung/include/plat/regs-fb-v4.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/arch/arm/plat-samsung/include/plat/regs-fb-v4.h b/arch/arm/plat-samsung/include/plat/regs-fb-v4.h index 8352f5dc8dfa..4c3647f80057 100644 --- a/arch/arm/plat-samsung/include/plat/regs-fb-v4.h +++ b/arch/arm/plat-samsung/include/plat/regs-fb-v4.h | |||
@@ -137,40 +137,6 @@ | |||
137 | #define WPALCON_W2PAL_16BPP_A555 (1 << 6) | 137 | #define WPALCON_W2PAL_16BPP_A555 (1 << 6) |
138 | 138 | ||
139 | 139 | ||
140 | /* system specific implementation code for palette sizes, and other | ||
141 | * information that changes depending on which architecture is being | ||
142 | * compiled. | ||
143 | */ | ||
144 | |||
145 | struct s3c_fb_palette { | ||
146 | struct fb_bitfield r; | ||
147 | struct fb_bitfield g; | ||
148 | struct fb_bitfield b; | ||
149 | struct fb_bitfield a; | ||
150 | }; | ||
151 | |||
152 | static inline void s3c_fb_init_palette(unsigned int window, | ||
153 | struct s3c_fb_palette *palette) | ||
154 | { | ||
155 | if (window < 2) { | ||
156 | /* Windows 0/1 are 8/8/8 or A/8/8/8 */ | ||
157 | palette->r.offset = 16; | ||
158 | palette->r.length = 8; | ||
159 | palette->g.offset = 8; | ||
160 | palette->g.length = 8; | ||
161 | palette->b.offset = 0; | ||
162 | palette->b.length = 8; | ||
163 | } else { | ||
164 | /* currently we assume RGB 5/6/5 */ | ||
165 | palette->r.offset = 11; | ||
166 | palette->r.length = 5; | ||
167 | palette->g.offset = 5; | ||
168 | palette->g.length = 6; | ||
169 | palette->b.offset = 0; | ||
170 | palette->b.length = 5; | ||
171 | } | ||
172 | } | ||
173 | |||
174 | /* Notes on per-window bpp settings | 140 | /* Notes on per-window bpp settings |
175 | * | 141 | * |
176 | * Value Win0 Win1 Win2 Win3 Win 4 | 142 | * Value Win0 Win1 Win2 Win3 Win 4 |