U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bastien Curutchet <bastien.curutchet@bootlin.com>
To: u-boot@lists.denx.de
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	 Tom Rini <trini@konsulko.com>, Lukasz Majewski <lukma@denx.de>,
	 Peng Fan <peng.fan@nxp.com>,
	Jaehoon Chung <jh80.chung@samsung.com>,
	 Heiko Schocher <hs@nabladev.com>,
	 Patrice Chotard <patrice.chotard@foss.st.com>,
	 Anshul Dalal <anshuld@ti.com>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	 Mattijs Korpershoek <mkorpershoek@kernel.org>,
	 Quentin Schulz <quentin.schulz@cherry.de>,
	 Andre Przywara <andre.przywara@arm.com>,
	 Hrushikesh Salunke <h-salunke@ti.com>,
	 Dario Binacchi <dario.binacchi@amarulasolutions.com>,
	 Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>,
	 Casey Connolly <casey.connolly@linaro.org>,
	 Justin Swartz <justin.swartz@risingedge.co.za>,
	 Daniel Palmer <daniel@thingy.jp>, Andrew Davis <afd@ti.com>,
	 Tien Fong Chee <tien.fong.chee@altera.com>,
	 Rasmus Villemoes <ravi@prevas.dk>,
	 Neil Armstrong <neil.armstrong@linaro.org>,
	 Alexey Charkov <alchark@gmail.com>,
	 Bastien Curutchet <bastien.curutchet@bootlin.com>
Subject: [PATCH 1/6] arm: omap: Move PRM I2C channel frequency to vc.c
Date: Tue, 19 May 2026 08:45:38 +0200	[thread overview]
Message-ID: <20260519-omap4-support-v1-1-b4a2a7435775@bootlin.com> (raw)
In-Reply-To: <20260519-omap4-support-v1-0-b4a2a7435775@bootlin.com>

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 <bastien.curutchet@bootlin.com>
---
 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


  reply	other threads:[~2026-05-19  6:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-19  6:45 [PATCH 0/6] arm: omap: Add back omap4 support Bastien Curutchet
2026-05-19  6:45 ` Bastien Curutchet [this message]
2026-05-19  6:45 ` [PATCH 2/6] arm: ti: omap: Extract common clock definitions Bastien Curutchet
2026-05-19  6:45 ` [PATCH 3/6] clk: ti: Remove AM33xx dependency Bastien Curutchet
2026-05-19  6:45 ` [PATCH 4/6] configs: omap4: remove unused boot target devices Bastien Curutchet
2026-05-19  6:45 ` [PATCH 5/6] arm: ti: Introduce back omap4 support Bastien Curutchet
2026-05-19  6:45 ` [PATCH 6/6] board: variscite: add support for the omap4_var_som Bastien Curutchet
2026-05-19 14:03   ` Tom Rini
2026-05-19 14:55     ` Bastien Curutchet
2026-05-19 15:01       ` Tom Rini
2026-05-20  7:03         ` Bastien Curutchet
2026-05-20 14:29           ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260519-omap4-support-v1-1-b4a2a7435775@bootlin.com \
    --to=bastien.curutchet@bootlin.com \
    --cc=afd@ti.com \
    --cc=alchark@gmail.com \
    --cc=alif.zakuan.yuslaimi@altera.com \
    --cc=andre.przywara@arm.com \
    --cc=anshuld@ti.com \
    --cc=casey.connolly@linaro.org \
    --cc=daniel@thingy.jp \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=h-salunke@ti.com \
    --cc=hs@nabladev.com \
    --cc=jh80.chung@samsung.com \
    --cc=justin.swartz@risingedge.co.za \
    --cc=lukma@denx.de \
    --cc=mkorpershoek@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=patrice.chotard@foss.st.com \
    --cc=peng.fan@nxp.com \
    --cc=quentin.schulz@cherry.de \
    --cc=ravi@prevas.dk \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=tien.fong.chee@altera.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox