aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2410/mach-n30.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-s3c2410/mach-n30.c')
-rw-r--r--arch/arm/mach-s3c2410/mach-n30.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/arch/arm/mach-s3c2410/mach-n30.c b/arch/arm/mach-s3c2410/mach-n30.c
index 450d10823f83..43c2e915c5bf 100644
--- a/arch/arm/mach-s3c2410/mach-n30.c
+++ b/arch/arm/mach-s3c2410/mach-n30.c
@@ -84,18 +84,17 @@ static struct s3c2410_uartcfg n30_uartcfgs[] = {
84 84
85static void n30_udc_pullup(enum s3c2410_udc_cmd_e cmd) 85static void n30_udc_pullup(enum s3c2410_udc_cmd_e cmd)
86{ 86{
87 switch (cmd) 87 switch (cmd) {
88 { 88 case S3C2410_UDC_P_ENABLE :
89 case S3C2410_UDC_P_ENABLE : 89 s3c2410_gpio_setpin(S3C2410_GPB3, 1);
90 s3c2410_gpio_setpin(S3C2410_GPB3, 1); 90 break;
91 break; 91 case S3C2410_UDC_P_DISABLE :
92 case S3C2410_UDC_P_DISABLE : 92 s3c2410_gpio_setpin(S3C2410_GPB3, 0);
93 s3c2410_gpio_setpin(S3C2410_GPB3, 0); 93 break;
94 break; 94 case S3C2410_UDC_P_RESET :
95 case S3C2410_UDC_P_RESET : 95 break;
96 break; 96 default:
97 default: 97 break;
98 break;
99 } 98 }
100} 99}
101 100
@@ -293,28 +292,29 @@ static struct platform_device n30_warning_led = {
293}; 292};
294 293
295static struct s3c2410fb_display n30_display __initdata = { 294static struct s3c2410fb_display n30_display __initdata = {
296 .type = S3C2410_LCDCON1_TFT, 295 .type = S3C2410_LCDCON1_TFT,
297 .width = 240, 296 .width = 240,
298 .height = 320, 297 .height = 320,
299 .pixclock = 170000, 298 .pixclock = 170000,
300 .xres = 240, 299
301 .yres = 320, 300 .xres = 240,
302 .bpp = 16, 301 .yres = 320,
303 .left_margin = 3, 302 .bpp = 16,
304 .right_margin = 40, 303 .left_margin = 3,
305 .hsync_len = 40, 304 .right_margin = 40,
306 .upper_margin = 2, 305 .hsync_len = 40,
307 .lower_margin = 3, 306 .upper_margin = 2,
308 .vsync_len = 2, 307 .lower_margin = 3,
308 .vsync_len = 2,
309 309
310 .lcdcon5 = S3C2410_LCDCON5_INVVLINE | S3C2410_LCDCON5_INVVFRAME, 310 .lcdcon5 = S3C2410_LCDCON5_INVVLINE | S3C2410_LCDCON5_INVVFRAME,
311}; 311};
312 312
313static struct s3c2410fb_mach_info n30_fb_info __initdata = { 313static struct s3c2410fb_mach_info n30_fb_info __initdata = {
314 .displays = &n30_display, 314 .displays = &n30_display,
315 .num_displays = 1, 315 .num_displays = 1,
316 .default_display = 0, 316 .default_display = 0,
317 .lpcsel= 0x06, 317 .lpcsel = 0x06,
318}; 318};
319 319
320static struct platform_device *n30_devices[] __initdata = { 320static struct platform_device *n30_devices[] __initdata = {