Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0B49BC282D0 for ; Tue, 4 Mar 2025 22:07:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 46F37811B3; Tue, 4 Mar 2025 23:06:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="wNjTeMyF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7CCEE809D0; Tue, 4 Mar 2025 23:06:53 +0100 (CET) Received: from lelvem-ot01.ext.ti.com (lelvem-ot01.ext.ti.com [198.47.23.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 68781811B3 for ; Tue, 4 Mar 2025 23:06:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=a-limaye@ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelvem-ot01.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 524M6hdj3233625 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 4 Mar 2025 16:06:43 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1741126003; bh=NhwgdtmjZr0LGTi+4iG8Xqj3qnWIjri0JKVgfWObkIU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=wNjTeMyFvl4aIMyEwk1abaKYlPDDvZQpLGAA2j/Ec3pjCXTbQtpQj35xjaoBqtIw5 99AnmNMiGw2oJWvhHQwc4wlnRmRbY8Jwq5jLez++wZP3/2QHeec/2Pl7IzfV46hEb2 ZSHomrX8tOXIqhZlpmvv2V0AzvXAjRVdHURTE3gk= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 524M6hNZ027445 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 4 Mar 2025 16:06:43 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 4 Mar 2025 16:06:42 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 4 Mar 2025 16:06:42 -0600 Received: from psdkl-workstation0.dhcp.ti.com (psdkl-workstation0.dhcp.ti.com [10.24.72.128]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 524M6SwF064367; Tue, 4 Mar 2025 16:06:39 -0600 From: Aniket Limaye To: CC: , , , , , , , , , , Aniket Limaye Subject: [PATCH RFC/RFT 3/3] drivers: i2c: Kconfig: Add config for I2C_REPEATED_START Date: Wed, 5 Mar 2025 03:34:11 +0530 Message-ID: <20250304220546.866602-4-a-limaye@ti.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250304220546.866602-1-a-limaye@ti.com> References: <20250304220546.866602-1-a-limaye@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Add a Kconfig option to disable sending Stop conditions between multiple i2c_msgs within a single xfer. Enable it by default for ARCH_K3 platforms. The namespace for the config is not respecting the CONFIG_SYS_I2C convention since the legacy API has already been using CONFIG_I2C_REPEATED_START Signed-off-by: Aniket Limaye --- drivers/i2c/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index cdae6825736..ade86a71fb0 100644 --- a/drivers/i2c/Kconfig +++ b/drivers/i2c/Kconfig @@ -503,6 +503,15 @@ config SYS_I2C_OMAP24XX help Add support for the OMAP2+ I2C driver. +config I2C_REPEATED_START + bool "Enable I2C repeated start" + depends on SYS_I2C_OMAP24XX + default y if ARCH_K3 + help + Enable support for repeated start. Updates driver defaults to not + send a Stop condition and issue Repeated Start (Sr) for subsequent + i2c msgs. + config SYS_I2C_RCAR_I2C bool "Renesas R-Car I2C driver" depends on (RCAR_GEN2 || RCAR_64) && DM_I2C -- 2.48.1