clk: Add fixed-factor clock driver
authorAnup Patel <Anup.Patel@wdc.com>
Mon, 25 Feb 2019 08:14:55 +0000 (08:14 +0000)
committerAndes <uboot@andestech.com>
Wed, 27 Feb 2019 01:12:33 +0000 (09:12 +0800)
commitb630d57d0ab45639eea02f2671c2aa0d023c89ac
tree62edb2090d371ae6a998d4654443223dee0273d1
parentc40b6df87fc0193a7184ada9f53aaf57cdec0cdf
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>
arch/sandbox/dts/test.dts
doc/device-tree-bindings/clock/fixed-factor-clock.txt [new file with mode: 0644]
drivers/clk/Makefile
drivers/clk/clk_fixed_factor.c [new file with mode: 0644]
test/dm/clk.c