diff options
author | Peter Crosthwaite | 2014-05-20 08:31:33 +0200 |
---|---|---|
committer | Andreas Färber | 2014-05-28 17:36:21 +0200 |
commit | de77914e50477ca4cef1e9cdd7a05b8d0c0ff1d9 (patch) | |
tree | 258a8cd908ee70b4371f8e2102230fff20a49e60 /include | |
parent | qdev: Implement named GPIOs (diff) | |
download | qemu-de77914e50477ca4cef1e9cdd7a05b8d0c0ff1d9.tar.gz qemu-de77914e50477ca4cef1e9cdd7a05b8d0c0ff1d9.tar.xz qemu-de77914e50477ca4cef1e9cdd7a05b8d0c0ff1d9.zip |
ssi: Name the CS GPIO
To get it out of the default GPIO list. This allows child devices to
use the un-named GPIO namespace without having to be SSI aware. That
is, there is no more need for machines to know about the obscure
policy where GPIO 0 is the SSI chip-select and GPIO 1..N are the
concrete class GPIOs (defined locally as 0..N-1).
This is most notable in stellaris, which uses a device which has both
SSI and concrete level GPIOs.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/ssi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/ssi.h b/include/hw/ssi.h index 6c13fb2e44..df0f838510 100644 --- a/include/hw/ssi.h +++ b/include/hw/ssi.h @@ -23,6 +23,8 @@ typedef struct SSISlave SSISlave; #define SSI_SLAVE_GET_CLASS(obj) \ OBJECT_GET_CLASS(SSISlaveClass, (obj), TYPE_SSI_SLAVE) +#define SSI_GPIO_CS "ssi-gpio-cs" + typedef enum { SSI_CS_NONE = 0, SSI_CS_LOW, |