ads7846ts_ssp elaborated, was: Re: new patch

From: Paul Sokolovsky <pmiscml_at_gmail.com>
Date: Fri, 9 Feb 2007 04:13:03 +0200

Hello Pierre,

Saturday, February 3, 2007, 2:01:51 AM, you wrote:

> Hi,

> you will find attached a new X50 patch.
> It is mainly a modified version of the device-independent
> ADS7846/TSC2046 driver released by Paul a few days ago :
> - Kconfig takes into account all X50 variants (not really required for
> now, but allow to manage cleanly the axim family),
> - aximx50.c. includes the touchscreen driver information, and some
> unuseful udc code has been removed,

> - ads7846ts_ssp.c : read_xydata is now less value-dependent, and a
> mechanism derived from the tsc2046 driver to detect pen release (based
> on gpio) has been added. ADS/TSC commands are now on 24 bits,
> - ads7846_adc_ssp.c : re-use initialization from tsc2046 driver,

  Ok, I finally found time to deal with ads7846ts_ssp.c/ads7846_adc_ssp.c on
pxa27x machines (hx4700 specifically). It turned out to be not that
easy, and I'd like to thank you for your patches - I actually failed
to bootstrap original version on hx4700, so used your patches as the base.
But after more detailed investigation the real cause of issues was found:
different touchscreens have different parameters, and hx4700's one
uncovers few issues in races in the old version driver. Still, your
version was not good for h4000 either.

  At the end of story, there's now really machine independent driver
for ADS7846/TSC2046, tested on h4000 and hx4700. It still may need
some tweaks for other machines (ability to pass TS params via
platform_data), but otherwise pretty generic and debugged. As was expected,
no ads7846_adc_ssp.c changes were required - all those "24bits" stuff
is nothing but hacks, likely copied from wince drivers.

  So, please try to use it on aximx50 - I keep my fingers crossed for
it to work out of the box. Feel free to use h4000 as the reference (I
didn't yet committed hx4700 patches).

[]

> Pierre

-- 
Best regards,
 Paul                            mailto:pmiscml_at_gmail.com
Received on Thu Feb 08 2007 - 21:13:00 EST

This archive was generated by hypermail 2.2.0 : Thu Feb 08 2007 - 21:13:15 EST