From patchwork Tue Aug 14 08:08:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 144132 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4049887ljj; Tue, 14 Aug 2018 01:11:36 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzruElvtgDFKgTXtRmBfapdN/S/3n2blLXQRMelZ47plnWoVCVQJxUcC1atLUMUBV/YEBy6 X-Received: by 2002:a17:902:8a8e:: with SMTP id p14-v6mr19320978plo.213.1534234296124; Tue, 14 Aug 2018 01:11:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534234296; cv=none; d=google.com; s=arc-20160816; b=Rrabyn0aTd3mYKdvBVmKsug87SP9a1qCfD+Qze9XLJnSFqNbDNNrNZrMSIQgnZ6Ji/ DUGLszHum7FEiZrjYDCrv3W5HFEFX5rcJGMsfwgVnYc+qdKbv3Y0dI+xn0xL89QKPjT1 pgmwmvoxw6xfPNX8hlgrutYAYhLnnLu82eMXcMcTWCE23ml5w6T3jAC2inx9WRFgH4U8 x79utUmW2AiQOFBErpXIxQW5IuqPeaa+jWeNRo38t9SWCICivprws1efucGVu9t8LCJ8 k5P8PxnKpE9kMbEfwlpdaE1+9ZXdzJRAlAZVv/y/XpN4kmuORS+LHZ7heyc1tU8S5y8I vQGw== 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=sXEqKEU3mH9xio5krNarPj01c7m9zyTT8V9RrdCcmBY=; b=LyvU0CBue1xTbK8K6Un/0VEEbhVVUA1Vcwrbo+tsgmYhvKrgd72lTuOXAgPROrjdzE GFjiqsyqIqVOQDf626z3E7Rf1LNmg3b/peLfTeVg9H/ITzSOkWIR0EOJ+MTNcglqQZWS +8yp7PTogNPI7pspOxpvlnmWAC2hcN4f2qph1T5ILK8NFvcKzESTPbTGQiqONGzP3ptU 27MLXcP91F/MM9StaBql73qFvY/PCq0ApLXMQjC6cByYPVKSGQsFIhu1g+Fisst5GYS1 etRrSlRcHtTwda9lVbp/ScY7V96NL4l4WgM/l0WWnUJjtdBElkbkDa5JeVikXex/9pel Mu5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fw9paPKJ; 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 n8-v6si15536812plk.255.2018.08.14.01.11.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 01:11:36 -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=fw9paPKJ; 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 0AD0A210F16CD; Tue, 14 Aug 2018 01:10:50 -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:4864:20::542; helo=mail-pg1-x542.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (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 243B5210F16D5 for ; Tue, 14 Aug 2018 01:10:49 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id y4-v6so8779200pgp.9 for ; Tue, 14 Aug 2018 01:10:49 -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=zlFw10OVKsTDe9v8RlzrrPGTtTM/DziLmkb0SeZanO8=; b=fw9paPKJQ2OyR6fQT9tU5ngb4YS1/kyQhGrhtCMmzAbaOVJ1rK/Vc+Z+C86ptZaOJq LZ5rYcLocw7YABb+DGfTRtEe1VoqQSDotfu/dxAPDid2R2I5pDVeYflBpk1soCqfnBhB M7VGEGTNkmFGIbnM4ddqSjC9xdqY7NOsqBeSY= 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=zlFw10OVKsTDe9v8RlzrrPGTtTM/DziLmkb0SeZanO8=; b=Ng4xDKqPl4/E3NgHNx9ql0VMl2HZoZg/AB/HopJ7AwaxnYpRGuQPLStsVxURCzeTVC RnAF8TXT1sKOBRQn81OIuqJjtHU/s0lLIaPKC2ZTuK9pnSAQxXZKhyvXivm3MAdrS9S6 H1y10EuYhu+K6gkNOx0kvrTWQ/Q/lBBCCNHyvFsm5CPqbBlOu7cMr0eOgADXHQZFnzLz iHDLk8qvnxhomP6hzQyrz/lYyi6Fyu38OQ22CfEkErPHxPQ2yzIwJgz28MMnMrajtJuj 4r791oAfRQnw/LdLWkp3KSKteIUyxt00DZUCUpbjctNGdxevUlQGfJccdqzqZcLBWndK yNnw== X-Gm-Message-State: AOUpUlGBfHKS6CKvI6DeDvXYOxDTOp39LjSRi1X/OOu3zRSAaP7Pr97m 23v41d8rkOh+sTHQUg4WlZDeCg== X-Received: by 2002:a63:4d5:: with SMTP id 204-v6mr20002445pge.129.1534234248834; Tue, 14 Aug 2018 01:10:48 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id h130-v6sm72905670pgc.88.2018.08.14.01.10.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Aug 2018 01:10:48 -0700 (PDT) From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Tue, 14 Aug 2018 16:08:44 +0800 Message-Id: <20180814080903.50466-25-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180814080903.50466-1-ming.huang@linaro.org> References: <20180814080903.50466-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v2 24/43] Hisilicon/I2C: Fix a typo issue X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangming23@huawei.com, xinliang.liu@linaro.org, john.garry@huawei.com, zhangjinsong2@huawei.com, guoheyi@huawei.com, huangdaode@hisilicon.com, michael.d.kinney@intel.com, lersek@redhat.com, wanghuiqiang@huawei.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Modify spedd to Speed. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- Silicon/Hisilicon/Library/I2CLib/I2CHw.h | 2 +- Silicon/Hisilicon/Library/I2CLib/I2CLib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.17.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Silicon/Hisilicon/Library/I2CLib/I2CHw.h b/Silicon/Hisilicon/Library/I2CLib/I2CHw.h index d77aea509e..6fd7b8183e 100644 --- a/Silicon/Hisilicon/Library/I2CLib/I2CHw.h +++ b/Silicon/Hisilicon/Library/I2CLib/I2CHw.h @@ -81,7 +81,7 @@ struct { UINT32 master : 1 ; - UINT32 spedd : 2 ; + UINT32 Speed : 2 ; UINT32 slave_10bit : 1 ; UINT32 master_10bit : 1 ; UINT32 restart_en : 1 ; diff --git a/Silicon/Hisilicon/Library/I2CLib/I2CLib.c b/Silicon/Hisilicon/Library/I2CLib/I2CLib.c index 59633106ce..ed44ac204f 100644 --- a/Silicon/Hisilicon/Library/I2CLib/I2CLib.c +++ b/Silicon/Hisilicon/Library/I2CLib/I2CLib.c @@ -158,7 +158,7 @@ I2CInit ( I2C_REG_READ (Base + I2C_CON_OFFSET, I2cControlReg.Val32); I2cControlReg.bits.master = 1; - I2cControlReg.bits.spedd = 0x1; + I2cControlReg.bits.Speed = 0x1; I2cControlReg.bits.restart_en = 1; I2cControlReg.bits.slave_disable = 1; I2C_REG_WRITE (Base + I2C_CON_OFFSET, I2cControlReg.Val32);