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)
commite11a47f52098dc88d82c2a22f165ac9f4f7a5997
treea35922d4152ab3fa71fdd37a576b1282ac8915dd
parent238e73edcea557b1aef35113cf4333b41ebe35d9
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