mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
hw/riscv: sifive_gpio: Add a new 'ngpio' property
Add a new property to represent the number of GPIO pins supported by the GPIO controller. Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 1591625864-31494-7-git-send-email-bmeng.cn@gmail.com Message-Id: <1591625864-31494-7-git-send-email-bmeng.cn@gmail.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
2e30ccb425
commit
4bb216f637
2 changed files with 22 additions and 11 deletions
|
@ -68,6 +68,9 @@ typedef struct SIFIVEGPIOState {
|
|||
uint32_t out_xor;
|
||||
uint32_t in;
|
||||
uint32_t in_mask;
|
||||
|
||||
/* config */
|
||||
uint32_t ngpio;
|
||||
} SIFIVEGPIOState;
|
||||
|
||||
#endif /* SIFIVE_GPIO_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue