lkml.org 
[lkml]   [2006]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectquestion on spi_bitbang
Date
I'm looking at using spi_bitbang for a SPI driver and was trying to  
understand were the right point is to handle MODE switches.

There are 4 function pointers provided for each mode. My controller
HW has a mode register which allows setting clock polarity and clock
phase. I assume what I want is in my chipselect() function is to set
my mode register and have the four function pointers set to the same
function.

Is this the right usage model, or should I set the mode register as
part of the txrx_word[mode] function?

- kumar
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-03-31 19:33    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site