mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
hw/misc/aspeed_xdma: Add AST2600 support
When we introduced support for the AST2600 SoC, the XDMA controller was forgotten. It went unnoticed because it's not used under emulation. But the register layout being different, the reset procedure is bogus and this breaks kexec. Add a AspeedXDMAClass to take into account the register differences. Cc: Eddie James <eajames@linux.ibm.com> Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Eddie James <eajames@linux.ibm.com> Message-Id: <20210407171637.777743-14-clg@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
224f010ba8
commit
8efbee28f4
4 changed files with 121 additions and 26 deletions
|
@ -199,7 +199,8 @@ static void aspeed_soc_init(Object *obj)
|
|||
TYPE_FTGMAC100);
|
||||
}
|
||||
|
||||
object_initialize_child(obj, "xdma", &s->xdma, TYPE_ASPEED_XDMA);
|
||||
snprintf(typename, sizeof(typename), TYPE_ASPEED_XDMA "-%s", socname);
|
||||
object_initialize_child(obj, "xdma", &s->xdma, typename);
|
||||
|
||||
snprintf(typename, sizeof(typename), "aspeed.gpio-%s", socname);
|
||||
object_initialize_child(obj, "gpio", &s->gpio, typename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue