From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AA+uWPzyRZOD/zbnRVRQHJgi6ZXQTDLmNapfU4oS+1/fnREsdQ07FVJL6Oi2LIuQQBUR34dsbOKhgw== 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 Cc: ard.biesheuvel@linaro.org, michael.d.kinney@intel.com, lersek@redhat.com, guoheyi@huawei.com, wanghuiqiang@huawei.com, huangming23@huawei.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, john.garry@huawei.com, xinliang.liu@linaro.org, Ming Huang 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: [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: , X-List-Received-Date: Thu, 16 Aug 2018 12:14:03 -0000 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(-) 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); -- 2.17.0