From patchwork Wed Sep 20 14:48:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 113146 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp872499qgf; Wed, 20 Sep 2017 08:02:39 -0700 (PDT) X-Received: by 10.55.152.198 with SMTP id a189mr7251435qke.190.1505919759253; Wed, 20 Sep 2017 08:02:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505919759; cv=none; d=google.com; s=arc-20160816; b=M/Z+G9dVZKI03yVvK1+CnBJ942/zYlFMRMvfn5EIysT0n0Jnt2XP9iDmELYYpWOJ1u o5l5zZMb5JFAHwz1k/7G0XkY1+FzRx9e5MS73MskgGpWwWZ0OG8BjuKp0RQNmbyHqsrk gh1EXooxWuzXFL4sdmz2w7WCgiDJzz2k2ETbRnngUwiqPLYwxbFJ2c7GqEFOBb4t5Pp6 AiVLNAoBGyGaf3w4EKZ0A1astjdT3vlrBnQ6BY1KFivsYiIOEbKRAHZPgxPj5JGpWpyj iG+lgVSrqQWzIdTleQ9X0UAP8t7o8pP/dunb3Vl0Kj8+CFiYDRfClsMGtShn+MsWk1cN 5Cng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:delivered-to:arc-authentication-results; bh=Qxkfs+5LFRjcGjaXDEzAmSY9w15z7fcjNsVB/4sN6mw=; b=gNW67bOqeSeOVBDoSh9YZ+6c6/xruTvFcQHAB2tsR9CHfRj9ajNwaklEKSEwKK6jWJ +hOx4oybT6S008lvZR8N4atoiMddkBrLg6yHsLRKpTFdkrRIV2YsLO8vR7ZrV2cnZn0W fWtaMj7UtfTsn4bYxIqXttGBVBHGj3qJs/nymzHYoDatntD6iyH9GN2ydguZOjrpFldg Clwp22wcRFJUg0f3WKvdN9oyVLFlnKkOYofBzpZDP+pDsImgjOZNxHxTzkhqKxXJBeId jjfefONHbiZF+LZ+zjjHZZoWOjF/gXYM0+oUBEm9heB++8x3HNUytFQlHAoiOxR/a4pF XIjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k68si1932709qkl.212.2017.09.20.08.02.38; Wed, 20 Sep 2017 08:02:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id DE0C060C95; Wed, 20 Sep 2017 15:02:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 89BBC63CB0; Wed, 20 Sep 2017 14:57:34 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id AEDD260B49; Wed, 20 Sep 2017 14:57:26 +0000 (UTC) Received: from mail-pg0-f41.google.com (mail-pg0-f41.google.com [74.125.83.41]) by lists.linaro.org (Postfix) with ESMTPS id 82ECC60B49 for ; Wed, 20 Sep 2017 14:56:18 +0000 (UTC) Received: by mail-pg0-f41.google.com with SMTP id d8so1812413pgt.4 for ; Wed, 20 Sep 2017 07:56:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lUglfMjfkLKqs5TrDeA7qPvEz0tA9RP9mJDtRIqa+B0=; b=ZJmELvQP52zq4FMH/b8gJW0h7RxeDa6duaWUr3S6Rkh++MAWsJYiW+CGHUezoKYo0N o3Vtx17V0uNkzLFyWwUJUwb5rExTNwf+3AUvxzQagNxntb7mSHSf0tBEDlOaFBsXIeEp XqbHGpkyHgllcrz267P6pEevpShOQrD+y5lJ6/KU97m8mlPL6BlC1L+A1+dJpKmVE2xO 4YIDKeH9wZJZ3MqI+9qAw4IuJcBSAUiNFqztgx0BsuLcHHBaXIAIhlX5U8qLZy5KW0Dd 1VF3LFMMWuESKLN/aTgkN1IIF55H6hOStGa25XW41wmuSP3am1m1KYHlgIfkBHsuARvB IChQ== X-Gm-Message-State: AHPjjUj6WrI4Tur+mPiW6leqfFmoZnWY8NX5E8RL26bRXzsu85KbeqQO DwPDx8zFgnxUUWfztG5JtI0ZpNqO X-Google-Smtp-Source: AOwi7QCu0K2HlFSUCN+HzOqLn6t6NKB7YJGQUZ9wn/f0aAgl+MdDsAtq3w77dNl2U9A8C1LcAyCa7A== X-Received: by 10.84.148.203 with SMTP id y11mr2356129plg.277.1505919377809; Wed, 20 Sep 2017 07:56:17 -0700 (PDT) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id c7sm9157624pfc.55.2017.09.20.07.56.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Sep 2017 07:56:17 -0700 (PDT) From: Heyi Guo To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, graeme.gregory@linaro.org Date: Wed, 20 Sep 2017 22:48:57 +0800 Message-Id: <1505918938-52550-14-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505918938-52550-1-git-send-email-heyi.guo@linaro.org> References: <1505918938-52550-1-git-send-email-heyi.guo@linaro.org> Cc: Ming Huang , zhangjinsong2@huawei.com, huangming23@huawei.com, guoheyi@huawei.com, wanghuiqiang@huawei.com Subject: [Linaro-uefi] [linaro-uefi v2 10/11] D05/ACPI: Modify I2C device X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "For discussions about Linaro-related UEFI development. Not a substitute for edk2-devel." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" From: Ming Huang 1. Disable I2C0 device avoiding access conflict in OS; 2. Modify name of _HID for matching the string in OS driver; Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- .../Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl index eb906ef..3cc60d1 100644 --- a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl +++ b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl @@ -18,26 +18,8 @@ Scope(_SB) { - Device(I2C0) { - Name(_HID, "APMC0D0F") - Name(_CID, "APMC0D0F") - Name(_CRS, ResourceTemplate() { - Memory32Fixed(ReadWrite, 0xd00e0000, 0x10000) - Interrupt(ResourceConsumer, Level, ActiveHigh, Exclusive, 0, "\\_SB.MBI6") { 705 } - }) - Name (_DSD, Package () { - ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), - Package () { - Package () {"clock-frequency", 100000}, - Package () {"i2c-sda-falling-time-ns", 913}, - Package () {"i2c-scl-falling-time-ns", 303}, - Package () {"i2c-sda-hold-time-ns", 0x9c2}, - } - }) - } - Device(I2C2) { - Name(_HID, "APMC0D0F") + Name(_HID, "HISI02A1") Name(_CID, "APMC0D0F") Name(_CRS, ResourceTemplate() { Memory32Fixed(ReadWrite, 0xd0100000, 0x10000)