Re: atmel_spi clock polarity

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <hskinnemoen@...>
Cc: <david-b@...>, <spi-devel-general@...>, <linux-kernel@...>
Date: Monday, February 18, 2008 - 10:12 am

On Mon, 18 Feb 2008 12:42:37 +0100, Haavard Skinnemoen <hskinnemoen@atmel.com> wrote:

Yes.


Hmm... It might fix my problem.  But IIRC the clock state follows
CSRn.CPOL just before the real transfer.  Like this (previous transfer
was MODE 0, new transfer is MODE 3):

           T0                T1 T2

CS      ~~~|________________________________________________

CLK     ______________________|~|___|~~~|___|~~~|___|~~~|___

SO      ~~~~~~~~~~~~~~~~~~~~~~~~~~|___|~~~|___|~~~|___|~~~|_
                                   MSB

T0-T1 was relatively longer then T1-T2.  I suppose T1 is not the
point of updating MR register, but the point of starting DMA transfer.

Anyway, I will try your patch in a few days.

---
Atsushi Nemoto
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
atmel_spi clock polarity, Atsushi Nemoto, (Sat Feb 16, 9:32 am)
Re: atmel_spi clock polarity, Haavard Skinnemoen, (Mon Feb 18, 7:42 am)
Re: atmel_spi clock polarity, Atsushi Nemoto, (Mon Feb 18, 10:12 am)
Re: [spi-devel-general] atmel_spi clock polarity, David Brownell, (Mon Feb 18, 3:57 pm)
Re: [spi-devel-general] atmel_spi clock polarity, Haavard Skinnemoen, (Mon Feb 18, 6:49 pm)
Re: [spi-devel-general] atmel_spi clock polarity, Atsushi Nemoto, (Tue Feb 19, 10:51 am)
Re: atmel_spi clock polarity, Haavard Skinnemoen, (Mon Feb 18, 10:31 am)
Re: atmel_spi clock polarity, Atsushi Nemoto, (Wed Feb 20, 1:21 am)
Re: atmel_spi clock polarity, Haavard Skinnemoen, (Wed Feb 20, 5:34 am)
Re: atmel_spi clock polarity, David Brownell, (Wed Feb 20, 9:32 pm)
Re: atmel_spi clock polarity, Atsushi Nemoto, (Wed Feb 20, 5:50 am)
Re: atmel_spi clock polarity, David Brownell, (Wed Feb 20, 9:33 pm)