diff options
author | Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com> | 2012-07-24 12:23:22 +1000 |
---|---|---|
committer | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2012-10-10 11:13:31 +1000 |
commit | 66530953319427d7c67a723076acd68075dc7db2 (patch) | |
tree | 6db9a1fea1d50f2d02a3ffeacb922332df9d208a /hw/ads7846.c | |
parent | b4a76e84f4997392c9d2eb6f4373dc376d2ffd82 (diff) |
ssi: Implemented CS behaviour
Added default CS behaviour for SSI slaves. SSI devices can set a property
to enable CS behaviour which will create a GPIO on the device which is the
CS. Tristating of the bus on SSI transfers is implemented.
Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/ads7846.c')
-rw-r--r-- | hw/ads7846.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/ads7846.c b/hw/ads7846.c index 41c7f101c4..2ea9e55bb5 100644 --- a/hw/ads7846.c +++ b/hw/ads7846.c @@ -119,11 +119,12 @@ static int ads7856_post_load(void *opaque, int version_id) static const VMStateDescription vmstate_ads7846 = { .name = "ads7846", - .version_id = 0, - .minimum_version_id = 0, - .minimum_version_id_old = 0, + .version_id = 1, + .minimum_version_id = 1, + .minimum_version_id_old = 1, .post_load = ads7856_post_load, .fields = (VMStateField[]) { + VMSTATE_SSI_SLAVE(ssidev, ADS7846State), VMSTATE_INT32_ARRAY(input, ADS7846State, 8), VMSTATE_INT32(noise, ADS7846State), VMSTATE_INT32(cycle, ADS7846State), |