- 13 7月, 2019 1 次提交
-
-
由 Stephen Rothwell 提交于
Without this we were getting errors like: In file included from drivers/clk/clkdev.c:22:0: drivers/clk/clk.h:36:23: error: static declaration of '__clk_get_hw' follows non-static declaration include/linux/clk-provider.h:808:16: note: previous declaration of '__clk_get_hw' was here Fixes: 59fcdce4 ("clk: Remove ifdef for COMMON_CLK in clk-provider.h") fixes: 73e0e496 ("clkdev: Always allocate a struct clk and call __clk_get() w/ CCF") Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
- 28 6月, 2019 8 次提交
-
-
由 Chunyan Zhang 提交于
sprd_clk_regmap_init() doesn't always return success, adding check for its return value should make the code more strong. Signed-off-by: NChunyan Zhang <zhang.chunyan@linaro.org> Reviewed-by: NBaolin Wang <baolin.wang@linaro.org> [sboyd@kernel.org: Add a missing int ret] Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Claudiu Beznea 提交于
Use at91 specific functions to free all resources in case of error. Signed-off-by: NClaudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: NAlexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Claudiu Beznea 提交于
Improve error path for sama5d4 sck registration. Signed-off-by: NClaudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: NAlexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Claudiu Beznea 提交于
Remove unnecessary line. Signed-off-by: NClaudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: NAlexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Claudiu Beznea 提交于
Improve error path for sam9x5 slow clock registration. Signed-off-by: NClaudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: NAlexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Claudiu Beznea 提交于
Add support to free slow clock oscillator resources. Signed-off-by: NClaudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: NAlexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Claudiu Beznea 提交于
Add support to free slow rc oscillator resources. Signed-off-by: NClaudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: NAlexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Claudiu Beznea 提交于
Add support to free slow oscillator resources. Signed-off-by: NClaudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: NAlexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
- 27 6月, 2019 5 次提交
-
-
由 Claudiu Beznea 提交于
Add support for SAM9X60's slow clock. Signed-off-by: NClaudiu Beznea <claudiu.beznea@microchip.com> Acked-by: NAlexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Claudiu Beznea 提交于
Different IPs uses different bit offsets in registers for the same functionality, thus adapt the driver to support this. Signed-off-by: NClaudiu Beznea <claudiu.beznea@microchip.com> Acked-by: NAlexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Claudiu Beznea 提交于
The slow clock of SAMA5D4 has no bypass support thus remove it. Signed-off-by: NClaudiu Beznea <claudiu.beznea@microchip.com> Acked-by: NAlexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Chunyan Zhang 提交于
The function devm_regmap_init_mmio() wouldn't return NULL pointer for now, so only need to ensure the return value is not an error code. Signed-off-by: NChunyan Zhang <zhang.chunyan@linaro.org> Reviewed-by: NBaolin Wang <baolin.wang@linaro.org> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Chunyan Zhang 提交于
devm_ioremap_resources() automatically requests resources and devm_ wrappers do better error handling and unmapping of the I/O region when needed, that would make drivers more clean and simple. Signed-off-by: NChunyan Zhang <zhang.chunyan@linaro.org> Reviewed-by: NBaolin Wang <baolin.wang@linaro.org> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
- 26 6月, 2019 22 次提交
-
-
由 Thierry Reding 提交于
It turns out that this PLL is not used on Tegra210, so there's no need to enable it via the init table. Remove the init table entry for this PLL to avoid it getting enabled at boot time. If the bootloader enabled it and forgot to turn it off, the common clock framework will now know to disable it because it is unused. Signed-off-by: NThierry Reding <treding@nvidia.com> Acked-by: NJon Hunter <jonathanh@nvidia.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Thierry Reding 提交于
A PLL in IDDQ doesn't work, whether it's enabled or not. This is not a configuration that makes sense, so warn about it. Signed-off-by: NThierry Reding <treding@nvidia.com> Acked-by: NJon Hunter <jonathanh@nvidia.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Thierry Reding 提交于
There is no need to warn if the reference PLL is enabled with the correct defaults. Only warn if the boot values don't match the defaults. Signed-off-by: NThierry Reding <treding@nvidia.com> Acked-by: NJon Hunter <jonathanh@nvidia.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 JC Kuo 提交于
Full-speed and low-speed USB devices do not work with Tegra210 platforms because of incorrect PLLU/PLLU_OUT1 clock settings. When full-speed device is connected: [ 14.059886] usb 1-3: new full-speed USB device number 2 using tegra-xusb [ 14.196295] usb 1-3: device descriptor read/64, error -71 [ 14.436311] usb 1-3: device descriptor read/64, error -71 [ 14.675749] usb 1-3: new full-speed USB device number 3 using tegra-xusb [ 14.812335] usb 1-3: device descriptor read/64, error -71 [ 15.052316] usb 1-3: device descriptor read/64, error -71 [ 15.164799] usb usb1-port3: attempt power cycle When low-speed device is connected: [ 37.610949] usb usb1-port3: Cannot enable. Maybe the USB cable is bad? [ 38.557376] usb usb1-port3: Cannot enable. Maybe the USB cable is bad? [ 38.564977] usb usb1-port3: attempt power cycle This commit fixes the issue by: 1. initializing PLLU_OUT1 before initializing XUSB_FS_SRC clock because PLLU_OUT1 is parent of XUSB_FS_SRC. 2. changing PLLU post-divider to /2 (DIVP=1) according to Technical Reference Manual. Fixes: e745f992 ("clk: tegra: Rework pll_u") Signed-off-by: NJC Kuo <jckuo@nvidia.com> Acked-By: NPeter De Schrijver <pdeschrijver@nvidia.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Nicolas Saenz Julienne 提交于
As 'clk-raspberrypi' depends on RPi's firmware interface, which might be configured as a module, the cpu clock might not be available for the cpufreq driver during it's init process. So we register the 'raspberrypi-cpufreq' platform device after the probe sequence succeeds. Signed-off-by: NNicolas Saenz Julienne <nsaenzjulienne@suse.de> Acked-by: NEric Anholt <eric@anholt.net> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Nicolas Saenz Julienne 提交于
Raspberry Pi's firmware offers an interface though which update it's clock's frequencies. This is specially useful in order to change the CPU clock (pllb_arm) which is 'owned' by the firmware and we're unable to scale using the register interface provided by clk-bcm2835. Signed-off-by: NNicolas Saenz Julienne <nsaenzjulienne@suse.de> Acked-by: NEric Anholt <eric@anholt.net> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Nicolas Saenz Julienne 提交于
Raspberry Pi's firmware controls this pll, we should use the firmware interface to access it. Signed-off-by: NNicolas Saenz Julienne <nsaenzjulienne@suse.de> Acked-by: NEric Anholt <eric@anholt.net> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Vabhav Sharma 提交于
Add clockgen support and configuration for NXP SoC lx2160a with compatible property as "fsl,lx2160a-clockgen". Signed-off-by: NTang Yuantian <andy.tang@nxp.com> Signed-off-by: NYogesh Gaur <yogeshnarayan.gaur@nxp.com> Signed-off-by: NVabhav Sharma <vabhav.sharma@nxp.com> Acked-by: NScott Wood <oss@buserror.net> Acked-by: NStephen Boyd <sboyd@kernel.org> Acked-by: NViresh Kumar <viresh.kumar@linaro.org> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Wolfram Sang 提交于
We have a dedicated pointer for that, so use it. Much easier to read and less computation involved. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: NSimon Horman <horms+renesas@verge.net.au> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Nathan Huckleberry 提交于
Clang produces the following warning drivers/clk/qcom/gcc-msm8996.c:133:32: warning: unused variable 'gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div_map' [-Wunused-const-variable] static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div_map[] = { ^drivers/clk/qcom/gcc-msm8996.c:141:27: warning: unused variable 'gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div' [-Wunused-const-variable] static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div[] = { ^ drivers/clk/qcom/gcc-msm8996.c:187:32: warning: unused variable 'gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div_map' [-Wunused-const-variable] static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div_map[] = { ^ drivers/clk/qcom/gcc-msm8996.c:197:27: warning: unused variable 'gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div' [-Wunused-const-variable] static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div[] = { It looks like these were never used. Fixes: b1e010c0 ("clk: qcom: Add MSM8996 Global Clock Control (GCC) driver") Cc: clang-built-linux@googlegroups.com Link: https://github.com/ClangBuiltLinux/linux/issues/518Suggested-by: NNathan Chancellor <natechancellor@gmail.com> Signed-off-by: NNathan Huckleberry <nhuck@google.com> Reviewed-by: NNathan Chancellor <natechancellor@gmail.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Paul Cercueil 提交于
These functions are not called anywhere anymore, they can safely be removed. Signed-off-by: NPaul Cercueil <paul@crapouillou.net> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Paul Cercueil 提交于
The Low-Power Mode, when enabled, will make the "wait" MIPS instruction suspend the system. This is not really clock-related, but this bit happens to be in the register set of the CGU. Signed-off-by: NPaul Cercueil <paul@crapouillou.net> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Paul Cercueil 提交于
The cgu.h has structures that contain 'clk_onecell_data' and 'clk_hw' structures (no pointers), so the <linux/clk-provider.h> header should be included. Signed-off-by: NPaul Cercueil <paul@crapouillou.net> [sboyd@kernel.org: Drop removal of includes in drivers] Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Leonard Crestez 提交于
This allows to easily determine the parent in shell scripts without parsing more complex files. Add the clk_parent file for all clks which can have a parent, not just muxes. This way it can be used to determine the clk tree structure without parsing more complex files. Signed-off-by: NLeonard Crestez <leonard.crestez@nxp.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Geert Uytterhoeven 提交于
Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Geert Uytterhoeven 提交于
A boolean expression already evaluates to true or false, so there is no need to check the result and return true or false explicitly. Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: NJerome Brunet <jbrunet@baylibre.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Dinh Nguyen 提交于
The fixed dividers for the emac clocks should be 2 not 4. Signed-off-by: NDinh Nguyen <dinguyen@kernel.org> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Dinh Nguyen 提交于
The nand_clk is actually called the nand_x_clk and the parent is the l4_mp_clk, not the l4_main_clk. The nand_clk is a child of the nand_x_clk and has a fixed divider of 4. The same is true for the nand_ecc_clk. Signed-off-by: NDinh Nguyen <dinguyen@kernel.org> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Chris Packham 提交于
The 98DX1135 is a switch chip with an integrated CPU. This is similar to the 98DX4122 except that the core clock speed is fixed to 166Mhz. Signed-off-by: NChris Packham <chris.packham@alliedtelesis.co.nz> Reviewed-by: NAndrew Lunn <andrew@lunn.ch> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Sylwester Nawrocki 提交于
Add managed version of the clk_bulk_get_optional() helper function. Signed-off-by: NSylwester Nawrocki <s.nawrocki@samsung.com> [sboyd@kernel.org: Mark __devm_clk_bulk_get() static] Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Sylwester Nawrocki 提交于
clk_bulk_get_optional() allows to get a group of clocks where one or more is optional. For a not available clock, e.g. not specifed in the clock consumer node in DT, its respective struct clk pointer will be NULL. This allows for operating on a group of returned clocks (struct clk_bulk_data array) with existing clk_bulk* APIs. Signed-off-by: NSylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
由 Stephen Boyd 提交于
The possible parent printing function duplicates a bunch of if conditions. Pull that into another function so we can print an extra character at the end, either a space or a newline. This way we can add the required newline that got lost here and also shorten the code. Fixes: 2d156b78 ("clk: Fix debugfs clk_possible_parents for clks without parent string names") Cc: Chen-Yu Tsai <wens@csie.org> Tested-by: NChen-Yu Tsai <wens@csie.org> Reviewed-by: NChen-Yu Tsai <wens@csie.org> Signed-off-by: NStephen Boyd <sboyd@kernel.org>
-
- 24 6月, 2019 2 次提交
-
-
由 Anson Huang 提交于
Call imx_register_uart_clocks() API to keep uart clocks enabled when earlyprintk or earlycon is active. Signed-off-by: NAnson Huang <Anson.Huang@nxp.com> Signed-off-by: NShawn Guo <shawnguo@kernel.org>
-
由 Anson Huang 提交于
Some of i.MX SoCs' clock driver use platform driver model, and they need to call imx_register_uart_clocks() API, so imx_register_uart_clocks() API should NOT be in .init section. Signed-off-by: NAnson Huang <Anson.Huang@nxp.com> Signed-off-by: NShawn Guo <shawnguo@kernel.org>
-
- 22 6月, 2019 2 次提交
-
-
由 Chen-Yu Tsai 提交于
With the new clk parenting code and SUNXI_CCU_GATE macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing SUNXI_CCU_GATE definitions to SUNXI_CCU_GATE_HWS as the parent clock is internal to this clock unit. To avoid duplication of clock definitions, we fix up the parent reference for A83T in the A83T init function. Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com> Signed-off-by: NChen-Yu Tsai <wens@csie.org>
-
由 Chen-Yu Tsai 提交于
With the new clk parenting code and SUNXI_CCU_GATE macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing SUNXI_CCU_GATE definitions to SUNXI_CCU_GATE_DATA to specify the parent clock. Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com> Signed-off-by: NChen-Yu Tsai <wens@csie.org>
-