summary refs log tree commit diff stats
path: root/include/hw/arm/allwinner-r40.h
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2024-01-15 10:27:56 -0800
committerPeter Maydell <peter.maydell@linaro.org>2024-01-26 11:30:47 +0000
commit2a02da74f286349c2d39c8a6102388219f476d8c (patch)
tree44ea61642a65b8c42d2ac95cb57e557f34738849 /include/hw/arm/allwinner-r40.h
parent43eef24f52def75df9d491788db90e11098b1f7b (diff)
downloadfocaccia-qemu-2a02da74f286349c2d39c8a6102388219f476d8c.tar.gz
focaccia-qemu-2a02da74f286349c2d39c8a6102388219f476d8c.zip
hw/arm: Add AHCI/SATA controller to Allwinner R40 and Bananapi board
Allwinner R40 supports an AHCI compliant SATA controller.
Add support for it.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Message-id: 20240115182757.1095012-3-linux@roeck-us.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/arm/allwinner-r40.h')
-rw-r--r--include/hw/arm/allwinner-r40.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/arm/allwinner-r40.h b/include/hw/arm/allwinner-r40.h
index ae82822d42..c589fcc1c1 100644
--- a/include/hw/arm/allwinner-r40.h
+++ b/include/hw/arm/allwinner-r40.h
@@ -22,6 +22,7 @@
 
 #include "qom/object.h"
 #include "hw/timer/allwinner-a10-pit.h"
+#include "hw/ide/ahci.h"
 #include "hw/intc/arm_gic.h"
 #include "hw/sd/allwinner-sdhost.h"
 #include "hw/misc/allwinner-r40-ccu.h"
@@ -46,6 +47,7 @@ enum {
     AW_R40_DEV_MMC1,
     AW_R40_DEV_MMC2,
     AW_R40_DEV_MMC3,
+    AW_R40_DEV_AHCI,
     AW_R40_DEV_EHCI1,
     AW_R40_DEV_OHCI1,
     AW_R40_DEV_EHCI2,
@@ -112,6 +114,7 @@ struct AwR40State {
     const hwaddr *memmap;
     AwSRAMCState sramc;
     AwA10PITState timer;
+    AllwinnerAHCIState sata;
     AwSdHostState mmc[AW_R40_NUM_MMCS];
     EHCISysBusState ehci[AW_R40_NUM_USB];
     OHCISysBusState ohci[AW_R40_NUM_USB];