All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about Chip Select Decoding for AT91
@ 2011-08-23  8:30 Roman Lapin
  0 siblings, 0 replies; only message in thread
From: Roman Lapin @ 2011-08-23  8:30 UTC (permalink / raw)
  To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-23  8:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-23  8:30 Question about Chip Select Decoding for AT91 Roman Lapin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.