* Re: Fwd: PXA270 + ads7846 (TI TSC2046)
[not found] ` <20070504155402.GA25198@zarina>
@ 2007-05-21 3:08 ` David Brownell
0 siblings, 0 replies; only message in thread
From: David Brownell @ 2007-05-21 3:08 UTC (permalink / raw)
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
cbou-JGs/UdohzUI
Cc: Stephen Street
On Friday 04 May 2007, Anton Vorontsov wrote:
> Why Motorola hardcoded in pxa2xx spi driver? Is that means that with
> Motorola bit set we can do all we can with National bit? If not (and
> from my observation it's not) is that means that we can't use pxa2xx
> spi driver for chips requiring National/Microwire?
Modulo the misconception there -- Microwire being a strict subset
of the pure SPI/Motorola mode -- one other issue came up recently.
It seems that the patch making drivers/input/touchscreen/ads7846.c
use SPI_MODE_1 was incorrect. It should use SPI_MODE_0 ... since
it uses normal clock polarity (CPOL=0) and samples on the leading
edge of that clock (CPHA=0).
When I tested -- with omap_uwire and pxa2xx_spi -- I used SPI_MODE_0;
but it was later changed. It seems that when it's used with the
omap_uwire driver, SPI_MODE_1 also works. That might explain some
of the problems observed...
- Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-21 3:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200704240102.27508.david-b@pacbell.net>
[not found] ` <1177692001.4362.61.camel@truckin.grid-net.com>
[not found] ` <20070504155402.GA25198@zarina>
2007-05-21 3:08 ` Fwd: PXA270 + ads7846 (TI TSC2046) David Brownell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.