summaryrefslogtreecommitdiff
path: root/include/kendryte/pll.h
Commit message (Collapse)AuthorAgeFilesLines
* clk: kendryte/pll.h: do not redefine nop()Heinrich Schuchardt2020-08-251-0/+5
| | | | | | | | | The kendryte PLL code uses nop as barrier. The macro is not defined for the sandbox on x86 but is defined on RISC-V. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Bin Meng <bin.meng@windriver.com>
* clk: Add K210 pll supportSean Anderson2020-07-011-0/+57
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>