From: kgene.kim@samsung.com (Kukjin Kim) Date: Wed, 07 Sep 2011 16:06:52 +0900 Subject: [PATCH V3 5/7] ARM: S5P64X0: Add file to hold common Framebuffer and LCD code In-Reply-To: <1311787878-16193-6-git-send-email-ajaykumar.rs@samsung.com> References: <1311787878-16193-1-git-send-email-ajaykumar.rs@samsung.com> <1311787878-16193-6-git-send-email-ajaykumar.rs@samsung.com> Message-ID: <000a01cc6d2c$b8529430$28f7bc90$%kim@samsung.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Ajay Kumar wrote: > > This patch creates a file which holds the framebuffer and > LCD code which is common for SMDK6440 and SMDK6450. > It mainly includes: > -- Basic FB window definition. > -- platform data for FB and LCD. > -- platform_device support for LCD. > > Signed-off-by: Ajay Kumar > --- > arch/arm/mach-s5p64x0/Kconfig | 5 + > arch/arm/mach-s5p64x0/Makefile | 3 + > .../mach-s5p64x0/include/mach/smdk64x0-common-fb.h | 26 ++++++ > arch/arm/mach-s5p64x0/smdk64x0-common-fb.c | 92 > ++++++++++++++++++++ > 4 files changed, 126 insertions(+), 0 deletions(-) > create mode 100644 arch/arm/mach-s5p64x0/include/mach/smdk64x0-common- > fb.h > create mode 100644 arch/arm/mach-s5p64x0/smdk64x0-common-fb.c > > diff --git a/arch/arm/mach-s5p64x0/Kconfig b/arch/arm/mach-s5p64x0/Kconfig > index 4fee745..00d5873 100644 > --- a/arch/arm/mach-s5p64x0/Kconfig > +++ b/arch/arm/mach-s5p64x0/Kconfig > @@ -32,6 +32,11 @@ config S5P64X0_SETUP_I2C1 > help > Common setup code for i2c bus 1. > > +config SMDK64X0_COMMON_FB > + bool > + help > + Common framebuffer and LCD code which can be shared across SMDKs. > + > # machine support > > config MACH_SMDK6440 > diff --git a/arch/arm/mach-s5p64x0/Makefile b/arch/arm/mach-s5p64x0/Makefile > index 487d179..d09d81b 100644 > --- a/arch/arm/mach-s5p64x0/Makefile > +++ b/arch/arm/mach-s5p64x0/Makefile > @@ -22,6 +22,9 @@ obj-$(CONFIG_CPU_S5P6450) += clock-s5p6450.o > obj-$(CONFIG_MACH_SMDK6440) += mach-smdk6440.o > obj-$(CONFIG_MACH_SMDK6450) += mach-smdk6450.o > > +#common code > +obj-$(CONFIG_SMDK64X0_COMMON_FB) += smdk64x0-common-fb.o > + > # device support > > obj-y += dev-audio.o > diff --git a/arch/arm/mach-s5p64x0/include/mach/smdk64x0-common-fb.h > b/arch/arm/mach-s5p64x0/include/mach/smdk64x0-common-fb.h > new file mode 100644 > index 0000000..e3b87b9 > --- /dev/null > +++ b/arch/arm/mach-s5p64x0/include/mach/smdk64x0-common-fb.h > @@ -0,0 +1,26 @@ > +/* linux/arch/arm/mach-s5p64x0/include/mach/smdk64x0-common-fb.h > + * > + * Copyright (c) 2011 Samsung Electronics Co., Ltd. > + * http://www.samsung.com/ > + * > + * Includes declarations for variables and functions > + * needed in order to support framebuffer. > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > +*/ > + > +#include > +#include > + > +#include