- Jan 16, 2020
-
-
Sam Shih authored
This patch fix clock-rate overflow problem in mediatek clock driver common part. Signed-off-by:
Sam Shih <sam.shih@mediatek.com> Reviewed-by:
Ryder Lee <ryder.lee@mediatek.com>
-
Sam Shih authored
This patch add clock driver for MediaTek MT7622 SoC. Signed-off-by:
Ryder Lee <ryder.lee@mediatek.com> Signed-off-by:
Sam Shih <sam.shih@mediatek.com>
-
Chunfeng Yun authored
This is used to avoid clk_enable() return -ENOSYS. Signed-off-by:
Chunfeng Yun <chunfeng.yun@mediatek.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Ryder Lee <ryder.lee@mediatek.com>
-
Chunfeng Yun authored
Sometimes we may need get (optional) clock without a device, that means use ofnode. e.g. when the phy node has subnode, and there is no device created for subnode, in this case, we need these new APIs to get subnode's clock. Signed-off-by:
Chunfeng Yun <chunfeng.yun@mediatek.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Ryder Lee <ryder.lee@mediatek.com>
-
Chunfeng Yun authored
Add valid check for clk->dev, it's useful when get optional clock even when the clk point is valid, but its dev will be NULL. Signed-off-by:
Chunfeng Yun <chunfeng.yun@mediatek.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Ryder Lee <ryder.lee@mediatek.com>
-
Chunfeng Yun authored
If skip all return error number, it may skip some real error cases, so only skip the error when the clock is not provided in DTS Signed-off-by:
Chunfeng Yun <chunfeng.yun@mediatek.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Ryder Lee <ryder.lee@mediatek.com>
-
Chunfeng Yun authored
The SSUSB IP's clocks come from ssusbsys module on mt7629, so add its driver Signed-off-by:
Chunfeng Yun <chunfeng.yun@mediatek.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Ryder Lee <ryder.lee@mediatek.com>
-
mingming lee authored
Add configurable pcw_chg_reg/ibits/fmin to mtk_pll to support mt8512
-
mingming lee authored
Add new set_clr_upd mux type and related operation to mtk common clock driver to support mt8512
-
mingming lee authored
Add clock driver for MediaTek MT8512 SoC, include topckgen, apmixedsys and infracfg support. Signed-off-by:
mingming lee <mingming.lee@mediatek.com>
-
- Jan 14, 2020
-
-
Giulio Benetti authored
Add i.MXRT1050 clk driver support. Signed-off-by:
Giulio Benetti <giulio.benetti@benettiengineering.com>
-
Giulio Benetti authored
Implement set_rate() for pfd. Signed-off-by:
Giulio Benetti <giulio.benetti@benettiengineering.com> Reviewed-by:
Lukasz Majewski <lukma@denx.de>
-
Giulio Benetti authored
Add support for PLLV3 AV type. Signed-off-by:
Giulio Benetti <giulio.benetti@benettiengineering.com>
-
Giulio Benetti authored
Add PLLV3_SYS support by adding set/get_rate() for PLLV3_SYS but keeping generic enable()/disable(). Add a different driver because ops are different respect to GENERIC/USB. Signed-off-by:
Giulio Benetti <giulio.benetti@benettiengineering.com> Reviewed-by:
Lukasz Majewski <lukma@denx.de>
-
Giulio Benetti authored
Add generic set_rate() support. Signed-off-by:
Giulio Benetti <giulio.benetti@benettiengineering.com> Reviewed-by:
Lukasz Majewski <lukma@denx.de>
-
Giulio Benetti authored
Add disable() support. Signed-off-by:
Giulio Benetti <giulio.benetti@benettiengineering.com> Reviewed-by:
Lukasz Majewski <lukma@denx.de>
-
Giulio Benetti authored
Before set_rate() pllv3 needs enable() to power the pll up. Add enable() taking into account different power_bit and different powerup_set, because some pll needs its power_bit to be set or reset to be powered on. Signed-off-by:
Giulio Benetti <giulio.benetti@benettiengineering.com>
-
Giulio Benetti authored
div_mask is different for GENERIC and USB pll, so set it according. Signed-off-by:
Giulio Benetti <giulio.benetti@benettiengineering.com> Reviewed-by:
Lukasz Majewski <lukma@denx.de>
-
Giulio Benetti authored
Better to register the 2 clock as 2 different drivers because they work slightly differently depending on power_bit and powerup_set bits coming on next patches. Signed-off-by:
Giulio Benetti <giulio.benetti@benettiengineering.com> Reviewed-by:
Lukasz Majewski <lukma@denx.de>
-
Anatolij Gustschin authored
Since commit d02be21d ("i2c: imx_lpi2c: add ipg clk") getting I2C clocks doesn't work. Add I2C IPG clock IDs to related switch statements to fix it. Signed-off-by:
Anatolij Gustschin <agust@denx.de> Cc: Lukasz Majewski <lukma@denx.de> Reviewed-by:
Peng Fan <peng.fan@nxp.com>
-
- Jan 08, 2020
-
-
Peng Fan authored
Add i.MX8MP clk driver for i.MX8MP CLK driver model usage Signed-off-by:
Peng Fan <peng.fan@nxp.com>
-
Peng Fan authored
Add imx_clk_mux2_flags which will be used by i.MX8MP Signed-off-by:
Peng Fan <peng.fan@nxp.com>
-
Rasmus Villemoes authored
The current mpc83xx_clk driver is broken for any board for which mpc83xx_has_pci() is true, i.e. anything not MPC8308: When is_clk_valid() reports that MPC83XX_CLK_PCI is valid, init_all_clks() proceeds to call init_single_clk(), but that doesn't know about either MPC83XX_CLK_PCI or has any handling of the TYPE_SCCR_ONOFF mode correctly returned by retrieve_mode(). Hence init_single_clk() ends up returning -EINVAL, and the whole board hangs in serial_init(). The quickest fix is to simply pretend that clock is invalid for all, since nobody can have been relying on it. Adding proper support seems to be a bit more involved than just handling TYPE_SCCR_ONOFF: - The power-on-reset value of SCCR[PCICM] is 0, so mpc83xx_clk_enable() would probably need to be tought to enable the clock. - The frequency of PCI_SYNC_OUT is either SYS_CLK_IN or SYS_CLK_IN/2 depending on the CFG_CLKIN_DIV configuration input, but that can't be read from software, so to properly fill out ->speed[MPC83XX_CLK_PCI] I think one would need guidance from Kconfig or dtb. Partially fixes: 07d538d2 clk: Add MPC83xx clock driver Signed-off-by:
Rasmus Villemoes <rasmus.villemoes@prevas.dk> Reviewed-by:
Mario Six <mario.six@gdsys.cc>
-
- Jan 07, 2020
-
-
Simon Glass authored
At present the clock driver reads its ofdata in the probe() method. This is not correct although it is often harmless. However in this case it causes a problem, something like this: - ast_get_scu() is called (from somewhere) to get the SCI address - this probes the clock - first sets up ofdata (which does nothing at present) - DM marks clock device as active - DM calls pinctrl - pinctrl probes and calls ast_get_scu() in ast2500_pinctrl_probe() - ast_get_scu() probes the clock, but sees it already marked as probed - ast_get_scu() accesses the clock's private data, with scu as NULL - DM calls clock probe function ast2500_clk_probe() which reads scu By putting the read of scu into the correct method, scu is read as part of ofdata setup, and everything is OK. Note: This problem did not matter until now since DM always probed all parents before reading a child's ofdata. The fact that pinctrl is a child of clock seems to trigger this strange bug. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Cédric Le Goater <clg@kaod.org>
-
Sughosh Ganu authored
Add an entry for allowing clock enablement for the random number generator peripheral, RNG1. Signed-off-by:
Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by:
Patrice Chotard <patrice.chotard@st.com> Acked-by:
Patrick Delaunay <patrick.delaunay@st.com>
-
Ley Foon Tan authored
Add clock manager driver for Agilex. Provides clock initialization and get_rate functions. agilex-clock.h is from Linux commit ID cd2e1ad12247. Signed-off-by:
Chee Hong Ang <chee.hong.ang@intel.com> Signed-off-by:
Ley Foon Tan <ley.foon.tan@intel.com> Reviewed-by:
Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
-
- Dec 06, 2019
-
-
Frieder Schrempf authored
The 24MHz oscillator clock is referenced by "clock-osc-24m" and not "osc_24m". Signed-off-by:
Frieder Schrempf <frieder.schrempf@kontron.de> Reviewed-by:
Peng Fan <peng.fan@nxp.com>
-
- Dec 03, 2019
-
-
mingming lee authored
Add clock driver for MediaTek MT8518 SoC. Signed-off-by:
mingming lee <mingming.lee@mediatek.com>
-
- Dec 02, 2019
-
-
Simon Glass authored
This function belongs in time.h so move it over and add a comment. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Simon Glass authored
At present this function sits in its own file but it does not really justify it. There are similar string functions in vsprintf.h, so move it there. Also add the missing function comment. Use the vsprintf.h include file explicitly where needed. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
- Nov 17, 2019
-
-
Finley Xiao authored
Add clk controller driver for RK3308 SOC. This patch depends on Elaine's pll patch[0]. [0]http://patchwork.ozlabs.org/patch/1183718/ Signed-off-by:
Andy Yan <andy.yan@rock-chips.com> Reviewed-by:
Kever Yang <kever.yang@rock-chips.com>
-
Elaine Zhang authored
Common PLL setup function, compatible with different SOC. Mainly for the subsequent new SOC use. Signed-off-by:
Elaine Zhang <zhangqing@rock-chips.com> Reviewed-by:
Kever Yang <kever.yang@rock-chips.com>
-
Heiko Stuebner authored
CONFIG_IS_ENABLED() needs the config name like used in Kconfig, so without the leading CONFIG_. The clock drivers all wrongly check for CONFIG_RESET_ROCKCHIP, fix that Signed-off-by:
Heiko Stuebner <heiko.stuebner@theobroma-systems.com> Reviewed-by:
Kever Yang <kever.yang@rock-chips.com>
-
Heiko Stuebner authored
rockchip_reset_bind() already does the needed init for the reset registers, only referenced the wrong cru structure. So we can get rid of the open-coded reset init and just fix the correct cru reference. Signed-off-by:
Heiko Stuebner <heiko.stuebner@theobroma-systems.com> Reviewed-by:
Kever Yang <kever.yang@rock-chips.com>
-
Kever Yang authored
The px30 contains 2 separate clock controllers, pmucru and cru. Add drivers for them. Signed-off-by:
Kever Yang <kever.yang@rock-chips.com> Signed-off-by:
Heiko Stuebner <heiko.stuebner@theobroma-systems.com> Reviewed-by:
Kever Yang <kever.yang@rock-chips.com>
-
- Nov 10, 2019
-
-
Simon South authored
Add a call to rk3328_configure_cpu() during initialization to set the CPU-clock frequency. Signed-off-by:
Simon South <simon@simonsouth.net> Reviewed-by:
Kever Yang <kever.yang@rock-chips.com>
-
- Nov 07, 2019
-
-
Keerthy authored
Notify AVS driver upon setting clock rate so that voltage is changed accordingly. Signed-off-by:
Keerthy <j-keerthy@ti.com>
-
- Nov 05, 2019
-
-
Peng Fan authored
Add set_parent callback, then assigned-clock-parents in dts could be work. Signed-off-by:
Peng Fan <peng.fan@nxp.com> Reviewed-by:
Frieder Schrempf <frieder.schrempf@kontron.de> Tested-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Peng Fan authored
Add enet ref/timer/PHY_REF/root clk which are required to make enet function well. Signed-off-by:
Peng Fan <peng.fan@nxp.com> Reviewed-by:
Frieder Schrempf <frieder.schrempf@kontron.de> Tested-by:
Frieder Schrempf <frieder.schrempf@kontron.de>
-
Peng Fan authored
Add i.MX8MM ccf driver support. Modifed from Linux Kernel 5.3.0-rc1, drop some entries that not used in U-Boot and adapt to U-Boot CCF style. Signed-off-by:
Peng Fan <peng.fan@nxp.com> Cc: Lukasz Majewski <lukma@denx.de>
-