diff options
Diffstat (limited to 'arch/arm/mach-s5pv210/mach-goni.c')
| -rw-r--r-- | arch/arm/mach-s5pv210/mach-goni.c | 37 | 
1 files changed, 23 insertions, 14 deletions
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c index f20a97c8e41..822a5595068 100644 --- a/arch/arm/mach-s5pv210/mach-goni.c +++ b/arch/arm/mach-s5pv210/mach-goni.c @@ -107,25 +107,29 @@ static struct s3c2410_uartcfg goni_uartcfgs[] __initdata = {  /* Frame Buffer */  static struct s3c_fb_pd_win goni_fb_win0 = { -	.win_mode = { -		.left_margin	= 16, -		.right_margin	= 16, -		.upper_margin	= 2, -		.lower_margin	= 28, -		.hsync_len	= 2, -		.vsync_len	= 1, -		.xres		= 480, -		.yres		= 800, -		.refresh	= 55, -	},  	.max_bpp	= 32,  	.default_bpp	= 16, +	.xres		= 480, +	.yres		= 800,  	.virtual_x	= 480,  	.virtual_y	= 2 * 800,  }; +static struct fb_videomode goni_lcd_timing = { +	.left_margin	= 16, +	.right_margin	= 16, +	.upper_margin	= 2, +	.lower_margin	= 28, +	.hsync_len	= 2, +	.vsync_len	= 1, +	.xres		= 480, +	.yres		= 800, +	.refresh	= 55, +}; +  static struct s3c_fb_platdata goni_lcd_pdata __initdata = {  	.win[0]		= &goni_fb_win0, +	.vtiming	= &goni_lcd_timing,  	.vidcon0	= VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB |  			  VIDCON0_CLKSEL_LCD,  	.vidcon1	= VIDCON1_INV_VCLK | VIDCON1_INV_VDEN @@ -855,12 +859,19 @@ static struct s5p_platform_fimc goni_fimc_md_platdata __initdata = {  	.num_clients	= ARRAY_SIZE(goni_camera_sensors),  }; +/* Audio device */ +static struct platform_device goni_device_audio = { +	.name = "smdk-audio", +	.id = -1, +}; +  static struct platform_device *goni_devices[] __initdata = {  	&s3c_device_fb,  	&s5p_device_onenand,  	&goni_spi_gpio,  	&goni_i2c_gpio_pmic,  	&goni_i2c_gpio5, +	&goni_device_audio,  	&mmc2_fixed_voltage,  	&goni_device_gpiokeys,  	&s5p_device_mfc, @@ -897,7 +908,7 @@ static void __init goni_sound_init(void)  static void __init goni_map_io(void)  {  	s5pv210_init_io(NULL, 0); -	s3c24xx_init_clocks(24000000); +	s3c24xx_init_clocks(clk_xusbxti.rate);  	s3c24xx_init_uarts(goni_uartcfgs, ARRAY_SIZE(goni_uartcfgs));  	s5p_set_timer_source(S5P_PWM3, S5P_PWM4);  } @@ -955,8 +966,6 @@ static void __init goni_machine_init(void)  	/* KEYPAD */  	samsung_keypad_set_platdata(&keypad_data); -	clk_xusbxti.rate = 24000000; -  	platform_add_devices(goni_devices, ARRAY_SIZE(goni_devices));  }  |