mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/gpio support GPIO index mode for write operation.
It did not support GPIO index mode for read operation. Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20220525053444.27228-4-jamin_lin@aspeedtech.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
17075ef244
commit
247c00294a
2 changed files with 182 additions and 0 deletions
|
@ -50,6 +50,20 @@ enum GPIORegType {
|
|||
gpio_reg_input_mask,
|
||||
};
|
||||
|
||||
/* GPIO index mode */
|
||||
enum GPIORegIndexType {
|
||||
gpio_reg_idx_data = 0,
|
||||
gpio_reg_idx_direction,
|
||||
gpio_reg_idx_interrupt,
|
||||
gpio_reg_idx_debounce,
|
||||
gpio_reg_idx_tolerance,
|
||||
gpio_reg_idx_cmd_src,
|
||||
gpio_reg_idx_input_mask,
|
||||
gpio_reg_idx_reserved,
|
||||
gpio_reg_idx_new_w_cmd_src,
|
||||
gpio_reg_idx_new_r_cmd_src,
|
||||
};
|
||||
|
||||
typedef struct AspeedGPIOReg {
|
||||
uint16_t set_idx;
|
||||
enum GPIORegType type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue