linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Jiri.Pinkava@vscht.cz (Jiří Pinkava)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/6] n30: Add touchscreen support for Ace n35
Date: Mon, 4 Oct 2010 02:31:00 +0200	[thread overview]
Message-ID: <4CA92044.9010902@vscht.cz> (raw)
In-Reply-To: <4CA91FF7.7020908@vscht.cz>


Signed-off-by: Jiri Pinkava <jiri.pinkava@vscht.cz>
---
  arch/arm/mach-s3c2410/Kconfig    |    1 +
  arch/arm/mach-s3c2410/mach-n30.c |   13 +++++++++++++
  2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-s3c2410/Kconfig b/arch/arm/mach-s3c2410/Kconfig
index 7245a55..1d55349 100644
--- a/arch/arm/mach-s3c2410/Kconfig
+++ b/arch/arm/mach-s3c2410/Kconfig
@@ -100,6 +100,7 @@ config MACH_N30
  	select MACH_N35
  	select S3C_DEV_USB_HOST
  	select S3C_DEV_NAND
+	select S3C2410_SETUP_TS
  	help
  	  Say Y here if you want suppt for the Acer N30, Acer N35,
  	  Navman PiN570, Yakumo AlphaX or Airis NC05 PDAs.
diff --git a/arch/arm/mach-s3c2410/mach-n30.c 
b/arch/arm/mach-s3c2410/mach-n30.c
index ecc039a..be5235d 100644
--- a/arch/arm/mach-s3c2410/mach-n30.c
+++ b/arch/arm/mach-s3c2410/mach-n30.c
@@ -49,6 +49,7 @@
  #include <plat/devs.h>
  #include <plat/mci.h>
  #include <plat/s3c2410.h>
+#include <plat/ts.h>
  #include <plat/udc.h>

  static struct map_desc n30_iodesc[] __initdata = {
@@ -116,6 +117,13 @@ static struct s3c2410_udc_mach_info n30_udc_cfg 
__initdata = {
  	.vbus_pin_inverted	= 0,
  };

+static struct s3c2410_ts_mach_info n30_ts_cfg __initdata = {
+	.delay = 16383,
+	.presc = 49,
+	.oversampling_shift = 3,
+	.cfg_gpio = s3c24xx_ts_cfg_gpio,
+};
+
  static struct gpio_keys_button n30_buttons[] = {
  	{
  		.gpio		= S3C2410_GPF(0),
@@ -391,6 +399,8 @@ static struct platform_device *n30_devices[] 
__initdata = {
  	&s3c_device_rtc,
  	&s3c_device_usbgadget,
  	&s3c_device_sdi,
+	&s3c_device_adc,
+	&s3c_device_ts,
  	&n30_button_device,
  	&n30_blue_led,
  	&n30_warning_led,
@@ -404,6 +414,8 @@ static struct platform_device *n35_devices[] 
__initdata = {
  	&s3c_device_rtc,
  	&s3c_device_usbgadget,
  	&s3c_device_sdi,
+	&s3c_device_adc,
+	&s3c_device_ts,
  	&n35_button_device,
  	&n35_blue_led,
  	&n35_warning_led,
@@ -566,6 +578,7 @@ static void __init n30_init(void)
  	WARN_ON(gpio_request(S3C2410_GPG(4), "mmc power"));

  	s3c24xx_fb_set_platdata(&n30_fb_info);
+	s3c24xx_ts_set_platdata(&n30_ts_cfg);
  	s3c24xx_udc_set_platdata(&n30_udc_cfg);
  	s3c24xx_mci_set_platdata(&n30_mci_cfg);
  	s3c_i2c0_set_platdata(&n30_i2ccfg);
-- 
1.7.3.1

  reply	other threads:[~2010-10-04  0:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-04  0:23 [PATCH 0/6] - Acer n35 fixes and features Jiří Pinkava
2010-10-04  0:24 ` [PATCH 1/6] n35: fix key codes and types Jiří Pinkava
2010-10-04  0:25   ` [PATCH 2/6] n35: Update GPIO documentation for Acer n35 Jiří Pinkava
2010-10-04  0:26     ` PATCH 3/6] n30: Clean up UARTs configuration Jiří Pinkava
2010-10-04  0:29       ` [PATCH 4/6] n30: Fix MMC power management Jiří Pinkava
2010-10-04  0:31         ` Jiří Pinkava [this message]
2010-10-04  0:32           ` [PATCH 6/6] n35: Add LCD backlight regulation Jiří Pinkava
2010-10-10 23:38   ` [PATCH 1/6] n35: fix key codes and types Ben Dooks
2010-10-13  7:49     ` Jiří Pinkava
2010-10-06 22:25 ` [PATCH 0/6] - Acer n35 fixes and features Ben Dooks
2010-10-10 23:43 ` Ben Dooks
2010-10-13  7:56 ` [PATCH 1/6] n35: fix key codes Jiri.Pinkava at vscht.cz
2010-10-13  7:56 ` [PATCH 2/6] n35: Update GPIO documentation for Acer n35 Jiri.Pinkava at vscht.cz
2010-10-13  7:56 ` [PATCH 3/6] n30: Clean up UARTs configuration Jiri.Pinkava at vscht.cz
2010-10-13  7:56 ` [PATCH 4/6] n30: Fix MMC power management on Acer n30 / n35 Jiri.Pinkava at vscht.cz
2010-10-13  7:56 ` [PATCH 5/6] n30: Add touchscreen support for " Jiri.Pinkava at vscht.cz
2010-10-13  7:56 ` [PATCH 6/6] n35: Add LCD backlight regulation on Acer n35 Jiri.Pinkava at vscht.cz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CA92044.9010902@vscht.cz \
    --to=jiri.pinkava@vscht.cz \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).