[libcamera-devel,DO,NOT,MERGE] hardware: hp-chromebook-x2: acpi: Add sensor rotation and location

Message ID 20190827095008.11405-9-jacopo@jmondi.org
State Superseded
Delegated to: Jacopo Mondi
Headers show
Series
  • [libcamera-devel,DO,NOT,MERGE] hardware: hp-chromebook-x2: acpi: Add sensor rotation and location
Related show

Commit Message

Jacopo Mondi Aug. 27, 2019, 9:50 a.m. UTC
Add the camera location and rotation properties to the camera sensor
entries in the DSDT tables.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
---
 hardware/hp-chromebook-x2/acpi/DSDT.dsl | 30 +++++++++++++++++++++++--
 1 file changed, 28 insertions(+), 2 deletions(-)

Patch

diff --git a/hardware/hp-chromebook-x2/acpi/DSDT.dsl b/hardware/hp-chromebook-x2/acpi/DSDT.dsl
index cbb2c1e..ee5b28e 100644
--- a/hardware/hp-chromebook-x2/acpi/DSDT.dsl
+++ b/hardware/hp-chromebook-x2/acpi/DSDT.dsl
@@ -4091,7 +4091,7 @@  DefinitionBlock ("", "DSDT", 5, "COREv4", "COREBOOT", 0x20110725)
                 }, 
 
                 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301") /* Device Properties for _DSD */, 
-                Package (0x02)
+                Package (0x04)
                 {
                     Package (0x02)
                     {
@@ -4106,7 +4106,20 @@  DefinitionBlock ("", "DSDT", 5, "COREv4", "COREBOOT", 0x20110725)
                         {
                             VCM0
                         }
+                    },
+
+                    Package (0x02)
+                    {
+                        "location",
+                        0x01
+                    },
+
+                    Package (0x02)
+                    {
+                        "rotation",
+                        0x00
                     }
+
                 }
             })
             Name (PRT0, Package (0x04)
@@ -4347,13 +4360,26 @@  DefinitionBlock ("", "DSDT", 5, "COREv4", "COREBOOT", 0x20110725)
                 }, 
 
                 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301") /* Device Properties for _DSD */, 
-                Package (0x01)
+                Package (0x03)
                 {
                     Package (0x02)
                     {
                         "clock-frequency", 
                         0x0124F800
+                    },
+
+                    Package (0x02)
+                    {
+                        "location",
+                        0x00
+                    },
+
+                    Package (0x02)
+                    {
+                        "rotation",
+                        0x00
                     }
+
                 }
             })
             Name (PRT0, Package (0x04)