From: Maurus Cuelenaere <mcuelenaere@gmail.com>
To: Ben Dooks <ben-linux@fluff.org>
Cc: linux-samsung-soc@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-input@vger.kernel.org
Subject: Re: [PATCH 5/7] ARM: S3C64XX: Add s3c64xx support to touchscreen driver
Date: Mon, 08 Mar 2010 21:04:58 +0100 [thread overview]
Message-ID: <4B95586A.2080806@gmail.com> (raw)
In-Reply-To: <20100308200126.GH24864@trinity.fluff.org>
Op 08-03-10 21:01, Ben Dooks schreef:
> On Mon, Mar 08, 2010 at 07:38:59PM +0100, Maurus Cuelenaere wrote:
>
>> This ack's the extra interrupt s3c64xx platforms have in the touchscreen driver.
>>
> This acks, no need for an ' here.
>
> You'd have been better off sayinh:
>
> Add support for the S3C64XX touchscreen to the s3c2410_ts driver, ensuring
> it compiles and supports the extra features such as the interrupt generation.
>
Ok, should I resend this?
>> Signed-off-by: Maurus Cuelenaere<mcuelenaere@gmail.com>
>> ---
>> drivers/input/touchscreen/Kconfig | 6 +++---
>> drivers/input/touchscreen/s3c2410_ts.c | 26 ++++++++++++++++++++++----
>> 2 files changed, 25 insertions(+), 7 deletions(-)
>>
>> diff --git a/drivers/input/touchscreen/Kconfig
>> b/drivers/input/touchscreen/Kconfig
>> index dfafc76..0378b3d 100644
>> --- a/drivers/input/touchscreen/Kconfig
>> +++ b/drivers/input/touchscreen/Kconfig
>> @@ -146,11 +146,11 @@ config TOUCHSCREEN_FUJITSU
>> module will be called fujitsu-ts.
>>
>> config TOUCHSCREEN_S3C2410
>> - tristate "Samsung S3C2410 touchscreen input driver"
>> - depends on ARCH_S3C2410
>> + tristate "Samsung S3C touchscreen input driver"
>> + depends on ARCH_S3C2410 || ARCH_S3C64XX
>> select S3C24XX_ADC
>> help
>> - Say Y here if you have the s3c2410 touchscreen.
>> + Say Y here if you have the s3c touchscreen.
>>
>> If unsure, say N.
>>
>> diff --git a/drivers/input/touchscreen/s3c2410_ts.c
>> b/drivers/input/touchscreen/s3c2410_ts.c
>> index 0cd0ca6..04c990e 100644
>> --- a/drivers/input/touchscreen/s3c2410_ts.c
>> +++ b/drivers/input/touchscreen/s3c2410_ts.c
>> @@ -40,7 +40,9 @@
>> #include<plat/regs-adc.h>
>> #include<plat/ts.h>
>>
>>
> ^[OA> +#ifdef PLAT_S3C24XX
>
>> #include<mach/regs-gpio.h>
>> +#endif
>>
> hmm, does this correct a compile error?
>
It does, this has been mentioned in a previous version of this patch.
Last time I checked, this file wasn't available for S3C64xx targets.
Also, see below.
>> #define TSC_SLEEP (S3C2410_ADCTSC_PULL_UP_DISABLE | S3C2410_ADCTSC_XY_PST(0))
>>
>> @@ -88,6 +90,12 @@ struct s3c2410ts {
>>
>> static struct s3c2410ts ts;
>>
>> +enum s3c_cpu_type {
>> + TYPE_S3C2410,
>> + TYPE_S3C2440,
>> + TYPE_S3C64XX,
>> +};
>> +
>> /**
>> * s3c2410_ts_connect - configure gpio for s3c2410 systems
>> *
>> @@ -97,10 +105,12 @@ static struct s3c2410ts ts;
>> */
>> static inline void s3c2410_ts_connect(void)
>> {
>> +#ifdef PLAT_S3C24XX
>> s3c2410_gpio_cfgpin(S3C2410_GPG(12), S3C2410_GPG12_XMON);
>> s3c2410_gpio_cfgpin(S3C2410_GPG(13), S3C2410_GPG13_nXPON);
>> s3c2410_gpio_cfgpin(S3C2410_GPG(14), S3C2410_GPG14_YMON);
>> s3c2410_gpio_cfgpin(S3C2410_GPG(15), S3C2410_GPG15_nYPON);
>> +#endif
>> }
The s3c2410_gpio_cfgpin() and S3C2410_* aren't defined for S3C64xx builds.
--
Maurus Cuelenaere
prev parent reply other threads:[~2010-03-08 20:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-08 18:38 [PATCH 5/7] ARM: S3C64XX: Add s3c64xx support to touchscreen driver Maurus Cuelenaere
2010-03-08 20:01 ` Ben Dooks
2010-03-08 20:04 ` Maurus Cuelenaere [this message]
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=4B95586A.2080806@gmail.com \
--to=mcuelenaere@gmail.com \
--cc=ben-linux@fluff.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.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).