- Aug 02, 2017
-
-
Marek Vasut authored
Add clock driver for the RCar Gen3 R8A7795 and R8A7796 SoCs . This driver allows reading out the clock configuration set by previous boot stages and enabling and disabling clock using the MSTP registers. Setting clock is not supported thus far. Signed-off-by:
Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by:
Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
-
- May 10, 2017
-
-
Álvaro Fernández Rojas authored
This is a simplified version of linux/arch/mips/bcm63xx/clk.c Signed-off-by:
Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Mar 17, 2017
-
-
Vikas Manocha authored
add basic clock driver support for stm32f7 to enable clocks required by the peripherals. Signed-off-by:
Vikas Manocha <vikas.manocha@st.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Feb 17, 2017
-
-
Stefan Herbrechtsmeier authored
Add a clock framework driver for the zynq platform. The driver is based on the platform zynq clock driver but reworked to use static functions instead of run-time generated objects even for unused clocks. Additionally the CONFIG_ZYNQ_PS_CLK_FREQ is replaced by the ps-clk-frequency from the device tree. Signed-off-by:
Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
- Jan 28, 2017
-
-
maxims@google.com authored
Clock Driver This driver is ast2500-specific and is not compatible with earlier versions of this chip. The differences are not that big, but they are in somewhat random places, so making it compatible with ast2400 is not worth the effort at the moment. SDRAM MC driver The driver is very ast2500-specific and is completely incompatible with previous versions of the chip. The memory controller is very poorly documented by Aspeed in the datasheet, with any mention of the whole range of registers missing. The initialization procedure has been basically taken from Aspeed SDK, where it is implemented in assembly. Here it is rewritten in C, with very limited understanding of what exactly it is doing. Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Jan 10, 2017
-
-
Siva Durga Prasad Paladugu authored
Add basic clock driver support for zynqmp which sets the required clock for GEM controller Signed-off-by:
Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by:
Michal Simek <michal.simek@xilinx.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Sep 21, 2016
-
-
Paul Burton authored
Add a simple driver for the clocks provided by the MIPS Boston development board. The system provides information about 2 clocks whose rates are fixed by the bitfile flashed in the boards FPGA, and this driver simply reads the rates of these 2 clocks. Signed-off-by:
Paul Burton <paul.burton@imgtec.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Aug 15, 2016
-
-
Wenyou Yang authored
The patch is referred to at91 clock driver of Linux, to make the clock node descriptions in DT aligned with the Linux's. Signed-off-by:
Wenyou Yang <wenyou.yang@atmel.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Stephen Warren authored
In Tegra186, on-SoC clocks are manipulated using IPC requests to the BPMP (Boot and Power Management Processor). This change implements a driver that does that. A tegra/ sub-directory is created to follow the existing pattern. It is unconditionally selected by CONFIG_TEGRA186 since virtually any Tegra186 build of U-Boot will need the feature. Signed-off-by:
Stephen Warren <swarren@nvidia.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Tom Warren <twarren@nvidia.com>
-
- Aug 05, 2016
-
-
Heiko Stübner authored
With the number of Rockchip clock drivers increasing, don't clutter up the core drivers/clk directory with them and instead move them out of the way into a separate subdirectory. Suggested-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Heiko Stuebner <heiko@sntech.de> Acked-by:
Simon Glass <sjg@chromium.org> Updated for rk3399: Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Kever Yang authored
This patch add driver for: - clock driver including set_rate for cpu, mmc, vop, I2C. - sysreset driver - grf syscon driver Signed-off-by:
Kever Yang <kever.yang@rock-chips.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Jun 19, 2016
-
-
Stephen Warren authored
The following changes are made to the clock API: * The concept of "clocks" and "peripheral clocks" are unified; each clock provider now implements a single set of clocks. This provides a simpler conceptual interface to clients, and better aligns with device tree clock bindings. * Clocks are now identified with a single "struct clk", rather than requiring clients to store the clock provider device and clock identity values separately. For simple clock consumers, this isolates clients from internal details of the clock API. * clk.h is split so it only contains the client/consumer API, whereas clk-uclass.h contains the provider API. This aligns with the recently added reset and mailbox APIs. * clk_ops .of_xlate(), .request(), and .free() are added so providers can customize these operations if needed. This also aligns with the recently added reset and mailbox APIs. * clk_disable() is added. * All users of the current clock APIs are updated. * Sandbox clock tests are updated to exercise clock lookup via DT, and clock enable/disable. * rkclk_get_clk() is removed and replaced with standard APIs. Buildman shows no clock-related errors for any board for which buildman can download a toolchain. test/py passes for sandbox (which invokes the dm clk test amongst others). Signed-off-by:
Stephen Warren <swarren@nvidia.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
- May 25, 2016
-
-
Thomas Abraham authored
Add a clock driver for Exynos7420 SoC. There are about 25 clock controller blocks in Exynos7420 out of which support for topc, top0 and peric1 blocks are added in this initial version of the driver. Cc: Minkyu Kang <mk7.kang@samsung.com> Cc: Simon Glass <sjg@chromium.org> Signed-off-by:
Thomas Abraham <thomas.ab@samsung.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Minkyu Kang <mk7.kang@samsung.com>
-
- Feb 14, 2016
-
-
Masahiro Yamada authored
This is the initial commit for the UniPhier clock drivers. Currently, only the Media I/O clock is supported. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
- Feb 01, 2016
-
-
Purna Chandra Mandal authored
PIC32 clock module consists of multiple oscillators, PLLs, mutiplexers and dividers capable of supplying clock to various controllers on or off-chip. Signed-off-by:
Purna Chandra Mandal <purna.mandal@microchip.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
- Jan 22, 2016
-
-
Masahiro Yamada authored
This commit intends to implement "fixed-clock" as in Linux. (drivers/clk/clk-fixed-rate.c in Linux) If you need a very simple clock to just provide fixed clock rate like a crystal oscillator, you do not have to write a new driver. This driver can support it. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Dec 01, 2015
-
-
huang lin authored
Add a driver for setting up and modifying the various PLLs, peripheral clocks and mmc clocks on RK3036 Signed-off-by:
Lin Huang <hl@rock-chips.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Sep 03, 2015
-
-
Simon Glass authored
Add a driver for setting up and modifying the various PLLs and peripheral clocks on the RK3288. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jul 21, 2015
-
-
Simon Glass authored
Add tests of each API call using a sandbox clock device. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Clocks are an important feature of platforms and have become increasing complex with time. Most modern SoCs have multiple PLLs and dozens of clock dividers which distribute clocks to on-chip peripherals. Some SoC implementations have a clock API which is private to that SoC family, e.g. Tegra and Exynos. This is useful but it would be better to have a common API that can be understood and used throughout U-Boot. Add a simple clock API as a starting point. It supports querying and setting the rate of a clock. Each clock is a device. To reduce memory and processing overhead the concept of peripheral clocks is provided. These do not need to be explicit devices - it is possible to write a driver that can adjust the I2C clock (for example) without an explicit I2C clock device. This can dramatically reduce the number of devices (and associated overhead) in a complex SoC. Clocks are referenced by a number, and it is expected that SoCs will define that numbering themselves via an enum. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Apr 30, 2015
-
-
Simon Glass authored
It is useful to be able to keep track of the available CPUs in a multi-CPU system. This uclass is mostly intended for use with SMP systems. The uclass provides methods for getting basic information about each CPU. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-