aboutsummaryrefslogtreecommitdiff
path: root/src/superio
diff options
context:
space:
mode:
Diffstat (limited to 'src/superio')
-rw-r--r--src/superio/acpi/pnp_generic.asl9
-rw-r--r--src/superio/ite/it8720f/acpi/superio.asl4
-rw-r--r--src/superio/ite/it8721f/acpi/superio.asl1
-rw-r--r--src/superio/ite/it8784e/acpi/superio.asl1
-rw-r--r--src/superio/nuvoton/nct6687d/acpi/superio.asl2
-rw-r--r--src/superio/nuvoton/nct6776/acpi/superio.asl3
-rw-r--r--src/superio/winbond/w83627dhg/acpi/superio.asl1
7 files changed, 21 insertions, 0 deletions
diff --git a/src/superio/acpi/pnp_generic.asl b/src/superio/acpi/pnp_generic.asl
index a5540e39e8..ebefd2a182 100644
--- a/src/superio/acpi/pnp_generic.asl
+++ b/src/superio/acpi/pnp_generic.asl
@@ -13,6 +13,7 @@
* chip for this device (required)
* SUPERIO_PNP_DDN A string literal that identifies the dos device
* name (DDN) of this device (e.g. "COM1", optional)
+ * SUPERIO_PNP_NO_DIS If defined, the PNP device has no Enable/Disable methods
* SUPERIO_PNP_PM_REG Identifier of a 1-bit register to power down
* the logical device (optional)
* SUPERIO_PNP_PM_VAL The value for SUPERIO_PNP_PM_REG to power the logical
@@ -54,6 +55,13 @@ Device (SUPERIO_ID(PN, SUPERIO_PNP_LDN)) {
Name (_DDN, SUPERIO_PNP_DDN)
#endif
+
+#ifdef SUPERIO_PNP_NO_DIS
+ Method (_STA)
+ {
+ Return (DEVICE_PRESENT_ACTIVE)
+ }
+#else
Method (_STA)
{
PNP_GENERIC_STA(SUPERIO_PNP_LDN)
@@ -63,6 +71,7 @@ Device (SUPERIO_ID(PN, SUPERIO_PNP_LDN)) {
{
PNP_GENERIC_DIS(SUPERIO_PNP_LDN)
}
+#endif
#ifdef SUPERIO_PNP_PM_REG
Method (_PSC) {
diff --git a/src/superio/ite/it8720f/acpi/superio.asl b/src/superio/ite/it8720f/acpi/superio.asl
index fdd8f7ea3b..95b09e17a8 100644
--- a/src/superio/ite/it8720f/acpi/superio.asl
+++ b/src/superio/ite/it8720f/acpi/superio.asl
@@ -127,6 +127,7 @@ Device(SUPERIO_DEV) {
#undef SUPERIO_PNP_HID
#undef SUPERIO_PNP_LDN
#undef SUPERIO_PNP_DDN
+ #undef SUPERIO_PNP_NO_DIS
#undef SUPERIO_PNP_PM_REG
#undef SUPERIO_PNP_PM_VAL
#undef SUPERIO_PNP_PM_LDN
@@ -158,6 +159,7 @@ Device(SUPERIO_DEV) {
#undef SUPERIO_PNP_HID
#undef SUPERIO_PNP_LDN
#undef SUPERIO_PNP_DDN
+ #undef SUPERIO_PNP_NO_DIS
#undef SUPERIO_PNP_PM_REG
#undef SUPERIO_PNP_PM_VAL
#undef SUPERIO_PNP_PM_LDN
@@ -167,6 +169,7 @@ Device(SUPERIO_DEV) {
#undef SUPERIO_PNP_IRQ0
#undef SUPERIO_PNP_IRQ1
#undef SUPERIO_PNP_DMA
+ #define SUPERIO_PNP_NO_DIS
#define SUPERIO_PNP_LDN 7
#define SUPERIO_PNP_IO0 0x08, 0x08
#define SUPERIO_PNP_IO1 0x08, 0x08
@@ -178,6 +181,7 @@ Device(SUPERIO_DEV) {
#undef SUPERIO_PNP_HID
#undef SUPERIO_PNP_LDN
#undef SUPERIO_PNP_DDN
+ #undef SUPERIO_PNP_NO_DIS
#undef SUPERIO_PNP_PM_REG
#undef SUPERIO_PNP_PM_VAL
#undef SUPERIO_PNP_PM_LDN
diff --git a/src/superio/ite/it8721f/acpi/superio.asl b/src/superio/ite/it8721f/acpi/superio.asl
index 065ec52a47..22746ede03 100644
--- a/src/superio/ite/it8721f/acpi/superio.asl
+++ b/src/superio/ite/it8721f/acpi/superio.asl
@@ -127,6 +127,7 @@ Device(SUPERIO_DEV) {
#undef SUPERIO_PNP_HID
#undef SUPERIO_PNP_LDN
#undef SUPERIO_PNP_DDN
+ #undef SUPERIO_PNP_NO_DIS
#undef SUPERIO_PNP_PM_REG
#undef SUPERIO_PNP_PM_VAL
#undef SUPERIO_PNP_PM_LDN
diff --git a/src/superio/ite/it8784e/acpi/superio.asl b/src/superio/ite/it8784e/acpi/superio.asl
index c145a2b5ba..f79fc32d19 100644
--- a/src/superio/ite/it8784e/acpi/superio.asl
+++ b/src/superio/ite/it8784e/acpi/superio.asl
@@ -122,6 +122,7 @@ Device (SUPERIO_DEV) {
#undef SUPERIO_PNP_HID
#undef SUPERIO_PNP_LDN
#undef SUPERIO_PNP_DDN
+ #undef SUPERIO_PNP_NO_DIS
#undef SUPERIO_PNP_PM_REG
#undef SUPERIO_PNP_PM_VAL
#undef SUPERIO_PNP_PM_LDN
diff --git a/src/superio/nuvoton/nct6687d/acpi/superio.asl b/src/superio/nuvoton/nct6687d/acpi/superio.asl
index ebddeaeb08..9de87295e0 100644
--- a/src/superio/nuvoton/nct6687d/acpi/superio.asl
+++ b/src/superio/nuvoton/nct6687d/acpi/superio.asl
@@ -102,6 +102,7 @@ Device(SUPERIO_DEV) {
#undef SUPERIO_PNP_HID
#undef SUPERIO_PNP_LDN
#undef SUPERIO_PNP_DDN
+ #undef SUPERIO_PNP_NO_DIS
#undef SUPERIO_PNP_PM_REG
#undef SUPERIO_PNP_PM_VAL
#undef SUPERIO_PNP_PM_LDN
@@ -157,6 +158,7 @@ Device(SUPERIO_DEV) {
#undef SUPERIO_PNP_HID
#undef SUPERIO_PNP_LDN
#undef SUPERIO_PNP_DDN
+ #undef SUPERIO_PNP_NO_DIS
#undef SUPERIO_PNP_PM_REG
#undef SUPERIO_PNP_PM_VAL
#undef SUPERIO_PNP_PM_LDN
diff --git a/src/superio/nuvoton/nct6776/acpi/superio.asl b/src/superio/nuvoton/nct6776/acpi/superio.asl
index b8c396f6e1..1297aa15a0 100644
--- a/src/superio/nuvoton/nct6776/acpi/superio.asl
+++ b/src/superio/nuvoton/nct6776/acpi/superio.asl
@@ -100,6 +100,7 @@ Device(SUPERIO_DEV) {
#undef SUPERIO_PNP_HID
#undef SUPERIO_PNP_LDN
#undef SUPERIO_PNP_DDN
+ #undef SUPERIO_PNP_NO_DIS
#undef SUPERIO_PNP_PM_REG
#undef SUPERIO_PNP_PM_VAL
#undef SUPERIO_PNP_PM_LDN
@@ -145,6 +146,7 @@ Device(SUPERIO_DEV) {
#undef SUPERIO_PNP_HID
#undef SUPERIO_PNP_LDN
#undef SUPERIO_PNP_DDN
+ #undef SUPERIO_PNP_NO_DIS
#undef SUPERIO_PNP_PM_REG
#undef SUPERIO_PNP_PM_VAL
#undef SUPERIO_PNP_PM_LDN
@@ -165,6 +167,7 @@ Device(SUPERIO_DEV) {
#undef SUPERIO_PNP_HID
#undef SUPERIO_PNP_LDN
#undef SUPERIO_PNP_DDN
+ #undef SUPERIO_PNP_NO_DIS
#undef SUPERIO_PNP_PM_REG
#undef SUPERIO_PNP_PM_VAL
#undef SUPERIO_PNP_PM_LDN
diff --git a/src/superio/winbond/w83627dhg/acpi/superio.asl b/src/superio/winbond/w83627dhg/acpi/superio.asl
index 298e9a7c0d..18ce2c06bd 100644
--- a/src/superio/winbond/w83627dhg/acpi/superio.asl
+++ b/src/superio/winbond/w83627dhg/acpi/superio.asl
@@ -192,6 +192,7 @@ Device(SUPERIO_DEV) {
#ifdef W83627DHG_SHOW_HWMON
#undef SUPERIO_PNP_LDN
#undef SUPERIO_PNP_DDN
+ #undef SUPERIO_PNP_NO_DIS
#undef SUPERIO_PNP_PM_REG
#undef SUPERIO_PNP_PM_VAL
#undef SUPERIO_PNP_PM_LDN