| #
4bdbd8e9 |
| 06-May-2023 |
Joseph Chen <chenjh@rock-chips.com> |
dm: clk: Enable clk_set_defaults() support for SPL
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I37a1aa6e9074536ede20749dd1f1930d6d9410e3
|
| #
1a4f6af8 |
| 02-Mar-2020 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
|
| #
977da8af |
| 03-Apr-2018 |
Neil Armstrong <narmstrong@baylibre.com> |
UPSTREAM: clk: Add get/enable/disable/release for a bulk of clocks
This patch adds a "bulk" API to the clock API in order to get/enable/disable /release a group of clocks associated with a device.
UPSTREAM: clk: Add get/enable/disable/release for a bulk of clocks
This patch adds a "bulk" API to the clock API in order to get/enable/disable /release a group of clocks associated with a device.
This bulk API will avoid adding a copy of the same code to manage a group of clocks in drivers.
Conflicts: drivers/clk/clk-uclass.c
Change-Id: I7f992b206662bf5f931a835d98b3e3cd0f4347f1 Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit a855be87da49ba750e83ecc526235fe33099f76e)
show more ...
|
| #
9f8e13d3 |
| 21-Mar-2018 |
Finley Xiao <finley.xiao@rock-chips.com> |
rockchip: board: probe clks after load kernel dtb
pmucru isn't referenced on some platforms, so pmucru driver can't probe that the "assigned-clocks" is unused.
Change-Id: I390b302c9101f87dcd9264fda
rockchip: board: probe clks after load kernel dtb
pmucru isn't referenced on some platforms, so pmucru driver can't probe that the "assigned-clocks" is unused.
Change-Id: I390b302c9101f87dcd9264fda39e1f2e0e66d2b3 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
show more ...
|
| #
693b63de |
| 20-Mar-2018 |
Finley Xiao <finley.xiao@rock-chips.com> |
clk: Don't break when set default rate unsuccessfully
Change-Id: I8073d6a68602aa5a8bc79accb13e95fcb2142cfa Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
|
| #
0b2881ac |
| 08-Jan-2018 |
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> |
clk: implement clk_set_defaults()
Linux uses the properties 'assigned-clocks', 'assigned-clock-parents' and 'assigned-clock-rates' to configure the clock subsystem for use with various peripheral no
clk: implement clk_set_defaults()
Linux uses the properties 'assigned-clocks', 'assigned-clock-parents' and 'assigned-clock-rates' to configure the clock subsystem for use with various peripheral nodes.
This implements clk_set_defaults() and hooks it up with the general device probibin in drivers/core/device.c: when a new device is probed, clk_set_defaults() will be called for it and will process the properties mentioned above.
Note that this functionality is designed to fail gracefully (i.e. if a clock-driver does not implement set_parent(), we simply accept this and ignore the error) as not to break existing board-support.
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Tested-by: David Wu <david.wu@rock-chips.com>
Series-changes: 2 - Fixed David's email address.
Series-version: 2
Cover-letter: clk: support assigned-clock, assigned-clock-parents, assigned-clock-rates
For various peripherals on Rockchip SoCs (e.g. for the Ethernet GMAC), the parent-clock needs to be set via the DTS. This adds the required plumbing and implements the GMAC case for the RK3399. END
(cherry picked from commit f4fcba5c5baaaa9d477d753f97124efdb8e45893)
Change-Id: I549891987c5a3e8546b96f1f54ad575950f92b12 Signed-off-by: David Wu <david.wu@rock-chips.com>
show more ...
|
| #
2ae83ee4 |
| 08-Jan-2018 |
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> |
clk: refactor clk_get_by_index() into clk_get_by_indexed_prop()
The logic in clk_get_by_index() may be useful for other properties than 'clocks': e.g. 'assigned-clocks' and 'assigned-clock-parents'
clk: refactor clk_get_by_index() into clk_get_by_indexed_prop()
The logic in clk_get_by_index() may be useful for other properties than 'clocks': e.g. 'assigned-clocks' and 'assigned-clock-parents' follows the same model.
This commit refactors clk_get_by_index() by introducing an internal function clk_get_by_indexed_prop() that allows to specify the name of the property to process. The original clk_get_by_index() call is simply directed through this helper function with the property name fixed to "clocks".
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Tested-by: David Wu <david.wu@rock-chips.com>
Series-changes: 2 - Fixed David's email address.
(cherry picked from commit 95f9a7e5957093612b1e8447ac5460a6adcea3ba)
Change-Id: I898e38a99e63c851a0c8285670a4c86a711a6972 Signed-off-by: David Wu <david.wu@rock-chips.com>
show more ...
|
| #
4686bbff |
| 08-Jan-2018 |
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> |
clk: add clk_set_parent()
Clocks may support multiple parents: this change introduces an optional operation on the clk-uclass to set a clock's parent.
Signed-off-by: Philipp Tomsich <philipp.tomsic
clk: add clk_set_parent()
Clocks may support multiple parents: this change introduces an optional operation on the clk-uclass to set a clock's parent.
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Tested-by: David Wu <david.wu@rock-chips.com>
Series-changes: 2 - Fixed David's email address.
(cherry picked from commit f7d1046da18fd03a047b5f4d290a8ab8550ebf73)
Change-Id: I92065a132988a66b7d86a936766429ea024f4d1e Signed-off-by: David Wu <david.wu@rock-chips.com>
show more ...
|
| #
eda90cbc |
| 15-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
clk: Remove superfluous gd declarations
The clk uclass was converted to support a live device tree recently, hence the global data pointer declarations are no longer needed.
Reviewed-by: Simon Glas
clk: Remove superfluous gd declarations
The clk uclass was converted to support a live device tree recently, hence the global data pointer declarations are no longer needed.
Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc> (cherry picked from commit 7fe1b063d8eef2549bd53d618dcecb6723e1354c)
Change-Id: If3dbb3dfc7b2ab5a94846c0e11635cc1c2af563c Signed-off-by: David Wu <david.wu@rock-chips.com>
show more ...
|
| #
7c101424 |
| 15-Jan-2018 |
Mario Six <mario.six@gdsys.cc> |
clk: clk-uclass: Fix style violations
checkpatch.pl complains that the clk_ops structures used in clk-uclass.c ought to be const, so we mark them as const.
Reviewed-by: Simon Glass <sjg@chromium.or
clk: clk-uclass: Fix style violations
checkpatch.pl complains that the clk_ops structures used in clk-uclass.c ought to be const, so we mark them as const.
Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc> (cherry picked from commit 268453be7c8f9fb93e1c40b9ce5f7382335ebeb4)
Change-Id: I4939e3354672f1200a8bcee9f747df5ccca1214d Signed-off-by: David Wu <david.wu@rock-chips.com>
show more ...
|
| #
f9faa230 |
| 29-Aug-2017 |
Simon Glass <sjg@chromium.org> |
dtoc: Put phandle args in an array
We want to support more than one phandle argument. It makes sense to use an array for this rather than discrete struct members. Adjust the code to support this. Re
dtoc: Put phandle args in an array
We want to support more than one phandle argument. It makes sense to use an array for this rather than discrete struct members. Adjust the code to support this. Rename the member to 'arg' instead of 'id'.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
3a40acd4 |
| 29-Aug-2017 |
Simon Glass <sjg@chromium.org> |
dtoc: Rename the phandle struct
Rather than naming the phandle struct according to the number of cells it uses (e.g. struct phandle_2_cell) name it according to the number of arguments it has (e.g.
dtoc: Rename the phandle struct
Rather than naming the phandle struct according to the number of cells it uses (e.g. struct phandle_2_cell) name it according to the number of arguments it has (e.g. struct phandle_1_arg). This is a more intuitive naming.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
724f9587 |
| 15-May-2017 |
Ziyuan Xu <xzy.xu@rock-chips.com> |
clk: introduce clk_phase get/set function & callback
A common operation for a clock signal generator is to shift the phase of that signal. This patch introduces a new function to the clk.h API to dy
clk: introduce clk_phase get/set function & callback
A common operation for a clock signal generator is to shift the phase of that signal. This patch introduces a new function to the clk.h API to dynamically adjust the phase of a clock signal. Additionally this patch introduces support for the new function in the clock framework via the .set_phase & .get_phase callback in struct clk_ops.
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
show more ...
|
| #
211aaf30 |
| 29-Jul-2017 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-usb
|
| #
b108d8a0 |
| 25-Jul-2017 |
Patrice Chotard <patrice.chotard@st.com> |
clk: fix compilation errors for poplar platform
Move clk_release_all() prototype and definition inside OF_CONTROL flag to avoid following compilation error for poplar platform:
aarch64: + poplar
clk: fix compilation errors for poplar platform
Move clk_release_all() prototype and definition inside OF_CONTROL flag to avoid following compilation error for poplar platform:
aarch64: + poplar +drivers/usb/host/built-in.o: In function `ehci_usb_remove': +drivers/usb/host/ehci-generic.c:159: undefined reference to `clk_release_all' +drivers/usb/host/built-in.o: In function `ehci_usb_probe': +drivers/usb/host/ehci-generic.c:133: undefined reference to `clk_release_all' +make[1]: *** [u-boot] Error 139 +make: *** [sub-make] Error 2
Introduced by 4e542c4 clk: add clk_release_all()
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
show more ...
|
| #
82a8a669 |
| 18-Jul-2017 |
Patrice Chotard <patrice.chotard@st.com> |
clk: add clk_release_all()
Add clk_release_all() method which Disable/Free an array of clocks that has been previously requested by clk_request/get_by_*()
Signed-off-by: Patrice Chotard <patrice.ch
clk: add clk_release_all()
Add clk_release_all() method which Disable/Free an array of clocks that has been previously requested by clk_request/get_by_*()
Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
aa9bb094 |
| 31-May-2017 |
Simon Glass <sjg@chromium.org> |
dm: clk: Update uclass to support livetree
Update the clk uclass to support a live device tree.
Signed-off-by: Simon Glass <sjg@chromium.org>
|
| #
a4e0ef50 |
| 19-May-2017 |
Simon Glass <sjg@chromium.org> |
clk: Modify xlate() method for livetree
Update the xlate() method to use ofnode_phandle_args instead of the fdtdec variant. This will allow drivers to support a live device tree.
Signed-off-by: Sim
clk: Modify xlate() method for livetree
Update the xlate() method to use ofnode_phandle_args instead of the fdtdec variant. This will allow drivers to support a live device tree.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
21342d4a |
| 08-Feb-2017 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-dm
|
| #
e160f7d4 |
| 17-Jan-2017 |
Simon Glass <sjg@chromium.org> |
dm: core: Replace of_offset with accessor
At present devices use a simple integer offset to record the device tree node associated with the device. In preparation for supporting a live device tree,
dm: core: Replace of_offset with accessor
At present devices use a simple integer offset to record the device tree node associated with the device. In preparation for supporting a live device tree, which uses a node pointer instead, refactor existing code to access this field through an inline function.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
1df182dd |
| 28-Oct-2016 |
Tom Rini <trini@konsulko.com> |
Merge branch 'master' of git://git.denx.de/u-boot-atmel
|
| #
3f56b132 |
| 27-Sep-2016 |
Wenyou Yang <wenyou.yang@atmel.com> |
clk: clk-uclass: Assign clk->dev before call .of_xlate
In order to make clk->dev available in ops->of_xlate() to get the clock ID from the 'reg' property of the clock node, assign the clk->dev befor
clk: clk-uclass: Assign clk->dev before call .of_xlate
In order to make clk->dev available in ops->of_xlate() to get the clock ID from the 'reg' property of the clock node, assign the clk->dev before calling ops->of_xlate().
Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Acked-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
4504062b |
| 14-Oct-2016 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-fdt
|
| #
b02e4044 |
| 02-Oct-2016 |
Simon Glass <sjg@chromium.org> |
libfdt: Bring in upstream stringlist functions
These have now landed upstream. The naming is different and in one case the function signature has changed. Update the code to match.
This applies the
libfdt: Bring in upstream stringlist functions
These have now landed upstream. The naming is different and in one case the function signature has changed. Update the code to match.
This applies the following upstream commits by Thierry Reding <treding@nvidia.com> :
604e61e fdt: Add functions to retrieve strings 8702bd1 fdt: Add a function to get the index of a string 2218387 fdt: Add a function to count strings
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
9f03247e |
| 22-Jul-2016 |
Tom Rini <trini@konsulko.com> |
Merge branch 'master' of git://www.denx.de/git/u-boot-microblaze
|