]> git.baikalelectronics.ru Git - uboot.git/commit
sunxi: clk: enable clk and reset for CCU devices
authorAndre Przywara <andre.przywara@arm.com>
Tue, 29 Jan 2019 15:54:08 +0000 (15:54 +0000)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 30 Jan 2019 12:51:35 +0000 (18:21 +0530)
commit11e8e97b0b0dd01c3856fd8e328b4cf6be1068f9
treee754dd93ca50bf5802b1631dff051e3e0fa451a2
parent9177a0259c811ebf0130ee886141a78b8a481d56
sunxi: clk: enable clk and reset for CCU devices

Some Allwinner clock devices have parent clocks and reset gates itself,
which need to be activated for them to work.

Add some code to just assert all resets and enable all clocks given.
This should enable the A80 MMC config clock, which requires both to be
activated. The full CCU devices typically don't require resets, and have
just fixed clocks as their parents. Since we treat both as optional and
enabling fixed clocks is a NOP, this works for all cases, without the need
to differentiate between those clock types.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Jagan Teki <jagan@openedev.com>
drivers/clk/sunxi/clk_sunxi.c