Re: [PATCH v2] iio: exynos-adc: add experimental touchscreen support

2014-07-27 Thread Heiko Stübner
Am Sonntag, 27. Juli 2014, 23:10:21 schrieb Hartmut Knaack: > Arnd Bergmann schrieb: > > @@ -205,6 +217,9 @@ static void exynos_adc_v1_init_hw(struct exynos_adc > > *info)> > > /* Enable 12-bit ADC resolution */ > > con1 |= ADC_V1_CON_RES; > > writel(con1, ADC_V1_CON(info->regs)); > >

Re: [PATCH v2] iio: exynos-adc: add experimental touchscreen support

2014-07-27 Thread Hartmut Knaack
Arnd Bergmann schrieb: > This adds support for the touchscreen on Samsung s3c64xx. > The driver is completely untested but shows roughly how > it could be done, following the example of the at91 driver. > > Open questions include: > > - compared to the old plat-samsung/adc driver, there is > no s

Re: [PATCH v2] iio: exynos-adc: add experimental touchscreen support

2014-07-22 Thread Arnd Bergmann
On Tuesday 22 July 2014 11:09:04 Dmitry Torokhov wrote: > > @@ -565,6 +722,15 @@ static int exynos_adc_probe(struct platform_device > > *pdev) > > if (info->data->init_hw) > > info->data->init_hw(info); > > > > + /* leave out any TS related code if unreachable */ > > +

Re: [PATCH v2] iio: exynos-adc: add experimental touchscreen support

2014-07-22 Thread Dmitry Torokhov
On Tue, Jul 22, 2014 at 03:03:12PM +0200, Arnd Bergmann wrote: > This adds support for the touchscreen on Samsung s3c64xx. > The driver is completely untested but shows roughly how > it could be done, following the example of the at91 driver. > > Open questions include: > > - compared to the old

Re: [PATCH v2] iio: exynos-adc: add experimental touchscreen support

2014-07-22 Thread Varka Bhadram
On Tuesday 22 July 2014 06:33 PM, Arnd Bergmann wrote: (...) +static int exynos_read_s3c64xx_ts(struct iio_dev *indio_dev, int *x, int *y) +{ + struct exynos_adc *info = iio_priv(indio_dev); + unsigned long timeout; + int ret; + + mutex_lock(&indio_dev->mlock); +

[PATCH v2] iio: exynos-adc: add experimental touchscreen support

2014-07-22 Thread Arnd Bergmann
This adds support for the touchscreen on Samsung s3c64xx. The driver is completely untested but shows roughly how it could be done, following the example of the at91 driver. Open questions include: - compared to the old plat-samsung/adc driver, there is no support for prioritizing ts over other