From: Thomas Abraham <thomas.abraham@arm.com>
To: edk2-devel@lists.01.org
Subject: [PATCH edk2-platforms 3/4] Platform/ARM/Sgi: Add ACPI description of virtio block device
Date: Mon, 23 Jul 2018 21:18:41 +0530 [thread overview]
Message-ID: <1532360922-9556-4-git-send-email-thomas.abraham@arm.com> (raw)
In-Reply-To: <1532360922-9556-1-git-send-email-thomas.abraham@arm.com>
From: Daniil Egranov <daniil.egranov@arm.com>
SGI platforms include an instance of the virtio block device. So add
a representation for it in the ACPI tables.
Change-Id: I66cd70cd9ad0c7659e0e27335e99fd4544cecf12
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Daniil Egranov <daniil.egranov@arm.com>
---
Platform/ARM/SgiPkg/AcpiTables/Sgi575/Dsdt.asl | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/Platform/ARM/SgiPkg/AcpiTables/Sgi575/Dsdt.asl b/Platform/ARM/SgiPkg/AcpiTables/Sgi575/Dsdt.asl
index c5b662d..3e1068d 100644
--- a/Platform/ARM/SgiPkg/AcpiTables/Sgi575/Dsdt.asl
+++ b/Platform/ARM/SgiPkg/AcpiTables/Sgi575/Dsdt.asl
@@ -96,4 +96,16 @@ DefinitionBlock("DsdtTable.aml", "DSDT", 1, "ARMLTD", "SGI575", EFI_ACPI_ARM_OEM
})
}
} // Scope(_SB)
+
+ // VIRTIO DISK
+ Device (VR00) {
+ Name (_HID, "LNRO0005")
+ Name (_UID, 0)
+ Name (_CCA, 1) // mark the device coherent
+
+ Name (_CRS, ResourceTemplate() {
+ Memory32Fixed (ReadWrite, 0x1c130000, 0x10000)
+ Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { 202 }
+ })
+ }
}
--
2.7.4
next prev parent reply other threads:[~2018-07-23 15:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-23 15:48 [PATCH edk2-platforms 0/4] Platform/Arm/Sgi: minor platform support updates Thomas Abraham
2018-07-23 15:48 ` [PATCH edk2-platforms 1/4] Platform/ARM/Sgi: Increase the size of flash image Thomas Abraham
2018-07-23 15:48 ` [PATCH edk2-platforms 2/4] Platform/ARM/Sgi: allow access the second DRAM block Thomas Abraham
2018-07-23 15:48 ` Thomas Abraham [this message]
2018-07-23 15:48 ` [PATCH edk2-platforms 4/4] Platform/ARM/Sgi: Allow use of default fifo size for PL011 controller Thomas Abraham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1532360922-9556-4-git-send-email-thomas.abraham@arm.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox