summary refs log tree commit diff stats
path: root/include/hw/pci-host/ls7a.h
diff options
context:
space:
mode:
authorXiaojuan Yang <yangxiaojuan@loongson.cn>2022-08-10 15:50:35 +0800
committerSong Gao <gaosong@loongson.cn>2022-09-20 15:44:24 +0800
commita1f7d78e564a453ea07159efaa1af9a7210ddeda (patch)
tree11b3aa3734e23139cedd88fcde182a115040f5b9 /include/hw/pci-host/ls7a.h
parentee413a52c1bc36abbdbf097da0c9143b9a88220d (diff)
downloadfocaccia-qemu-a1f7d78e564a453ea07159efaa1af9a7210ddeda.tar.gz
focaccia-qemu-a1f7d78e564a453ea07159efaa1af9a7210ddeda.zip
hw/loongarch: Add platform bus support
Add platform bus support and add the bus information such as address,
size, irq number to FDT table.

Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Acked-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20220908094623.73051-5-yangxiaojuan@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'include/hw/pci-host/ls7a.h')
-rw-r--r--include/hw/pci-host/ls7a.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/pci-host/ls7a.h b/include/hw/pci-host/ls7a.h
index cdde0af1f8..9bd875ca8b 100644
--- a/include/hw/pci-host/ls7a.h
+++ b/include/hw/pci-host/ls7a.h
@@ -42,4 +42,9 @@
 #define VIRT_RTC_REG_BASE        (VIRT_MISC_REG_BASE + 0x00050100)
 #define VIRT_RTC_LEN             0x100
 #define VIRT_SCI_IRQ             (PCH_PIC_IRQ_OFFSET + 4)
+
+#define VIRT_PLATFORM_BUS_BASEADDRESS   0x16000000
+#define VIRT_PLATFORM_BUS_SIZE          0x2000000
+#define VIRT_PLATFORM_BUS_NUM_IRQS      2
+#define VIRT_PLATFORM_BUS_IRQ           69
 #endif