clk: AST2600: Add mux for EMMC clock
authorEddie James <eajames@linux.ibm.com>
Thu, 9 Jul 2020 19:57:05 +0000 (14:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 07:34:09 +0000 (09:34 +0200)
commit674c07adb8310683b3cab7b5c458d97fbcb0d31f
treeb45dfdb25db4c58cc4d4888af9ec7e53ca166d9c
parent22d643054af634ced5de8061324b8d421a5a381a
clk: AST2600: Add mux for EMMC clock

[ Upstream commit c2407ab3bd55064d459bc822efd1c134e852798c ]

The EMMC clock can be derived from either the HPLL or the MPLL. Register
a clock mux so that the rate is calculated correctly based upon the
parent.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20200709195706.12741-2-eajames@linux.ibm.com
Acked-by: Joel Stanley <joel@jms.id.au>
Fixes: d3d04f6c330a ("clk: Add support for AST2600 SoC")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/clk-ast2600.c