clk: Add a bypass clock for K210
authorSean Anderson <seanga2@gmail.com>
Wed, 24 Jun 2020 10:41:10 +0000 (06:41 -0400)
committerAndes <uboot@andestech.com>
Wed, 1 Jul 2020 07:01:21 +0000 (15:01 +0800)
commit1a198cf8862b0540894ba6569c55244b1bd3e824
tree1d27557aa70afeda04ca94a9deb0703aee5581ad
parent019ef9a3f32642abbf924931ecc9487300e74530
clk: Add a bypass clock for K210

This is a small driver to do a software bypass of a clock if hardware
bypass is not working. I have tried to write this in a generic fashion, so
that it could be potentially broken out of the kendryte code at some future
date. For the K210, it is used to have aclk bypass pll0 and use in0 instead
so that the CPU keeps on working.

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