]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: omap: Move PRM I2C channel frequency to vc.c
authorBastien Curutchet <bastien.curutchet@bootlin.com>
Mon, 8 Jun 2026 13:11:57 +0000 (15:11 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 17 Jun 2026 15:50:35 +0000 (09:50 -0600)
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
arch/arm/mach-omap2/vc.c

index eeb3c6f2a6c73f09afa202818848210947ca5564..aaa5e573115d9674b1f2760ce6f16b4919f67b1d 100644 (file)
 /* 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)
index cb377aa12723fca9b77b1786e65ada0da460124c..92d2682a3f26310bca028760a068c696f4bf246c 100644 (file)
@@ -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