summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/z61t/acpi
diff options
context:
space:
mode:
authorPeter Lemenkov <lemenkov@gmail.com>2019-07-07 13:33:34 +0200
committerArthur Heymans <arthur@aheymans.xyz>2019-10-08 09:17:05 +0000
commitc71093b21a9c7741fc461233bec57fd3197c9f70 (patch)
tree7667bbc9736f6c31c7eadce157574d748ca8f6e9 /src/mainboard/lenovo/z61t/acpi
parentb7f1c2d2f1da42c6fbcdb9c5c394f5ca128296ab (diff)
mb/lenovo/{t60,z61t}: Convert to variant board
Change-Id: I0a3076780ac5cf183235f06e4c56d0707bf5e6ca Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34123 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/mainboard/lenovo/z61t/acpi')
-rw-r--r--src/mainboard/lenovo/z61t/acpi/dock.asl93
-rw-r--r--src/mainboard/lenovo/z61t/acpi/ec.asl17
-rw-r--r--src/mainboard/lenovo/z61t/acpi/gpe.asl27
-rw-r--r--src/mainboard/lenovo/z61t/acpi/ich7_pci_irqs.asl41
-rw-r--r--src/mainboard/lenovo/z61t/acpi/mainboard.asl0
-rw-r--r--src/mainboard/lenovo/z61t/acpi/platform.asl84
-rw-r--r--src/mainboard/lenovo/z61t/acpi/superio.asl0
-rw-r--r--src/mainboard/lenovo/z61t/acpi/video.asl32
8 files changed, 0 insertions, 294 deletions
diff --git a/src/mainboard/lenovo/z61t/acpi/dock.asl b/src/mainboard/lenovo/z61t/acpi/dock.asl
deleted file mode 100644
index 5085b29fb3..0000000000
--- a/src/mainboard/lenovo/z61t/acpi/dock.asl
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (c) 2011 Sven Schnelle <svens@stackframe.org>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; version 2 of
- * the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-#include "smi.h"
-
-Scope (\_SB)
-{
- OperationRegion (DLPC, SystemIO, 0x164c, 1)
- Field(DLPC, ByteAcc, NoLock, Preserve)
- {
- , 3,
- DSTA, 1,
- }
-
- Device(DOCK)
- {
- Name(_HID, "ACPI0003")
- Name(_UID, 0x00)
- Name(_PCL, Package() { \_SB } )
-
- Method(_DCK, 1, NotSerialized)
- {
- if (Arg0) {
- Sleep(250)
- /* connect dock */
- TRAP(SMI_DOCK_CONNECT)
- } else {
- /* disconnect dock */
- TRAP(SMI_DOCK_DISCONNECT)
- }
-
- Xor(Arg0, DSTA, Local0)
- Return (Local0)
- }
-
- Method(_STA, 0, NotSerialized)
- {
- Return (DSTA)
- }
- }
-}
-
-Scope(\_SB.PCI0.LPCB.EC)
-{
- OperationRegion(PMH7, SystemIO, 0x15e0, 0x10)
- Field(PMH7, ByteAcc, NoLock, Preserve)
- {
- Offset(0x0c),
- PIDX, 8,
- Offset(0x0e),
- PDAT, 8,
- }
-
- IndexField(PIDX, PDAT, ByteAcc, NoLock, Preserve)
- {
- Offset (0x61),
- DPWR, 1,
- }
-
- Method(_Q18, 0, NotSerialized)
- {
- Notify(\_SB.DOCK, 3)
- }
-
- Method(_Q37, 0, NotSerialized)
- {
- if (DPWR) {
- Notify(\_SB.DOCK, 0)
- } else {
- Notify(\_SB.DOCK, 3)
- }
- }
-
- Method(_Q50, 0, NotSerialized)
- {
- if (\_SB.DOCK._STA()) {
- Notify(\_SB.DOCK, 1)
- }
- }
-}
diff --git a/src/mainboard/lenovo/z61t/acpi/ec.asl b/src/mainboard/lenovo/z61t/acpi/ec.asl
deleted file mode 100644
index fe7115aa77..0000000000
--- a/src/mainboard/lenovo/z61t/acpi/ec.asl
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (c) 2011 Sven Schnelle <svens@stackframe.org>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; version 2 of
- * the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-#include <ec/lenovo/h8/acpi/ec.asl>
diff --git a/src/mainboard/lenovo/z61t/acpi/gpe.asl b/src/mainboard/lenovo/z61t/acpi/gpe.asl
deleted file mode 100644
index 3cc25b2d85..0000000000
--- a/src/mainboard/lenovo/z61t/acpi/gpe.asl
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (c) 2011 Sven Schnelle <svens@stackframe.org>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; version 2 of
- * the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-#include "smi.h"
-Scope (\_GPE)
-{
- Method(_L18, 0, NotSerialized)
- {
- /* Read EC register to clear wake status */
- Store(\_SB.PCI0.LPCB.EC.WAKE, Local0)
- /* So that we don't get a warning that Local0 is unused. */
- Increment (Local0)
- }
-}
diff --git a/src/mainboard/lenovo/z61t/acpi/ich7_pci_irqs.asl b/src/mainboard/lenovo/z61t/acpi/ich7_pci_irqs.asl
deleted file mode 100644
index 4c7c3a3757..0000000000
--- a/src/mainboard/lenovo/z61t/acpi/ich7_pci_irqs.asl
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2007-2009 coresystems GmbH
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; version 2 of
- * the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-/* This is board specific information: IRQ routing for the
- * 0:1e.0 PCI bridge of the ICH7
- */
-
-If (PICM) {
- Return (Package() {
- Package (0x04) { 0x0000FFFF, 0x00, 0x00, 0x10 },
- Package (0x04) { 0x0000FFFF, 0x01, 0x00, 0x11 },
- Package (0x04) { 0x0000FFFF, 0x02, 0x00, 0x12 },
- Package (0x04) { 0x0001FFFF, 0x00, 0x00, 0x10 },
- Package (0x04) { 0x0002FFFF, 0x00, 0x00, 0x15 },
- Package (0x04) { 0x0002FFFF, 0x01, 0x00, 0x16 },
- Package (0x04) { 0x0008FFFF, 0x00, 0x00, 0x14 }
- })
- } Else {
- Return (Package() {
- Package (0x04) { 0x0000FFFF, 0x00, \_SB.PCI0.LPCB.LNKA, 0x00 },
- Package (0x04) { 0x0000FFFF, 0x01, \_SB.PCI0.LPCB.LNKB, 0x00 },
- Package (0x04) { 0x0000FFFF, 0x02, \_SB.PCI0.LPCB.LNKC, 0x00 },
- Package (0x04) { 0x0001FFFF, 0x00, \_SB.PCI0.LPCB.LNKA, 0x00 },
- Package (0x04) { 0x0002FFFF, 0x00, \_SB.PCI0.LPCB.LNKF, 0x00 },
- Package (0x04) { 0x0002FFFF, 0x01, \_SB.PCI0.LPCB.LNKG, 0x00 },
- Package (0x04) { 0x0008FFFF, 0x00, \_SB.PCI0.LPCB.LNKE, 0x00 }
- })
-}
diff --git a/src/mainboard/lenovo/z61t/acpi/mainboard.asl b/src/mainboard/lenovo/z61t/acpi/mainboard.asl
deleted file mode 100644
index e69de29bb2..0000000000
--- a/src/mainboard/lenovo/z61t/acpi/mainboard.asl
+++ /dev/null
diff --git a/src/mainboard/lenovo/z61t/acpi/platform.asl b/src/mainboard/lenovo/z61t/acpi/platform.asl
deleted file mode 100644
index f9e991b984..0000000000
--- a/src/mainboard/lenovo/z61t/acpi/platform.asl
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2007-2009 coresystems GmbH
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; version 2 of
- * the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-/* The _PTS method (Prepare To Sleep) is called before the OS is
- * entering a sleep state. The sleep state number is passed in Arg0
- */
-
-Method(_PTS,1)
-{
- \_SB.PCI0.LPCB.EC.MUTE(1)
- \_SB.PCI0.LPCB.EC.USBP(0)
- \_SB.PCI0.LPCB.EC.RADI(0)
-}
-
-/* The _WAK method is called on system wakeup */
-
-Method(_WAK,1)
-{
- /* Wake the HKEY to init BT/WWAN */
- \_SB.PCI0.LPCB.EC.HKEY.WAKE (Arg0)
-
- // CPU specific part
-
- // Notify PCI Express slots in case a card
- // was inserted while a sleep state was active.
-
- // Are we going to S3?
- If (LEqual(Arg0, 3)) {
- // ..
- }
-
- // Are we going to S4?
- If (LEqual(Arg0, 4)) {
- // ..
- }
-
- // TODO: Windows XP SP2 P-State restore
-
- Return(Package(){0,0})
-}
-
-/* System Bus */
-
-Scope(\_SB)
-{
- /* This method is placed on the top level, so we can make sure it's the
- * first executed _INI method.
- */
- Method(_INI, 0)
- {
- /* The DTS data in NVS is probably not up to date.
- * Update temperature values and make sure AP thermal
- * interrupts can happen
- */
-
- // TRAP(71) // TODO
-
- \GOS()
-
- /* And the OS workarounds start right after we know what we're
- * running: Windows XP SP1 needs to have C-State coordination
- * enabled in SMM.
- */
- If (LAnd(LEqual(OSYS, 2001), MPEN)) {
- // TRAP(61) // TODO
- }
-
- /* SMM power state and C4-on-C3 settings need to be updated */
- // TRAP(43) // TODO
- }
-}
diff --git a/src/mainboard/lenovo/z61t/acpi/superio.asl b/src/mainboard/lenovo/z61t/acpi/superio.asl
deleted file mode 100644
index e69de29bb2..0000000000
--- a/src/mainboard/lenovo/z61t/acpi/superio.asl
+++ /dev/null
diff --git a/src/mainboard/lenovo/z61t/acpi/video.asl b/src/mainboard/lenovo/z61t/acpi/video.asl
deleted file mode 100644
index 6db3a44c9e..0000000000
--- a/src/mainboard/lenovo/z61t/acpi/video.asl
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (c) 2011 Sven Schnelle <svens@stackframe.org>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; version 2 of
- * the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-#include "smi.h"
-
-Scope (\)
-{
- Method(BRTD, 0, NotSerialized)
- {
- Trap(SMI_BRIGHTNESS_DOWN)
- \_SB.PCI0.GFX0.DECB()
- }
-
- Method(BRTU, 0, NotSerialized)
- {
- Trap(SMI_BRIGHTNESS_UP)
- \_SB.PCI0.GFX0.INCB()
- }
-}