]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/gpio/aspeed: Support to set the different memory size
authorJamin Lin <jamin_lin@aspeedtech.com>
Tue, 1 Oct 2024 02:43:28 +0000 (10:43 +0800)
committerCédric Le Goater <clg@redhat.com>
Thu, 24 Oct 2024 05:57:47 +0000 (07:57 +0200)
commit9422dbd10b759a558de8b620ade4686d407fc63f
tree9cf9d0c87b34a3095840382ada05e09a117bc8ae
parent33343bff71805fbcb155abbb112a6e9154335c89
hw/gpio/aspeed: Support to set the different memory size

According to the datasheet of ASPEED SOCs, a GPIO controller owns 4KB of
register space for AST2700, AST2500, AST2400 and AST1030; owns 2KB of
register space for AST2600 1.8v and owns 2KB of register space for
AST2600 3.3v.

It set the memory region size 2KB by default and it does not compatible
register space for AST2700.

Introduce a new class attribute to set the GPIO controller memory size
for different ASPEED SOCs.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
hw/gpio/aspeed_gpio.c
include/hw/gpio/aspeed_gpio.h