From: Ajay Kumar Subject: [PATCH V4 5/6] ARM: S5P6440: Add LCD-LTE480 and enable Framebuffer support Date: Fri, 09 Sep 2011 14:01:40 -0400 Message-ID: <1315591301-17166-6-git-send-email-ajaykumar.rs@samsung.com> References: <1315591301-17166-1-git-send-email-ajaykumar.rs@samsung.com> Content-Transfer-Encoding: 7BIT Return-path: Received: from mailout2.samsung.com ([203.254.224.25]:64326 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933743Ab1IIMB5 (ORCPT ); Fri, 9 Sep 2011 08:01:57 -0400 Received: from epcpsbgm2.samsung.com (mailout2.samsung.com [203.254.224.25]) by mailout2.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LR9008NT831ABY0@mailout2.samsung.com> for linux-samsung-soc@vger.kernel.org; Fri, 09 Sep 2011 21:01:56 +0900 (KST) Received: from localhost.localdomain ([107.108.73.106]) by mmp2.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LR900IDU82TO1@mmp2.samsung.com> for linux-samsung-soc@vger.kernel.org; Fri, 09 Sep 2011 21:01:56 +0900 (KST) In-reply-to: <1315591301-17166-1-git-send-email-ajaykumar.rs@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org List-Id: linux-samsung-soc@vger.kernel.org To: kgene.kim@samsung.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jg1.han@samsung.com, m.szyprowski@samsung.com This patch: -- Adds platform device support for LCD-LTE480. -- Adds platform data for FB with win_mode and default_bpp. -- Enables FB device support and platform-lcd support. -- Adds SPCON settings for LCD. Signed-off-by: Ajay Kumar --- arch/arm/mach-s5p64x0/Kconfig | 2 + arch/arm/mach-s5p64x0/include/mach/regs-gpio.h | 4 + arch/arm/mach-s5p64x0/mach-smdk6440.c | 75 ++++++++++++++++++++++++ 3 files changed, 81 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-s5p64x0/Kconfig b/arch/arm/mach-s5p64x0/Kconfig index 7bec400..3adc4b8 100644 --- a/arch/arm/mach-s5p64x0/Kconfig +++ b/arch/arm/mach-s5p64x0/Kconfig @@ -37,6 +37,7 @@ config S5P64X0_SETUP_I2C1 config MACH_SMDK6440 bool "SMDK6440" select CPU_S5P6440 + select S3C_DEV_FB select S3C_DEV_I2C1 select S3C_DEV_RTC select S3C_DEV_WDT @@ -45,6 +46,7 @@ config MACH_SMDK6440 select SAMSUNG_DEV_BACKLIGHT select SAMSUNG_DEV_PWM select SAMSUNG_DEV_TS + select S5P64X0_SETUP_FB_24BPP select S5P64X0_SETUP_I2C1 help Machine support for the Samsung SMDK6440 diff --git a/arch/arm/mach-s5p64x0/include/mach/regs-gpio.h b/arch/arm/mach-s5p64x0/include/mach/regs-gpio.h index 6ce2547..88269ec 100644 --- a/arch/arm/mach-s5p64x0/include/mach/regs-gpio.h +++ b/arch/arm/mach-s5p64x0/include/mach/regs-gpio.h @@ -34,6 +34,10 @@ #define S5P6450_GPQ_BASE (S5P_VA_GPIO + 0x0180) #define S5P6450_GPS_BASE (S5P_VA_GPIO + 0x0300) +#define S5P64X0_SPCON0 (S5P_VA_GPIO + 0x1A0) +#define S5P64X0_SPCON0_LCD_SEL_MASK (0x3 << 0) +#define S5P64X0_SPCON0_LCD_SEL_RGB (0x1 << 0) + /* External interrupt control registers for group0 */ #define EINT0CON0_OFFSET (0x900) diff --git a/arch/arm/mach-s5p64x0/mach-smdk6440.c b/arch/arm/mach-s5p64x0/mach-smdk6440.c index 340f30f..03933d7 100644 --- a/arch/arm/mach-s5p64x0/mach-smdk6440.c +++ b/arch/arm/mach-s5p64x0/mach-smdk6440.c @@ -23,6 +23,9 @@ #include #include #include +#include + +#include