dm: Rename dev_addr..() functionsThese support the flat device tree. We want to use the dev_read_..()prefix for functions that support both flat tree and live tree. So renamethe existing function
dm: Rename dev_addr..() functionsThese support the flat device tree. We want to use the dev_read_..()prefix for functions that support both flat tree and live tree. So renamethe existing functions to avoid confusion.In the end we will have: 1. dev_read_addr...() - works on devices, supports flat/live tree 2. devfdt_get_addr...() - current functions, flat tree only 3. of_get_address() etc. - new functions, live tree onlyAll drivers will be written to use 1. That function will in turn calleither 2 or 3 depending on whether the flat or live tree is in use.Note this involves changing some dead code - the imx_lpi2c.c file.Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
clk: convert API to match reset/mailbox styleThe following changes are made to the clock API:* The concept of "clocks" and "peripheral clocks" are unified; each clock provider now implements a s
clk: convert API to match reset/mailbox styleThe 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 buildmancan download a toolchain.test/py passes for sandbox (which invokes the dm clk test amongstothers).Signed-off-by: Stephen Warren <swarren@nvidia.com>Acked-by: Simon Glass <sjg@chromium.org>
clk: exynos: add clock driver for Exynos7420 SocAdd a clock driver for Exynos7420 SoC. There are about 25 clock controllerblocks in Exynos7420 out of which support for topc, top0 and peric1 blocks
clk: exynos: add clock driver for Exynos7420 SocAdd a clock driver for Exynos7420 SoC. There are about 25 clock controllerblocks in Exynos7420 out of which support for topc, top0 and peric1 blocksare 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>