u-boot-brain/doc/imx
Sean Anderson 78ce0bd3ac clk: Always use the supplied struct clk
CCF clocks should always use the struct clock passed to their methods for
extracting the driver-specific clock information struct. Previously, many
functions would use the clk->dev->priv if the device was bound. This could
cause problems with composite clocks. The individual clocks in a composite
clock did not have the ->dev field filled in. This was fine, because the
device-specific clock information would be used. However, since there was
no ->dev, there was no way to get the parent clock. This caused the
recalc_rate method of the CCF divider clock to fail. One option would be to
use the clk->priv field to get the composite clock and from there get the
appropriate parent device. However, this would tie the implementation to
the composite clock. In general, different devices should not rely on the
contents of ->priv from another device.

The simple solution to this problem is to just always use the supplied
struct clock. The composite clock now fills in the ->dev pointer of its
child clocks.  This allows child clocks to make calls like clk_get_parent()
without issue.

imx avoided the above problem by using a custom get_rate function with
composite clocks.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Acked-by: Lukasz Majewski <lukma@denx.de>
2020-07-01 15:01:21 +08:00
..
ahab doc: ahab: Add encrypted boot documentation for i.MX8/8x devices 2020-05-01 13:46:22 +02:00
clk clk: Always use the supplied struct clk 2020-07-01 15:01:21 +08:00
common imx: mxs: Fix location for the elftosb tool 2019-10-08 16:36:36 +02:00
habv4 imx: replace CONFIG_SECURE_BOOT with CONFIG_IMX_HAB 2019-10-08 16:36:37 +02:00
misc doc: update reference to README.imximage 2020-04-16 23:06:54 -04:00
mkimage doc: imx: mkimage: introduce i.MX8 image format 2019-10-08 16:35:59 +02:00