openrisc: init: Add support for common clk
authorStafford Horne <shorne@gmail.com>
Tue, 11 Jan 2022 02:55:37 +0000 (11:55 +0900)
committerStafford Horne <shorne@gmail.com>
Tue, 11 Jan 2022 21:13:22 +0000 (06:13 +0900)
commit7f435e42fd6b65fd8759963156e1ef0fb7d213f8
tree259dd1e56a0352dcc00e0e32f2c7ea2f83bbe8c1
parent433fe39f674d58bc7a3e8254a5d2ffc290b7e04e
openrisc: init: Add support for common clk

When testing the new litex_mmc driver it was found to not work on
OpenRISC due to missing support for common clk.  This patch does the
basic initialization to allow OpenRISC to use the common clk framework.

Signed-off-by: Stafford Horne <shorne@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/openrisc/Kconfig
arch/openrisc/kernel/time.c