]> git.baikalelectronics.ru Git - kernel.git/commit
clk: mmp: pxa168: control shared SDH bits with separate clock
authorDoug Brown <doug@schmorgal.com>
Sun, 12 Jun 2022 19:29:37 +0000 (12:29 -0700)
committerStephen Boyd <sboyd@kernel.org>
Fri, 30 Sep 2022 20:34:07 +0000 (13:34 -0700)
commita586512b9963b4338e47a5ef031f0f0574986745
treea35922d4152ab3fa71fdd37a576b1282ac8915dd
parent012ae70281a84083acbaef51c05d041b8082aafc
clk: mmp: pxa168: control shared SDH bits with separate clock

The PXA168 has a peculiar setup with the AXI clock enable control for
the SDHC controllers. The bits in the SDH0 register control the AXI
clock enable for both SDH0 and SDH1. Likewise, the bits in the SDH2
register control both SDH2 and SDH3. This is modeled with two new
parentless clocks that control the shared bits.

Previously, SDH0 had to be enabled in order for SDH1 to be used, and
when SDH1 was enabled, unused bits in the SDH1 register were being
controlled. This fixes those issues. A future commit will add support
for these new shared clocks to be enabled by the PXA168 SDHC driver.

Signed-off-by: Doug Brown <doug@schmorgal.com>
Link: https://lore.kernel.org/r/20220612192937.162952-13-doug@schmorgal.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mmp/clk-of-pxa168.c