clk: sunxi-ng: Implement global pre-divider
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 19 Jan 2017 21:49:26 +0000 (22:49 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 23 Jan 2017 10:45:02 +0000 (11:45 +0100)
commit7c09b858961df25a3bd1ac22e802525795338a6d
tree725afd33be597d655533de50cb85f377a45af4af
parent0c3c8e135897eb8e896a0bb82a5aff6c9bc158cc
clk: sunxi-ng: Implement global pre-divider

Some clocks have a global pre-divider that applies to all their parents.

Since it might also apply to clocks that have a single parent, this is
merged in the ccu_common structure, unlike the other pre-divider settings
that are tied to a specific index, and thus a specific parent.

Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi-ng/ccu_common.h
drivers/clk/sunxi-ng/ccu_mux.c