summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/acpi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/acpi.c b/common/acpi.c
index f4aba3af9b..f73dfd2db5 100644
--- a/common/acpi.c
+++ b/common/acpi.c
@@ -167,6 +167,13 @@ int acpi_ap_to_ec(int is_cmd, uint8_t value, uint8_t *resultptr)
result = EC_ACPI_MEM_CHARGING_LIMIT_DISABLED;
break;
#endif
+
+#ifdef CONFIG_DPTF_DEVICE_ORIENTATION
+ case EC_ACPI_MEM_DEVICE_ORIENTATION:
+ result = board_get_device_orientation();
+ break;
+#endif
+
default:
result = acpi_read(acpi_addr);
break;