From patchwork Fri Sep 29 03:19:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 114485 Delivered-To: patch@linaro.org Received: by 10.140.104.133 with SMTP id a5csp312476qgf; Thu, 28 Sep 2017 20:27:19 -0700 (PDT) X-Received: by 10.99.109.13 with SMTP id i13mr6131020pgc.349.1506655638953; Thu, 28 Sep 2017 20:27:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506655638; cv=none; d=google.com; s=arc-20160816; b=pRbvgabOnGGgU2TydVkE2fvpPaQroHZCAyYaJ+pYH2HlMnm6dhBRqI+ZywXOdg6xvX v43nw7s1pX4EcqdbDDTVcs/NDl7q5+uh+x0FNBHusa7sS4mlFaIRQyCYBfUe6c9hlq5/ wejUTs3oP0YiZkMhlAt5FpbCwr6bs0toFzTiZS91b7F3nSOv6lgLDt+u968oDt/hs52+ f9nXBD0e2r3/13YbEpTmjve5JsoT6GYsB35/im5GWg17QbZ4iqZJb9eMxk4yLpRZz1Ts 3Uxl23QnOJGjucifmfN2qXxHK6EhtMBdOAd5XtZbneZvxsbpq7ybH0zaTEjEs1D3V/RT AM7w== 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=w8MVonfqXE6IQ31ajNaCxe+QY2WsBtk+1kSFw3Wxp9Q=; b=UNQS3gF8UlBdA/wj5QCoeCDExFDPVh3Qbah+qhkqpdWZHIjVLuTMJEzh74CB8cvt1U JhROIC9QJqYp9/xTd31FWzL9Snlpn3AHLDBlgxYBd1Wnz67qbxOhoi6tKcpCwQM3VSgk DkJTsFanfZMQrjHCM1mXzP0LiwtUcndpls4t5l40+zzVM97S0j2G+JfMEDMPi2Gi36hj BOZUQk6O3pOWGpCmzO+3ZzVFJk/5WlwUOiIhd+zqKD5As+DJQZih/J8oAYmqtZvJZE+U hrL+W3SXEHHNM7mO8lQ2BQUrx5hUcMzglb/iamtDN34+UmRcxJuej/udSCAnWbOf/146 s03A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NdIwH3ie; 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 z5si559069plh.373.2017.09.28.20.27.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Sep 2017 20:27:18 -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=NdIwH3ie; 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 551D121F2AF74; Thu, 28 Sep 2017 20:24:02 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400e:c05::234; helo=mail-pg0-x234.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg0-x234.google.com (mail-pg0-x234.google.com [IPv6:2607:f8b0:400e:c05::234]) (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 42E0020945B68 for ; Thu, 28 Sep 2017 20:24:00 -0700 (PDT) Received: by mail-pg0-x234.google.com with SMTP id j16so81519pga.1 for ; Thu, 28 Sep 2017 20:27:15 -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=osmWHjelq3fYM3lm8AbMvOO1rb3nAbS0MjB+HfsJ3b0=; b=NdIwH3iek/ahE7+886T3I97Xv8tnOWn0VcXoM9IqwXFijrNi0jrNjygQrRz9OCGOXD QNwrvk52z2NCkY7JtdRuSKLDoTVpJKLKtz6FOUn3iGaAHNSLHJV4nlrhg/rRmoS4Jylu PVq0ZuOJy+q5N8WZBANXGcBRvHJvt5TuYw5RM= 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=osmWHjelq3fYM3lm8AbMvOO1rb3nAbS0MjB+HfsJ3b0=; b=lN+rWUCm5vj9ZqoH53wUWpFHHaWPH3XRJZagJIMxjQjbIPcYuH7eVDGIV4Ly9blbn4 owRqWQHj1Fd64T8BgljmZJvJXW6mulBZW/o27kMKxFvxTG/Qlq9PKXeOt6hrl1HyJ1AQ ++rn2fcOf7VRnsjtGcTSPK1D0k6RI6/Tk4ekB/jPJWJZZaPzr2x8EtM62bhaMbGRG2Bk Eeu2yidsZo7r0P9hHWlNP3oZuNzyqnhWbuR2GGUxIplo0WXZSZSMt/cR4rw5evfnpEer L2TvSvH20ih0aGeIdUL5qQiyEr+HBiUvQ/sNp4qiXKmbSjzTly69im6J2AUJjwfMu3li jpNQ== X-Gm-Message-State: AHPjjUiClD6iri+8gTcEoRig45+2zvaCrst0OUEdiiiYVA2u2345UfRf WfqNPAxQQroN/Qg4mOJ4IUEqwg== X-Google-Smtp-Source: AOwi7QCeeXXr5vYeprRYeCuEj5WKdkpa3Ps9rp+bLb+xarH+qt7W8LonrVnKA0Y6teEYXWqUeHC6ZQ== X-Received: by 10.84.215.22 with SMTP id k22mr5527819pli.284.1506655635466; Thu, 28 Sep 2017 20:27:15 -0700 (PDT) Received: from localhost.localdomain ([119.145.15.121]) by smtp.gmail.com with ESMTPSA id g16sm5094376pfd.6.2017.09.28.20.27.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Sep 2017 20:27:14 -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: Fri, 29 Sep 2017 11:19:49 +0800 Message-Id: <1506655190-56231-11-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1506655190-56231-1-git-send-email-heyi.guo@linaro.org> References: <1506655190-56231-1-git-send-email-heyi.guo@linaro.org> Subject: [edk2] [PATCH edk2-platforms v5 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, Heyi Guo , wanghuiqiang@huawei.com, guoheyi@huawei.com, waip23@126.com, mengfanrong@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, for it is used by UEFI to access DS3231 RTC chip and provide time services; 2. Modify _HID of I2C2 for matching the string in OS driver; Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- 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)