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>
Šī revīzija ir iekļauta:
Maxime Ripard
2017-01-19 22:49:26 +01:00
vecāks 0c3c8e1358
revīzija 7c09b85896
2 mainīti faili ar 9 papildinājumiem un 1 dzēšanām

Parādīt failu

@@ -21,6 +21,7 @@
#define CCU_FEATURE_VARIABLE_PREDIV BIT(1)
#define CCU_FEATURE_FIXED_PREDIV BIT(2)
#define CCU_FEATURE_FIXED_POSTDIV BIT(3)
#define CCU_FEATURE_ALL_PREDIV BIT(4)
struct device_node;
@@ -56,6 +57,7 @@ struct device_node;
struct ccu_common {
void __iomem *base;
u16 reg;
u32 prediv;
unsigned long features;
spinlock_t *lock;