From patchwork Thu Aug 16 12:12:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 144367 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2000521ljj; Thu, 16 Aug 2018 05:14:20 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyjfU9LdhYfjNgtOloGX0gEdi+WqLCuikhs1Y7OYSTEtsZpXlO6CuWSUJ7gGPEWHM+akNM7 X-Received: by 2002:a17:902:934c:: with SMTP id g12-v6mr11780822plp.67.1534421660189; Thu, 16 Aug 2018 05:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534421660; cv=none; d=google.com; s=arc-20160816; b=rUSe6ACXMppzETkvyYr7s/mnMs8qqzFx4dJ5yapDuJzbjPO5BXmeuZMNISpax7W+aW NPpN457acu/zBy2yY/BgeX2yOKuFy6YagAcega6NX86npwVDRsz+1Vd+Mqulhhe28PR/ j8HmpvLoAyFLlVBDBdwROLazqesGk18p46460YEHPjEtWcc2SikjrRR0uo18Kb3/4dLl yzwt6uBY+9Rh3YvRYeJ4Iq493ynJmMu3K7jj7tkdxgKbvDOKsJCxVar6CDPf7yYh6NJr LMLfeKL58SC5634LwsCt6LLjAc4m0iS2s/aS3/QajiigT3V2+B2lravLE2vItAZstt6U mcSQ== 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=XznTq9+ZXm3YcXI1rOCXSwyN3xrhwreN1us4CWHxnI7r2smyOJnKFngR/0VXNzLdWM YPsCZd8jFugf28icajC6GzE2P/jWuB5SCrvQizuGAEwNcviavqYnPkGyZ5bbrsSEFqss pLyTxRxH6PXGQFWHf2SM9aMmW75B4sFxCT/ntx7hM1z2DmnPX40aXH2HpfowgavLdkpK j1ydS4NJRlVYCBkoexMGB4J0K4chhAcTnzXFkQ+3D57sqq7sxuke3wVfUajbtnYMJh9P 3om9HeS9UbfOy235NI9KbLDztlDUqreLbUyUImRXZdfgq9FWVZbf7IcORBtDyazL76Jv fIqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Cqh8XFyu; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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. [198.145.21.10]) by mx.google.com with ESMTPS id v8-v6si9342279plg.117.2018.08.16.05.14.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Aug 2018 05:14:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Cqh8XFyu; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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 1B374210F376C; Thu, 16 Aug 2018 05:14:04 -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 01678210F3777 for ; Thu, 16 Aug 2018 05:14:02 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id x5-v6so1986113pgp.7 for ; Thu, 16 Aug 2018 05:14:02 -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=Cqh8XFyu2VCgugPRLf86U3JuYBlJeFt1tHyIPk3EaeohGLpgMjD+Y6ExUXIHl0I9ca +PvSqVN/T/JO3i/V3sieVp52pOLzO3uF9p3aOkcWKhiAcmXMgOBRwFK2QuyckENPaSEe p4l1yuR0D/8LPaNLYeOhsSC9/kFJotn0Q2zRw= 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=TbE8shIXI4tFNFDJsota4pJYdGLJFNmW1ZbPUjVMScj/fsFr4gSMUqkAntZH2/gQdm GxtPIBf/Seoz2jBEd04ZJA6YONF072R9eItD0YhGtCMAdPGGSID8JO0YazwSYyCRmpe4 Tg0HoasePXvubx2ZHqqOjZv7Ss4yjIAjMSTqj7otOwJePNQLaiUN7oV9Gw+yjcxcWtGC yr4EX7lM8mBefNdiuuoC/KwBt1fe9EMjudThyHK6Q6Dvg7EOoSWnE0jSS03AJlFzHT78 jFuCX66cgz8lQnqCdODoF+h8droIe7SLg8gnQujKUBosTy8LrorUUC1fhLws2xg0fdUu yguw== X-Gm-Message-State: AOUpUlHqfBhzuHQ9LPc1TuM9DivF2PLFFuRNbhQGs6Rywdlfmz4hGydU 4q4aHuRPGiM1uDLmFcJCqwmG6g== X-Received: by 2002:a62:b0c:: with SMTP id t12-v6mr32030116pfi.36.1534421642671; Thu, 16 Aug 2018 05:14:02 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id j27-v6sm46736311pfj.91.2018.08.16.05.13.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Aug 2018 05:14:02 -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: Thu, 16 Aug 2018 20:12:20 +0800 Message-Id: <20180816121239.44129-18-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180816121239.44129-1-ming.huang@linaro.org> References: <20180816121239.44129-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v3 17/36] 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 Reviewed-by: Leif Lindholm 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);