Lines Matching +full:omap3 +full:- +full:interface +full:- +full:clock
1 // SPDX-License-Identifier: GPL-2.0-only
3 * OMAP3 Clock init
6 * Tero Kristo (t-[email protected])
12 #include <linux/clk-provider.h>
15 #include "clock.h"
36 * omap3430es2_clk_ssi_find_idlest - return CM_IDLEST info for SSI
51 memcpy(idlest_reg, &clk->enable_reg, sizeof(*idlest_reg)); in omap3430es2_clk_ssi_find_idlest()
52 idlest_reg->offset &= ~0xf0; in omap3430es2_clk_ssi_find_idlest()
53 idlest_reg->offset |= 0x20; in omap3430es2_clk_ssi_find_idlest()
66 * omap3430es2_clk_dss_usbhost_find_idlest - CM_IDLEST info for DSS, USBHOST
72 * Some OMAP modules on OMAP3 ES2+ chips have both initiator and
84 memcpy(idlest_reg, &clk->enable_reg, sizeof(*idlest_reg)); in omap3430es2_clk_dss_usbhost_find_idlest()
86 idlest_reg->offset &= ~0xf0; in omap3430es2_clk_dss_usbhost_find_idlest()
87 idlest_reg->offset |= 0x20; in omap3430es2_clk_dss_usbhost_find_idlest()
106 * omap3430es2_clk_hsotgusb_find_idlest - return CM_IDLEST info for HSOTGUSB
122 memcpy(idlest_reg, &clk->enable_reg, sizeof(*idlest_reg)); in omap3430es2_clk_hsotgusb_find_idlest()
123 idlest_reg->offset &= ~0xf0; in omap3430es2_clk_hsotgusb_find_idlest()
124 idlest_reg->offset |= 0x20; in omap3430es2_clk_hsotgusb_find_idlest()
137 * am35xx_clk_find_idlest - return clock ACK info for AM35XX IPSS
143 * The interface clocks on AM35xx IPSS reflects the clock idle status
145 * bit. A value of 1 indicates that clock is enabled.
152 memcpy(idlest_reg, &clk->enable_reg, sizeof(*idlest_reg)); in am35xx_clk_find_idlest()
153 *idlest_bit = clk->enable_bit + AM35XX_IPSS_ICK_EN_ACK_OFFSET; in am35xx_clk_find_idlest()
158 * am35xx_clk_find_companion - find companion clock to @clk
159 * @clk: struct clk * to find the companion clock of
160 * @other_reg: void __iomem ** to return the companion clock CM_*CLKEN va in
161 * @other_bit: u8 ** to return the companion clock bit shift in
164 * only an interface clock (such as HECC) don't have a companion
165 * clock. Right now, this code relies on the hardware exporting a bit
167 * nonexistent 'companion clock' is active. Future patches will
168 * associate this type of code with per-module data structures to
175 memcpy(other_reg, &clk->enable_reg, sizeof(*other_reg)); in am35xx_clk_find_companion()
176 if (clk->enable_bit & AM35XX_IPSS_ICK_MASK) in am35xx_clk_find_companion()
177 *other_bit = clk->enable_bit + AM35XX_IPSS_ICK_FCK_OFFSET; in am35xx_clk_find_companion()
179 *other_bit = clk->enable_bit - AM35XX_IPSS_ICK_FCK_OFFSET; in am35xx_clk_find_companion()
188 * am35xx_clk_ipss_find_idlest - return CM_IDLEST info for IPSS
203 memcpy(idlest_reg, &clk->enable_reg, sizeof(*idlest_reg)); in am35xx_clk_ipss_find_idlest()
205 idlest_reg->offset &= ~0xf0; in am35xx_clk_ipss_find_idlest()
206 idlest_reg->offset |= 0x20; in am35xx_clk_ipss_find_idlest()
270 * omap3_clk_lock_dpll5 - locks DPLL5
272 * Locks DPLL5 to a pre-defined frequency. This is required for proper
281 * Errata sprz319f advisory 2.1 documents a USB host clock drift issue in omap3_clk_lock_dpll5()
284 * host clock rate, its .set_rate handler() will detect that frequency in omap3_clk_lock_dpll5()