Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp398781pxh; Tue, 9 Nov 2021 12:31:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJ6ISLyjr0HEPoMSHvQaaldj58KXjimIQKAPc866Cp64w4N9Vc1X/mzD0Tt2Ut2Rxqmosn X-Received: by 2002:a5d:9d95:: with SMTP id ay21mr7092811iob.72.1636489889635; Tue, 09 Nov 2021 12:31:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636489889; cv=none; d=google.com; s=arc-20160816; b=S12/pksgj3nq6jToGk0qC8SibwkX5pDbNvL6hBTszLkO02SQXd5JVNIo3HRNAXzHf2 9tY7sV7ByzvhdKImMgsDQfolUbbyHovxKbwFYPFI8QlrldGIFt+w8nlOD2h7Pzw5rTR3 AkxbcfmKWv/mMrF9fkiPNtGgvuJwo1OBjcRmTrI9qSoDXPA6XmzDBcX/p8nLc+ijxSrh bMElBHIcjKLmN77dQZKyhu7MfSHg9tt4JjR9lJFhMJuDmRNsSG8LzgL6SR5Q4+H4IiJ9 CGNhU5VKFmHTIDG2rWyr3Sh3I2+uZ8YSSsjeYC8ydGZy/vnga1TGIq/b7T3g88ZhdI3K lB6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=FBnj7GgbimxtWn+fhNcH/8GZv5wO2ALZKFcQ/SU3WHw=; b=gdf+CYYAzfS5P95bJvrK0z4BBTKmx4YY8Mo8PzcLVplT8YpXTA9tV24GxLdlqzcsMO 2wxttPWv8gV3lCmNOA+lFjPSlqsPfknJFHrI8GQl6V8AoPut+zm06q5XKIlqs+nUzZil ULo8olhy5Ucqu9B1AbHAaYKc8PrcOo08LT2U4JYKKmDcr68nahqiKxsMQIx/eoprIGLO HCQci6xxZ3uVYxTk5k2LbH3mFVlJxnllpHc9CaSHer1WdpSd8NjBn8dCLm3azABIO1IH z8V1HewcZiyDIIwkMzAdzr+AJVS2hQ1tNwENVnUa70J6ut4dEFAgu+mFo/toh+LyWdG0 CrSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p15si44924864ilo.46.2021.11.09.12.31.14; Tue, 09 Nov 2021 12:31:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245370AbhKIKin (ORCPT + 99 others); Tue, 9 Nov 2021 05:38:43 -0500 Received: from mga03.intel.com ([134.134.136.65]:4311 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245347AbhKIKil (ORCPT ); Tue, 9 Nov 2021 05:38:41 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10162"; a="232368048" X-IronPort-AV: E=Sophos;i="5.87,220,1631602800"; d="scan'208";a="232368048" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2021 02:35:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,220,1631602800"; d="scan'208";a="503453985" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by orsmga008.jf.intel.com with ESMTP; 09 Nov 2021 02:35:53 -0800 From: lakshmi.sowjanya.d@intel.com To: linux-i2c@vger.kernel.org Cc: linux-kernel@vger.kernel.org, wsa@kernel.org, jarkko.nikula@linux.intel.com, bala.senthil@intel.com, pandith.n@intel.com, lakshmi.sowjanya.d@intel.com Subject: [PATCH v1 1/2] i2c: designware-pci: Add support for Fast Mode Plus and High Speed Mode Date: Tue, 9 Nov 2021 16:05:51 +0530 Message-Id: <20211109103552.18677-1-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lakshmi Sowjanya D Add support to configure HCNT, LCNT values for Fast Mode Plus and High Speed Mode. Signed-off-by: Lakshmi Sowjanya D --- drivers/i2c/busses/i2c-designware-pcidrv.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/i2c/busses/i2c-designware-pcidrv.c b/drivers/i2c/busses/i2c-designware-pcidrv.c index 0f409a4c2da0..174938fc7a7e 100644 --- a/drivers/i2c/busses/i2c-designware-pcidrv.c +++ b/drivers/i2c/busses/i2c-designware-pcidrv.c @@ -41,8 +41,12 @@ enum dw_pci_ctl_id_t { struct dw_scl_sda_cfg { u32 ss_hcnt; u32 fs_hcnt; + u32 fp_hcnt; + u32 hs_hcnt; u32 ss_lcnt; u32 fs_lcnt; + u32 fp_lcnt; + u32 hs_lcnt; u32 sda_hold; }; @@ -306,8 +310,12 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev, cfg = controller->scl_sda_cfg; dev->ss_hcnt = cfg->ss_hcnt; dev->fs_hcnt = cfg->fs_hcnt; + dev->fp_hcnt = cfg->fp_hcnt; + dev->hs_hcnt = cfg->hs_hcnt; dev->ss_lcnt = cfg->ss_lcnt; dev->fs_lcnt = cfg->fs_lcnt; + dev->fp_lcnt = cfg->fp_lcnt; + dev->hs_lcnt = cfg->hs_lcnt; dev->sda_hold_time = cfg->sda_hold; } -- 2.17.1