]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] omap_uwire: use the per transfer wordsize and speed overrides
authorImre Deak <imre.deak@nokia.com>
Mon, 15 May 2006 09:04:03 +0000 (02:04 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 15 May 2006 09:04:03 +0000 (02:04 -0700)
commit1d0d616724d8fb4ffbbffed6c037250bc1488269
treee158a1123976c61333a677804c887ec46082a895
parent4b3b582fb399e5698ed6060e3e025165c0490fe4
[PATCH] omap_uwire: use the per transfer wordsize and speed overrides

Each transfer in an SPI message can have its wordsize and speed override.
Add a uwire_setup_transfer to handle this.

Allocate a per SPI device controller state struct, where we cache the
current bits_per_word and the functional clock divider. The latter cannot
be set for each CS in HW, so we have to reset it whenever a new device is
selected.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
drivers/spi/omap_uwire.c