From patchwork Tue Aug 27 09:50:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 1864 X-Patchwork-Delegate: jacopo@jmondi.org Return-Path: Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 72BBE60C1E for ; Tue, 27 Aug 2019 11:48:50 +0200 (CEST) Received: from uno.homenet.telecomitalia.it (unknown [87.18.63.98]) (Authenticated sender: jacopo@jmondi.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id E549A100003; Tue, 27 Aug 2019 09:48:49 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Tue, 27 Aug 2019 11:50:08 +0200 Message-Id: <20190827095008.11405-9-jacopo@jmondi.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190827095008.11405-1-jacopo@jmondi.org> References: <20190827095008.11405-1-jacopo@jmondi.org> MIME-Version: 1.0 Subject: [libcamera-devel] [DO NOT MERGE] hardware: hp-chromebook-x2: acpi: Add sensor rotation and location X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Aug 2019 09:48:50 -0000 Add the camera location and rotation properties to the camera sensor entries in the DSDT tables. Signed-off-by: Jacopo Mondi --- hardware/hp-chromebook-x2/acpi/DSDT.dsl | 30 +++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) 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)