aboutsummaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorChrister Weinigel <christer@weinigel.se>2008-07-07 18:12:46 +0100
committerBen Dooks <ben-linux@fluff.org>2008-07-07 18:13:04 +0100
commite43f238390168a13416d4f21803f76b1ff45fb95 (patch)
tree54e010041b9b610f2bcc08d0f16074fd2afb9f16 /arch/arm
parent9579087331ee0cd220d29aa5bda79ff55b33c228 (diff)
[ARM] Acer n30: LCD support.
This patch adds the configuration needed for the LCD display on the n30. Signed-off-by: Christer Weinigel <christer@weinigel.se> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-s3c2410/mach-n30.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/mach-n30.c b/arch/arm/mach-s3c2410/mach-n30.c
index 621b343adbe..476b15c089a 100644
--- a/arch/arm/mach-s3c2410/mach-n30.c
+++ b/arch/arm/mach-s3c2410/mach-n30.c
@@ -31,8 +31,10 @@
#include <asm/irq.h>
#include <asm/mach-types.h>
+#include <asm/arch/fb.h>
#include <asm/arch/leds-gpio.h>
#include <asm/arch/regs-gpio.h>
+#include <asm/arch/regs-lcd.h>
#include <asm/mach/arch.h>
#include <asm/mach/irq.h>
@@ -290,6 +292,31 @@ static struct platform_device n30_warning_led = {
},
};
+static struct s3c2410fb_display n30_display __initdata = {
+ .type = S3C2410_LCDCON1_TFT,
+ .width = 240,
+ .height = 320,
+ .pixclock = 170000,
+ .xres = 240,
+ .yres = 320,
+ .bpp = 16,
+ .left_margin = 3,
+ .right_margin = 40,
+ .hsync_len = 40,
+ .upper_margin = 2,
+ .lower_margin = 3,
+ .vsync_len = 2,
+
+ .lcdcon5 = S3C2410_LCDCON5_INVVLINE | S3C2410_LCDCON5_INVVFRAME,
+};
+
+static struct s3c2410fb_mach_info n30_fb_info __initdata = {
+ .displays = &n30_display,
+ .num_displays = 1,
+ .default_display = 0,
+ .lpcsel= 0x06,
+};
+
static struct platform_device *n30_devices[] __initdata = {
&s3c_device_lcd,
&s3c_device_wdt,
@@ -334,6 +361,7 @@ static void __init n30_init_irq(void)
static void __init n30_init(void)
{
+ s3c24xx_fb_set_platdata(&n30_fb_info);
s3c_device_i2c.dev.platform_data = &n30_i2ccfg;
s3c24xx_udc_set_platdata(&n30_udc_cfg);