Maxim Polyakov has uploaded this change for review.

View Change

ec/kontron/kempld: Add ACPI to access to control registers

Change-Id: If5088892936a48730d0d132b4ade1f3f600a9a40
Signed-off-by: Maxim Polyakov <max.senia.poliak@gmail.com>
---
A src/ec/kontron/kempld/acpi/cpld.asl
1 file changed, 29 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/74/47774/1
diff --git a/src/ec/kontron/kempld/acpi/cpld.asl b/src/ec/kontron/kempld/acpi/cpld.asl
new file mode 100644
index 0000000..387af3a
--- /dev/null
+++ b/src/ec/kontron/kempld/acpi/cpld.asl
@@ -0,0 +1,29 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#define KEMPLD_IO_BASE 0xa80
+#define KEMPLD_IO_RANGE 0xa81
+
+Device (CPLD)
+{
+ Name (_HID, "KEU0001") // _HID: Hardware ID
+ Name (_UID, Zero) // _UID: Unique ID
+
+ Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
+ {
+ Name (CPLR, ResourceTemplate ()
+ {
+ IO (Decode16,
+ KEMPLD_IO_BASE, // Range Minimum
+ KEMPLD_IO_RANGE, // Range Maximum
+ 0, // Alignment
+ 2, // Length
+ )
+ })
+ Return (CPLR)
+ }
+
+ Method (_STA, 0, Serialized) // _STA: Status
+ {
+ Return (0x0B)
+ }
+}

To view, visit change 47774. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If5088892936a48730d0d132b4ade1f3f600a9a40
Gerrit-Change-Number: 47774
Gerrit-PatchSet: 1
Gerrit-Owner: Maxim Polyakov <max.senia.poliak@gmail.com>
Gerrit-MessageType: newchange