diff options
author | Ben Dooks <ben-linux@fluff.org> | 2010-08-10 21:02:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-11 11:59:10 -0400 |
commit | bc2da1b6fb1a8af9a3226a4f5db3ce32a0a192c9 (patch) | |
tree | b49de2f909dbafb516e8c00570f7fc2ced1ab8c8 /arch/arm/plat-samsung | |
parent | c4bb6ffa7754e8d0f8b24decd91de259b549fda1 (diff) |
s3c-fb: integrate palette setup code into main driver
Remove the palette setup code from the header files and put it into the
main driver.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Pawel Osciak <p.osciak@samsung.com>
Cc: InKi Dae <inki.dae@samsung.com>
Cc: KyungMin Park <kyungmin.park.samsung.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm/plat-samsung')
-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 |