aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2440/mach-at2440evb.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-s3c2440/mach-at2440evb.c')
-rw-r--r--arch/arm/mach-s3c2440/mach-at2440evb.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2440/mach-at2440evb.c b/arch/arm/mach-s3c2440/mach-at2440evb.c
index 8c6596eef162..4539b1d95877 100644
--- a/arch/arm/mach-s3c2440/mach-at2440evb.c
+++ b/arch/arm/mach-s3c2440/mach-at2440evb.c
@@ -28,6 +28,7 @@
28#include <asm/mach/irq.h> 28#include <asm/mach/irq.h>
29 29
30#include <mach/hardware.h> 30#include <mach/hardware.h>
31#include <mach/fb.h>
31#include <asm/irq.h> 32#include <asm/irq.h>
32#include <asm/mach-types.h> 33#include <asm/mach-types.h>
33 34
@@ -167,6 +168,39 @@ static struct s3c24xx_mci_pdata at2440evb_mci_pdata = {
167 .gpio_detect = S3C2410_GPG10, 168 .gpio_detect = S3C2410_GPG10,
168}; 169};
169 170
171/* 7" LCD panel */
172
173static struct s3c2410fb_display at2440evb_lcd_cfg __initdata = {
174
175 .lcdcon5 = S3C2410_LCDCON5_FRM565 |
176 S3C2410_LCDCON5_INVVLINE |
177 S3C2410_LCDCON5_INVVFRAME |
178 S3C2410_LCDCON5_PWREN |
179 S3C2410_LCDCON5_HWSWP,
180
181 .type = S3C2410_LCDCON1_TFT,
182
183 .width = 800,
184 .height = 480,
185
186 .pixclock = 33333, /* HCLK 60 MHz, divisor 2 */
187 .xres = 800,
188 .yres = 480,
189 .bpp = 16,
190 .left_margin = 88,
191 .right_margin = 40,
192 .hsync_len = 128,
193 .upper_margin = 32,
194 .lower_margin = 11,
195 .vsync_len = 2,
196};
197
198static struct s3c2410fb_mach_info at2440evb_fb_info __initdata = {
199 .displays = &at2440evb_lcd_cfg,
200 .num_displays = 1,
201 .default_display = 0,
202};
203
170static struct platform_device *at2440evb_devices[] __initdata = { 204static struct platform_device *at2440evb_devices[] __initdata = {
171 &s3c_device_usb, 205 &s3c_device_usb,
172 &s3c_device_wdt, 206 &s3c_device_wdt,
@@ -175,6 +209,7 @@ static struct platform_device *at2440evb_devices[] __initdata = {
175 &s3c_device_rtc, 209 &s3c_device_rtc,
176 &s3c_device_nand, 210 &s3c_device_nand,
177 &s3c_device_sdi, 211 &s3c_device_sdi,
212 &s3c_device_lcd,
178 &at2440evb_device_eth, 213 &at2440evb_device_eth,
179}; 214};
180 215
@@ -191,6 +226,7 @@ static void __init at2440evb_map_io(void)
191 226
192static void __init at2440evb_init(void) 227static void __init at2440evb_init(void)
193{ 228{
229 s3c24xx_fb_set_platdata(&at2440evb_fb_info);
194 platform_add_devices(at2440evb_devices, ARRAY_SIZE(at2440evb_devices)); 230 platform_add_devices(at2440evb_devices, ARRAY_SIZE(at2440evb_devices));
195} 231}
196 232