ssi: Support for multiple attached devices
commitb4a76e84f4997392c9d2eb6f4373dc376d2ffd82
authorPeter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
Tue, 24 Jul 2012 00:55:15 +0000 (24 10:55 +1000)
committerPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Wed, 10 Oct 2012 01:13:31 +0000 (10 11:13 +1000)
treec86259bd728cddf0a9e67bc3b87802fe4981505e
parent4bb26682f70a5f626cad3e0ac82bf4b6252ea7a4
ssi: Support for multiple attached devices

Removed assertion that only one device is attached to the SSI bus.

When multiple devices are attached, all slaves have their transfer function
called for transfers. Each device is responsible for knowing whether or not its
CS is active, and if not returning 0. The returned data is the logical or of
all responses from the (mulitple) devices.

Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
hw/ssi.c