diff options
author | Anup Patel <Anup.Patel@wdc.com> | 2019-02-25 08:14:55 +0000 |
---|---|---|
committer | Andes <uboot@andestech.com> | 2019-02-27 09:12:33 +0800 |
commit | b630d57d0ab45639eea02f2671c2aa0d023c89ac (patch) | |
tree | 62edb2090d371ae6a998d4654443223dee0273d1 /arch | |
parent | c40b6df87fc0193a7184ada9f53aaf57cdec0cdf (diff) | |
download | u-boot-b630d57d0ab45639eea02f2671c2aa0d023c89ac.tar.gz |
clk: Add fixed-factor clock driver
This patch adds fixed-factor clock driver which derives clock
rate by dividing (div) and multiplying (mult) fixed factors
to a parent clock.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sandbox/dts/test.dts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index d4c708c79e..87d8e5bcc9 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -203,6 +203,14 @@ #clock-cells = <0>; clock-frequency = <1234>; }; + + clk_fixed_factor: clk-fixed-factor { + compatible = "fixed-factor-clock"; + #clock-cells = <0>; + clock-div = <3>; + clock-mult = <2>; + clocks = <&clk_fixed>; + }; }; clk_sandbox: clk-sbox { |