Maxim Polyakov has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47774 )
Change subject: ec/kontron/kempld: Add ACPI to access to control registers ......................................................................
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) + } +}