diff options
Diffstat (limited to 'arch/arm/mach-s3c2410/mach-amlm5900.c')
-rw-r--r-- | arch/arm/mach-s3c2410/mach-amlm5900.c | 49 |
1 files changed, 21 insertions, 28 deletions
diff --git a/arch/arm/mach-s3c2410/mach-amlm5900.c b/arch/arm/mach-s3c2410/mach-amlm5900.c index 43bb5e106302..19469340af04 100644 --- a/arch/arm/mach-s3c2410/mach-amlm5900.c +++ b/arch/arm/mach-s3c2410/mach-amlm5900.c | |||
@@ -168,13 +168,32 @@ static void __init amlm5900_map_io(void) | |||
168 | } | 168 | } |
169 | 169 | ||
170 | #ifdef CONFIG_FB_S3C2410 | 170 | #ifdef CONFIG_FB_S3C2410 |
171 | static struct s3c2410fb_mach_info __initdata amlm5900_lcd_info = { | 171 | static struct s3c2410fb_display __initdata amlm5900_lcd_info = { |
172 | .width = 160, | 172 | .width = 160, |
173 | .height = 160, | 173 | .height = 160, |
174 | 174 | ||
175 | /* commented out until stn patch is submitted | 175 | /* commented out until stn patch is submitted |
176 | * .type = S3C2410_LCDCON1_STN4, | 176 | * .type = S3C2410_LCDCON1_STN4, |
177 | */ | 177 | */ |
178 | .xres = 160, | ||
179 | .yres = 160, | ||
180 | .bpp = 4, | ||
181 | |||
182 | .regs = { | ||
183 | .lcdcon1 = 0x00008225, | ||
184 | .lcdcon2 = 0x0027c000, | ||
185 | .lcdcon3 = 0x00182708, | ||
186 | .lcdcon4 = 0x00000002, | ||
187 | .lcdcon5 = 0x00000001, | ||
188 | } | ||
189 | }; | ||
190 | |||
191 | static struct s3c2410fb_mach_info __initdata amlm5900_fb_info = { | ||
192 | |||
193 | .displays = &amlm5900_lcd_info, | ||
194 | .num_displays = 1, | ||
195 | .default_display = 0, | ||
196 | |||
178 | .gpccon = 0xaaaaaaaa, | 197 | .gpccon = 0xaaaaaaaa, |
179 | .gpccon_mask = 0xffffffff, | 198 | .gpccon_mask = 0xffffffff, |
180 | .gpcup = 0x0000ffff, | 199 | .gpcup = 0x0000ffff, |
@@ -184,32 +203,6 @@ static struct s3c2410fb_mach_info __initdata amlm5900_lcd_info = { | |||
184 | .gpdcon_mask = 0xffffffff, | 203 | .gpdcon_mask = 0xffffffff, |
185 | .gpdup = 0x0000ffff, | 204 | .gpdup = 0x0000ffff, |
186 | .gpdup_mask = 0xffffffff, | 205 | .gpdup_mask = 0xffffffff, |
187 | |||
188 | .xres = { | ||
189 | .min = 160, | ||
190 | .max = 160, | ||
191 | .defval = 160, | ||
192 | }, | ||
193 | |||
194 | .yres = { | ||
195 | .min = 160, | ||
196 | .max = 160, | ||
197 | .defval = 160, | ||
198 | }, | ||
199 | |||
200 | .bpp = { | ||
201 | .min = 4, | ||
202 | .max = 4, | ||
203 | .defval = 4, | ||
204 | }, | ||
205 | |||
206 | .regs = { | ||
207 | .lcdcon1 = 0x00008225, | ||
208 | .lcdcon2 = 0x0027c000, | ||
209 | .lcdcon3 = 0x00182708, | ||
210 | .lcdcon4 = 0x00000002, | ||
211 | .lcdcon5 = 0x00000001, | ||
212 | } | ||
213 | }; | 206 | }; |
214 | #endif | 207 | #endif |
215 | 208 | ||
@@ -239,7 +232,7 @@ static void __init amlm5900_init(void) | |||
239 | { | 232 | { |
240 | amlm5900_init_pm(); | 233 | amlm5900_init_pm(); |
241 | #ifdef CONFIG_FB_S3C2410 | 234 | #ifdef CONFIG_FB_S3C2410 |
242 | s3c24xx_fb_set_platdata(&amlm5900_lcd_info); | 235 | s3c24xx_fb_set_platdata(&amlm5900_fb_info); |
243 | #endif | 236 | #endif |
244 | platform_add_devices(amlm5900_devices, ARRAY_SIZE(amlm5900_devices)); | 237 | platform_add_devices(amlm5900_devices, ARRAY_SIZE(amlm5900_devices)); |
245 | } | 238 | } |