Added basic support for RK3188 SOC.
Merge branch 'topgit/devel' of github.com:mmind/linux-rockchip into topgit/devel
Add in timer midifications from mmind00
ARM: RK3188 SOC required dts related files added.
clk: divider: replace bitfield width with mask

The forthcoming Device Tree binding for the divider clock type will use
a bitfield mask instead of bitfield width, which is what the current
basic divider implementation uses.

This patch replaces the u8 width in struct clk_divider with a u32 mask.
The divider code is updated to use the bit mask internally but the two
registration functions still accept the width to maintain compatibility
with existing users.

Also updated in this patch is the clk-private.h divider macro and two
Freescale clock divider implementations that are based on struct
clk_divider.

Cc: Sascha Hauer <kernel@pengutronix.de>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
clk: of: helper for determining number of parent clocks

Walks the "clocks" array of parent clock phandles and returns the
number.

Signed-off-by: Mike Turquette <mturquette@linaro.org>
clk: dt: binding for basic multiplexer clock

Device Tree binding for the basic clock multiplexer, plus the setup
function to register the clock.  Based on the existing fixed-clock
binding.

Includes minor beautification of clk-provider.h where some whitespace is
added and of_fixed_factor_clock_setup is relocated to maintain a
consistent style.

Tero Kristo contributed helpful bug fixes to this patch.

Signed-off-by: Mike Turquette <mturquette@linaro.org>
clk: dt: binding for basic divider clock

Devicetree binding for the basic clock divider, plus the setup function
to register the clock.  Based on the existing fixed-clock binding.

Tero Kristo contributed helpful bug fixes to this patch.

Signed-off-by: Mike Turquette <mturquette@linaro.org>
clk: dt: binding for basic gate clock

Device Tree binding for the basic clock gate, plus the setup function to
register the clock.  Based on the existing fixed-clock binding.

A different approach to this was proposed in 2012[1] and a similar
binding was proposed more recently[2] if anyone wants some extra
reading.

[1] http://article.gmane.org/gmane.linux.documentation/5679
[2] http://lists.infradead.org/pipermail/linux-arm-kernel/2012-December/137878.html

Tero Kristo contributed helpful bug fixes to this patch.

Signed-off-by: Mike Turquette <mturquette@linaro.org>
temp move to dt clock bindings
ARM: RK3188 preliminary dw_apb_timer modifications for 64bit counters.
ARM: RK3188 added compatible entry for timers of this SOC.
ARM RK3188 removed temporary dw_apb_timer2.c
ARM: RK3188 added quirk APBTMR_QUIRK_NO_EOI for different end-of-interrupt handling.
ARM: RK3188 simplified apbt_enable_int.
ARM: RK3188 renamed APBTMP_QUIRK_TWO_VALUEREGS to APBTMP_QUIRK_TWO_VALUEREGS for better understanding.
ARM: RK3188 added APBTMR_QUIRK_INVERSE_INTMASK for inverted interrupt enable bit handling.
clocksource: dw_apb_timer: removed sched_quirks variable

sched_quirks is not set with the correct quirks content and therefore
does not set the correct offset on 64 bit counters.
Variable exchanged by quirks and sched_quirks removed.
clocksource: dw_apb_timer: corrected preset of freerunning 64 bit counters

It is unclear for now if 64 bit counter width is support by the rest of
the system. For now I preset the higher 32 bits to 0 to keep
compatibility to current code.
clocksource: dw_apb_timer: fixed missing tilde in setting APBTMR_CONTROL_INT
clocksource: dw_apb_timer: added quirk for inverted timer mode handling

Some variants of SOCs using dw_apb_timer havee inverted logic for the
bit that sets one-shot / periodic mode or free running timer. This
commit adds the new APBTMR_QUIRK_INVERSE_PERIODIC.