From: Kukjin Kim Subject: RE: [PATCH] ARM: Exynos4: enable frame buffer on Universal C210 board Date: Thu, 11 Aug 2011 20:04:45 +0900 Message-ID: <016e01cc5816$7c4ede10$74ec9a30$%kim@samsung.com> References: <1311666402-24199-1-git-send-email-m.szyprowski@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT Return-path: Received: from mailout1.samsung.com ([203.254.224.24]:60667 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752950Ab1HKLEu (ORCPT ); Thu, 11 Aug 2011 07:04:50 -0400 Received: from epcpsbgm2.samsung.com (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LPR0030PG40WR60@mailout1.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 11 Aug 2011 20:04:48 +0900 (KST) Received: from kgenekim ([12.23.119.139]) by mmp2.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LPR00CBRG40FI@mmp2.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 11 Aug 2011 20:04:48 +0900 (KST) In-reply-to: <1311666402-24199-1-git-send-email-m.szyprowski@samsung.com> Content-language: ko Sender: linux-samsung-soc-owner@vger.kernel.org List-Id: linux-samsung-soc@vger.kernel.org To: 'Marek Szyprowski' , linux-samsung-soc@vger.kernel.org Cc: 'Kyungmin Park' Marek Szyprowski wrote: > > This patch adds platform definitions to enable s3c-fb driver. > Framebuffer window with 480x800x16bpp mode has been defined. > > Signed-off-by: Marek Szyprowski > Signed-off-by: Kyungmin Park > --- > arch/arm/mach-exynos4/Kconfig | 2 + > arch/arm/mach-exynos4/mach-universal_c210.c | 34 > +++++++++++++++++++++++++++ > 2 files changed, 36 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/mach-exynos4/Kconfig b/arch/arm/mach-exynos4/Kconfig > index 9d62e13..5b01605 100644 > --- a/arch/arm/mach-exynos4/Kconfig > +++ b/arch/arm/mach-exynos4/Kconfig > @@ -178,6 +178,7 @@ config MACH_UNIVERSAL_C210 > select S5P_DEV_FIMC1 > select S5P_DEV_FIMC2 > select S5P_DEV_FIMC3 > + select S5P_DEV_FIMD0 > select S3C_DEV_HSMMC > select S3C_DEV_HSMMC2 > select S3C_DEV_HSMMC3 > @@ -187,6 +188,7 @@ config MACH_UNIVERSAL_C210 > select S5P_DEV_MFC > select S5P_DEV_ONENAND > select EXYNOS4_DEV_PD > + select EXYNOS4_SETUP_FIMD0 > select EXYNOS4_SETUP_I2C1 > select EXYNOS4_SETUP_I2C3 > select EXYNOS4_SETUP_I2C5 > diff --git a/arch/arm/mach-exynos4/mach-universal_c210.c b/arch/arm/mach- > exynos4/mach-universal_c210.c > index 0e280d1..307ef98 100644 > --- a/arch/arm/mach-exynos4/mach-universal_c210.c > +++ b/arch/arm/mach-exynos4/mach-universal_c210.c > @@ -13,6 +13,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -31,9 +32,11 @@ > #include > #include > #include > +#include > #include > #include > #include > +#include > > #include > > @@ -702,6 +705,32 @@ static struct i2c_board_info i2c1_devs[] __initdata = { > /* Gyro, To be updated */ > }; > > +/* Frame Buffer */ > +static struct s3c_fb_pd_win universal_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, > +}; > + > +static struct s3c_fb_platdata universal_lcd_pdata __initdata = { > + .win[0] = &universal_fb_win0, > + .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB | > + VIDCON0_CLKSEL_LCD, > + .vidcon1 = VIDCON1_INV_VCLK | VIDCON1_INV_VDEN > + | VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC, > + .setup_gpio = exynos4_fimd0_gpio_setup_24bpp, > +}; > + > static struct platform_device *universal_devices[] __initdata = { > /* Samsung Platform Devices */ > &s5p_device_fimc0, > @@ -719,10 +748,12 @@ static struct platform_device *universal_devices[] > __initdata = { > &i2c_gpio12, > &universal_gpio_keys, > &s5p_device_onenand, > + &s5p_device_fimd0, > &s5p_device_mfc, > &s5p_device_mfc_l, > &s5p_device_mfc_r, > &exynos4_device_pd[PD_MFC], > + &exynos4_device_pd[PD_LCD0], > }; > > static void __init universal_map_io(void) > @@ -751,6 +782,8 @@ static void __init universal_machine_init(void) > s3c_i2c5_set_platdata(NULL); > i2c_register_board_info(5, i2c5_devs, ARRAY_SIZE(i2c5_devs)); > > + s5p_fimd0_set_platdata(&universal_lcd_pdata); > + > universal_touchkey_init(); > i2c_register_board_info(I2C_GPIO_BUS_12, i2c_gpio12_devs, > ARRAY_SIZE(i2c_gpio12_devs)); > @@ -758,6 +791,7 @@ static void __init universal_machine_init(void) > /* Last */ > platform_add_devices(universal_devices, > ARRAY_SIZE(universal_devices)); > s5p_device_mfc.dev.parent = &exynos4_device_pd[PD_MFC].dev; > + s5p_device_fimd0.dev.parent = &exynos4_device_pd[PD_LCD0].dev; > } > > MACHINE_START(UNIVERSAL_C210, "UNIVERSAL_C210") > -- > 1.7.1.569.g6f426 OK, will apply. But I'm not sure we really need to add inclusion of in this file... Thanks. Best regards, Kgene. -- Kukjin Kim , Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.