linux.kernel
[Top] [All Lists]

question on spi_bitbang

Subject: question on spi_bitbang
From: Kumar Gala
Date: Fri, 31 Mar 2006 19:40:16 +0200
Newsgroups: linux.kernel
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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at                                  www.tux.org/lkml/">http://www.tux.org/lkml/

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy