From patchwork Thu Sep 21 10:59:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 113232 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1878867qgf; Thu, 21 Sep 2017 04:08:09 -0700 (PDT) X-Received: by 10.98.159.76 with SMTP id g73mr5286416pfe.293.1505992089248; Thu, 21 Sep 2017 04:08:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505992089; cv=none; d=google.com; s=arc-20160816; b=E5j5PUdQE+P/xVY3F8bKdyb9vJZd61WJ7vSAw0Yr/TpQaF0GU9IaUWY+tIgE4fu9Mk teat+Rvp5E98v9b2o/tU5x0c2VNdfEzMyMFg5D6op8jXpVDk2ujcVAcvgpsdAGUyBMYu hTud1DtCm2K817U0J6JPuMHU2mVoFJfw9o9ga4lEVrkkG7twQgWpKVfWN6uDgNyvt2Sv K+DuEly9kR3O9zEBxvEEZBUoKX1cENC6cZGLgUtXum0AVtTIoydYCqEi8q92Qx861sR2 my7EXs2nkKQziuIOeiaQIDR3XDycOJBegK1Wc1eow7F8zzAKPle3NRrFaoaN8fAZrkOx JY9g== 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:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=h6Ie7inJWWe74c+IkN5/gmKzHNVprfw7ql97ji85vDA=; b=dL7DiPmm74jbzJdiAfhChmEa/KgjVFyo2W01DO80fKPdgv/Q0xPsYHvgBPEhO6aPnZ uN8/IGOcC7Vnw1QQBExTpkwOlDQltuqTUsQJxLCG7m9xe60nacg+zbSO6elBLFZ25tn4 TZwbtVR2AzQXXbaztRNxZniaOCPRYv/Hb+5eWQUucgRCGvl6hzGHBWdpi8RpnBVT3D6t ZapXXR9RLu5B+f0aEkwsGeZYazajycVngHo5KglpiwF7dfeUgQa1IzIrzqvva5CI674e r8QglrZd1KxGYgHcZsvKJNgmSmaXp8B4Qa+L65VmPH4xMkBy8CRTqOjwB+bZIBdt9JLq rvPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CM7EerFp; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id l4si881539pgu.396.2017.09.21.04.08.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Sep 2017 04:08:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CM7EerFp; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id A9DBF21ECCB15; Thu, 21 Sep 2017 04:04:30 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-pg0-x22e.google.com (mail-pg0-x22e.google.com [IPv6:2607:f8b0:400e:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 64C1A21E1B76D for ; Thu, 21 Sep 2017 04:04:30 -0700 (PDT) Received: by mail-pg0-x22e.google.com with SMTP id b11so3324094pgn.12 for ; Thu, 21 Sep 2017 04:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/lG3Ol0OoI11jtBHOMSmpNqUBTWOk56eOf5b7ZGDVbo=; b=CM7EerFp1Ytq2an5STr1EQkC4O5FxQ/CfvckklIwB9n53MQbardlqTv5NGdaFs4hZe 3jrKFUOe0WHmCyDovLDm5+lvQHD9dP0cJRNqDT03V1nTq9/Ogq8ZG4Y7D0qmnNhxicJc qllb8+OfnSTnjZCr1mkD2Xb/k8KJTU2Ljq7Ts= 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=/lG3Ol0OoI11jtBHOMSmpNqUBTWOk56eOf5b7ZGDVbo=; b=EFaoyYPV1s628WdQjp5OpKCEApqcI9kTpz2glP1f12gJ1pdNh2Cn33NKiR+nS73c13 epxa+cU4+2JRopxxr5DriD/YhlZ4tjNIyCpQtgLnjSZhgx0TFcf92g2IIg64C3V4FHIq t8/v4o7EA7v4Y189A9icNPILwyAjKSeCtHyG7ST993YFU1nBKIuX39LfKMEqxmCTnSNY emqvJX1v0Tdadb5qdVWDKHzkTL61Njd/rtlsz2VLB9vIb7vGWMl8gnuFjVn1ATPUOGY3 w3xcRaNQ7LyjpIgAa0z61GRk1gyeniEkx0mB/rxQ2cALavaf1vwr6nOazLQPTvuaWrqr JaSA== X-Gm-Message-State: AHPjjUha8zYBLqyGHfiQd1bZ/k9nkCFxrhcbaHQyLciXKdwH8rzhnD4I 5F/3uVFVUuPtMv6hJj8JZdnGWA== X-Google-Smtp-Source: AOwi7QCjFM1c0C76YA3KVspARz/ErHC0oAgZ7oNgPfb4/CPXQBdBivyJHx1Yz9R7A72cGL4uZO7q0A== X-Received: by 10.98.215.18 with SMTP id b18mr5360139pfh.147.1505992056981; Thu, 21 Sep 2017 04:07:36 -0700 (PDT) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id x124sm2090762pfx.56.2017.09.21.04.07.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Sep 2017 04:07:36 -0700 (PDT) From: Heyi Guo To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Thu, 21 Sep 2017 18:59:56 +0800 Message-Id: <1505991597-52989-18-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505991597-52989-1-git-send-email-heyi.guo@linaro.org> References: <1505991597-52989-1-git-send-email-heyi.guo@linaro.org> Subject: [edk2] [PATCH edk2-platforms v3 10/11] D05/ACPI: Modify I2C device X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangming23@huawei.com, ard.biesheuvel@linaro.org, zhangjinsong2@huawei.com, Ming Huang , guoheyi@huawei.com, waip23@126.com, wanghuiqiang@huawei.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" From: Ming Huang 1. Disable I2C0 device avoiding access conflict in OS; 2. Modify _HID of I2C2 for matching the string in OS driver; Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- Silicon/Hisilicon/Hi1616/D05AcpiTables/Dsdt/D05I2c.asl | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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)