Hello. I am newbie in kernel development.
I want to realize chip select decoding function for AT91. And I'm finding
the simplest method for it.
I have some questions:
1. Why sizes of variables u8 spi_device.mode, u16 spi_master.mode_bits and
u32 bad_bits in spi_setup() are different?
I've wanted to use variable spi_device.mode for saving cs_dec flag, but I
couldn't do it, because spi_device.mode is fully used for other flags.
2. I want to use spi_device.controller_data to pass pointer to GPIO array
used for CS pins. If cs_dec flag is set, so I can interpret pointer in
spi_device.controller_data
as pointer to array of CS pins GPIO, in either case it will be interpreted
as one CS pin GPIO. Is it right way?
Sorry for my bad english.
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to