From: ben@trinity.fluff.org (Ben Dooks) Date: Thu, 20 May 2010 14:32:50 +0100 Subject: [PATCH] ARM: S3C6410: Add basic support for SmartQ machines In-Reply-To: <4BF50276.2060804@gmail.com> References: <4BF50276.2060804@gmail.com> Message-ID: <20100520133250.GQ4720@trinity.fluff.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, May 20, 2010 at 11:35:50AM +0200, Maurus Cuelenaere wrote: > This adds new machine definitions for the SmartQ 5 and 7. ok, merged. > Signed-off-by: Maurus Cuelenaere > --- > arch/arm/mach-s3c64xx/Kconfig | 31 +++ > arch/arm/mach-s3c64xx/Makefile | 3 + > arch/arm/mach-s3c64xx/mach-smartq.c | 363 ++++++++++++++++++++++++++++++++++ > arch/arm/mach-s3c64xx/mach-smartq.h | 20 ++ > arch/arm/mach-s3c64xx/mach-smartq5.c | 185 +++++++++++++++++ > arch/arm/mach-s3c64xx/mach-smartq7.c | 201 +++++++++++++++++++ > 6 files changed, 803 insertions(+), 0 deletions(-) > create mode 100644 arch/arm/mach-s3c64xx/mach-smartq.c > create mode 100644 arch/arm/mach-s3c64xx/mach-smartq.h > create mode 100644 arch/arm/mach-s3c64xx/mach-smartq5.c > create mode 100644 arch/arm/mach-s3c64xx/mach-smartq7.c > > diff --git a/arch/arm/mach-s3c64xx/Kconfig b/arch/arm/mach-s3c64xx/Kconfig > index 69e9fbf..ad32cf4 100644 > --- a/arch/arm/mach-s3c64xx/Kconfig > +++ b/arch/arm/mach-s3c64xx/Kconfig > @@ -179,3 +179,34 @@ config MACH_HMT > select HAVE_PWM > help > Machine support for the Airgoo HMT > + > +config MACH_SMARTQ > + bool > + select CPU_S3C6410 > + select S3C_DEV_HSMMC > + select S3C_DEV_HSMMC1 > + select S3C_DEV_HSMMC2 > + select S3C_DEV_FB > + select S3C_DEV_HWMON > + select S3C_DEV_RTC > + select S3C_DEV_USB_HSOTG > + select S3C_DEV_USB_HOST > + select S3C64XX_SETUP_SDHCI > + select S3C64XX_SETUP_FB_24BPP > + select SAMSUNG_DEV_ADC > + select SAMSUNG_DEV_TS > + select HAVE_PWM > + help > + Shared machine support for SmartQ 5/7 > + > +config MACH_SMARTQ5 > + bool "SmartQ 5" > + select MACH_SMARTQ > + help > + Machine support for the SmartQ 5 > + > +config MACH_SMARTQ7 > + bool "SmartQ 7" > + select MACH_SMARTQ > + help > + Machine support for the SmartQ 7 > diff --git a/arch/arm/mach-s3c64xx/Makefile b/arch/arm/mach-s3c64xx/Makefile > index a10f1fc..39ef55e 100644 > --- a/arch/arm/mach-s3c64xx/Makefile > +++ b/arch/arm/mach-s3c64xx/Makefile > @@ -52,6 +52,9 @@ obj-$(CONFIG_MACH_SMDK6400) += mach-smdk6400.o > obj-$(CONFIG_MACH_SMDK6410) += mach-smdk6410.o > obj-$(CONFIG_MACH_NCP) += mach-ncp.o > obj-$(CONFIG_MACH_HMT) += mach-hmt.o > +obj-$(CONFIG_MACH_SMARTQ) += mach-smartq.o > +obj-$(CONFIG_MACH_SMARTQ5) += mach-smartq5.o > +obj-$(CONFIG_MACH_SMARTQ7) += mach-smartq7.o > > # device support > > diff --git a/arch/arm/mach-s3c64xx/mach-smartq.c b/arch/arm/mach-s3c64xx/mach-smartq.c > new file mode 100644 > index 0000000..028d080 > --- /dev/null > +++ b/arch/arm/mach-s3c64xx/mach-smartq.c > @@ -0,0 +1,363 @@ > +/* > + * linux/arch/arm/mach-s3c64xx/mach-smartq.c > + * > + * Copyright (C) 2010 Maurus Cuelenaere > + * > + * 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 > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > + > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include