[edk2-devel] [PATCH edk2-platforms v1 09/12] Platform/ARM/VExpressPkg: Add SMC91x device description

Sami Mujawar posted 12 patches 4 years, 10 months ago
[edk2-devel] [PATCH edk2-platforms v1 09/12] Platform/ARM/VExpressPkg: Add SMC91x device description
Posted by Sami Mujawar 4 years, 10 months ago
The FVP model implements a SMSC 91C111 ethernet controller that
can be configured for network access.

Therefore, add description for a SMSC 91C111 device in the DSDT.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
---
 Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/AslTables/Dsdt.asl | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/AslTables/Dsdt.asl b/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/AslTables/Dsdt.asl
index eb5466229d1f10f465ca417166de5c1c1ea212e8..64d697e344ffb5b5b6c4ef31b8245f10a1a18c76 100644
--- a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/AslTables/Dsdt.asl
+++ b/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/AslTables/Dsdt.asl
@@ -2,7 +2,10 @@
   Differentiated System Description Table Fields (DSDT)
 
   Copyright (c) 2014-2021, ARM Ltd. All rights reserved.<BR>
-    SPDX-License-Identifier: BSD-2-Clause-Patent
+  Copyright (c) 2013, Al Stone <al.stone@linaro.org>
+  All rights reserved.
+
+  SPDX-License-Identifier: BSD-2-Clause-Patent
 
 **/
 
@@ -43,5 +46,16 @@ DefinitionBlock("DsdtTable.aml", "DSDT", 1, "ARMLTD", "ARM-VEXP", 1) {
       Name(_HID, "ACPI0007")
       Name(_UID, 7)
     }
+
+    // SMC91X
+    Device (NET0) {
+      Name (_HID, "LNRO0003")
+      Name (_UID, 0)
+
+      Name (_CRS, ResourceTemplate () {
+        Memory32Fixed (ReadWrite, 0x1a000000, 0x00010000)
+        Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) {0x2F}
+      })
+    }
   } // Scope(_SB)
 }
-- 
'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#71639): https://edk2.groups.io/g/devel/message/71639
Mute This Topic: https://groups.io/mt/80580219/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-