PXA270 + ads7846 (TI TSC2046)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 20070504155402.GA25198@zarina
Quoted 4 lines · Anton Vorontsov
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/