]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: Add K210 pll support
authorSean Anderson <seanga2@gmail.com>
Wed, 24 Jun 2020 10:41:09 +0000 (06:41 -0400)
committerAndes <uboot@andestech.com>
Wed, 1 Jul 2020 07:01:21 +0000 (15:01 +0800)
commit019ef9a3f32642abbf924931ecc9487300e74530
tree4a592a78ca596120cabdb2de8838df947568a9a9
parent675d79073cc347ba72567668da69aebd1d1915fa
clk: Add K210 pll support

This pll code is primarily based on the code from the kendryte standalone
sdk in lib/drivers/sysctl.c. k210_pll_calc_config is roughly analogous to
the algorithm used to set the pll frequency, but it has been completely
rewritten to be fixed-point based.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
CC: Lukasz Majewski <lukma@denx.de>
drivers/clk/Kconfig
drivers/clk/Makefile
drivers/clk/kendryte/Kconfig [new file with mode: 0644]
drivers/clk/kendryte/Makefile [new file with mode: 0644]
drivers/clk/kendryte/pll.c [new file with mode: 0644]
include/kendryte/pll.h [new file with mode: 0644]
include/test/export.h [new file with mode: 0644]
test/dm/Makefile
test/dm/k210_pll.c [new file with mode: 0644]