tpm: Allow 32 & 16 bit accesses to the registers
commitfeeb755fde70e34dbec9709f3dab439172cf5153
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Mon, 23 Feb 2015 14:27:17 +0000 (23 09:27 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 1 Mar 2015 11:33:20 +0000 (1 12:33 +0100)
treebb45d2954a880bb6836b386adc686f0cca7d7818
parent9fdc694635ebf275763aa2eee721f69e556fba5e
tpm: Allow 32 & 16 bit accesses to the registers

Improve the access to the registers with 32 and 16 bit reads and writes.
Also enable access to a non-base register address, such as reads of the
2nd byte of a register. Map the FIFO byte access to any byte within
its 4 byte register (following specs).

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/tpm/tpm_tis.c