From mboxrd@z Thu Jan 1 00:00:00 1970 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 59930CD4F54 for ; Tue, 19 May 2026 06:46:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C335484659; Tue, 19 May 2026 08:45:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.b="ojqX8AqX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 065258469F; Tue, 19 May 2026 08:45:59 +0200 (CEST) Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2824484119 for ; Tue, 19 May 2026 08:45:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bastien.curutchet@bootlin.com Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id BC23F4E42CEE; Tue, 19 May 2026 06:45:56 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 90AF7606E9; Tue, 19 May 2026 06:45:56 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 3D6C411AF8B97; Tue, 19 May 2026 08:45:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1779173155; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=e/iCegLGN6mA+6dOsZSmm3+G+arpq4Ve1JQUBSs1Xa0=; b=ojqX8AqXltnsLatC06d+XPIl/o+Z1o/KZK5Fx7eI/qyZe9zQkTMt9+FxCxhIKx3Nji9zBG J+zrgupRldAqErSi86mU9I6AgBLiRhSEPaHIhQFDaayavS6VrAOGf6NqSUUyVmwC+gSMxc Fowi+7gqRBMKeJrLTTNkOAI2F6tg0Azy5kVWiSwrSeQdT0dZ7DGaoVnveDL/0nekpRHUbb TLx51C2V+ZMhnKCGFBN6qx56Ywa1Q68pmxBgxqe8zIEtXwud3//O3OjRQXbD5muPAX8IMP kcbCIsYNyfxUWTcDu+lx21WEzdgAwXqHkQyxhhncIoDvXgK/DyZauH+Xs/2knQ== From: Bastien Curutchet Date: Tue, 19 May 2026 08:45:38 +0200 Subject: [PATCH 1/6] arm: omap: Move PRM I2C channel frequency to vc.c MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260519-omap4-support-v1-1-b4a2a7435775@bootlin.com> References: <20260519-omap4-support-v1-0-b4a2a7435775@bootlin.com> In-Reply-To: <20260519-omap4-support-v1-0-b4a2a7435775@bootlin.com> To: u-boot@lists.denx.de Cc: Thomas Petazzoni , Tom Rini , Lukasz Majewski , Peng Fan , Jaehoon Chung , Heiko Schocher , Patrice Chotard , Anshul Dalal , Heinrich Schuchardt , Mattijs Korpershoek , Quentin Schulz , Andre Przywara , Hrushikesh Salunke , Dario Binacchi , Alif Zakuan Yuslaimi , Casey Connolly , Justin Swartz , Daniel Palmer , Andrew Davis , Tien Fong Chee , Rasmus Villemoes , Neil Armstrong , Alexey Charkov , Bastien Curutchet X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 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 PRM_VC_I2C_CHANNEL_FREQ_KHZ is defined in omap5/clock.h but isn't really related to clocks. Since it's only used by mach-omap2/vc.c, move its definition there. Signed-off-by: Bastien Curutchet --- arch/arm/include/asm/arch-omap5/clock.h | 3 --- arch/arm/mach-omap2/vc.c | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/include/asm/arch-omap5/clock.h b/arch/arm/include/asm/arch-omap5/clock.h index eeb3c6f2a6c..aaa5e573115 100644 --- a/arch/arm/include/asm/arch-omap5/clock.h +++ b/arch/arm/include/asm/arch-omap5/clock.h @@ -204,9 +204,6 @@ /* Clock frequencies */ #define OMAP_SYS_CLK_IND_38_4_MHZ 6 -/* PRM_VC_VAL_BYPASS */ -#define PRM_VC_I2C_CHANNEL_FREQ_KHZ 400 - /* CTRL_CORE_SRCOMP_NORTH_SIDE */ #define USB2PHY_DISCHGDET (1 << 29) #define USB2PHY_AUTORESUME_EN (1 << 30) diff --git a/arch/arm/mach-omap2/vc.c b/arch/arm/mach-omap2/vc.c index cb377aa1272..92d2682a3f2 100644 --- a/arch/arm/mach-omap2/vc.c +++ b/arch/arm/mach-omap2/vc.c @@ -46,6 +46,8 @@ #define PRM_VC_VAL_BYPASS_DATA_SHIFT 16 #define PRM_VC_VAL_BYPASS_DATA_MASK 0xFF +#define PRM_VC_I2C_CHANNEL_FREQ_KHZ 400 + /** * omap_vc_init() - Initialization for Voltage controller * @speed_khz: I2C buspeed in KHz -- 2.54.0