History log of /arch/sh/kernel/cpu/sh4/clock-sh4-202.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3b8744156dad0f86f55ea5bebf68670156a0f915 29-Feb-2012 Magnus Damm <damm@opensource.se> sh: sh4 sh_clk_ops rename

Convert sh4 SoCs to use sh_clk_ops.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
1522043bf73ef0e9e61dc512a0f3cdbec1cbf89f 06-Jul-2011 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> sh: move CLKDEV_xxx_ID macro to sh_clk.h

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
4073723acb9cdcdbe4df9c0e0c376c65d1697e43 06-Jan-2011 Russell King <rmk+kernel@arm.linux.org.uk> Merge branch 'misc' into devel

Conflicts:
arch/arm/Kconfig
arch/arm/common/Makefile
arch/arm/kernel/Makefile
arch/arm/kernel/smp.c
4ec3eb13634529c0bc7466658d84d0bbe3244aea 06-Jan-2011 Russell King <rmk+kernel@arm.linux.org.uk> Merge branch 'smp' into misc

Conflicts:
arch/arm/kernel/entry-armv.S
arch/arm/mm/ioremap.c
638fa4aad5bbb75c8f0d558aa15dcb543de5fc31 24-Dec-2010 Paul Mundt <lethal@linux-sh.org> sh: Fix up SH4-202 clkfwk build.

Some of the SH4-202 code was overlooked in the set_rate() API conversion,
resulting in:

arch/sh/kernel/cpu/sh4/clock-sh4-202.c: error: too many arguments to function 'clk->ops->set_rate'

Fix it up.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
6d803ba736abb5e122dede70a4720e4843dd6df4 17-Nov-2010 Jean-Christop PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> ARM: 6483/1: arm & sh: factorised duplicated clkdev.c

factorise some generic infrastructure to assist looking up struct clks
for the ARM & SH architecture.

as the code is identical at 99%

put the arch specific code for allocation as example in asm/clkdev.h

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
35a96c739fd7624b8edff990a74b86b5a85342da 15-Nov-2010 Paul Mundt <lethal@linux-sh.org> sh: clkfwk: Kill off now unused algo_id in set_rate op.

Now that clk_set_rate_ex() is gone, there is also no way to get at rate
setting algo id, which is now also completely unused. Kill it off before
new clock ops start using it.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
9c352bcab7f28e472b06c91d57210b93e08f0fbb 11-May-2010 Magnus Damm <damm@opensource.se> sh: switch sh4-202 to clkdev

This patch converts the remaining sh4-202 clocks
to use clkdev for lookup. The now unused name
and id from struct clk are also removed.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
9d56dd3b083a3bec56e9da35ce07baca81030b03 25-Jan-2010 Paul Mundt <lethal@linux-sh.org> sh: Mass ctrl_in/outX to __raw_read/writeX conversion.

The old ctrl in/out routines are non-portable and unsuitable for
cross-platform use. While drivers/sh has already been sanitized, there
is still quite a lot of code that is not. This converts the arch/sh/ bits
over, which permits us to flag the routines as deprecated whilst still
building with -Werror for the architecture code, and to ensure that
future users are not added.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
253b0887b3736160feac9ccdcf146a2073e41463 13-May-2009 Paul Mundt <lethal@linux-sh.org> sh: clkfwk: Rework legacy CPG clock handling.

This moves out the old legacy CPG clocks to their own file, and converts
over the existing users. With these clocks going away and each CPU
dealing with them on their own, CPUs can gradually move over to the new
interface.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
9fe5ee0efb1b1d4a0939bc4252a8427e3337d96a 12-May-2009 Paul Mundt <lethal@linux-sh.org> sh: clkfwk: Use arch_clk_init() for on-chip clock registration.

CPUs registering on-chip clocks should be using arch_clk_init() with the
new scheme so that the CPUs have the opportunity to establish the
topology prior to the initial root clock rate propagation. This ensures
that CPUs with on-chip clocks that use CLK_ENABLE_ON_INIT are properly
enabled at the initial propagation time, without having to further poke
the root clocks.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
f5c84cf50812c80133e64683d0500b2416d55cb3 11-May-2009 Paul Mundt <lethal@linux-sh.org> sh: clkfwk: Tidy up on-chip clock registration and rate propagation.

This tidies up the set_rate hack that the on-chip clocks were abusing to
trigger rate propagation, which is now handled generically.

Additionally, now that CLK_ENABLE_ON_INIT is wired up where it needs to
be for these clocks, the clk_enable() can go away. In some cases this was
bumping up the refcount higher than it should have been.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
4ff29ff8e8723a41e7defd8bc78a7b16cbf940a2 11-May-2009 Paul Mundt <lethal@linux-sh.org> sh: clkfwk: Consolidate the ALWAYS_ENABLED / NEEDS_INIT mess.

There is no real distinction here in behaviour, either a clock needs to
be enabled on initialiation or not. The ALWAYS_ENABLED flag was always
intended to only apply to clocks that were physically always on and could
simply not be disabled at all from software. Unfortunately over time this
was abused and the meaning became a bit blurry.

So, we kill off both of all of those paths now, as well as the newer
NEEDS_INIT flag, and consolidate on a CLK_ENABLE_ON_INIT. Clocks that
need to be enabled on initialization can set this, and it will purposely
enable them and bump the refcount up.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
b68d8201433a91cabbcbeae48b53d8c1c426433a 11-May-2009 Paul Mundt <lethal@linux-sh.org> sh: clkfwk: Make recalc return an unsigned long.

This is prep work for cleaning up some of the rate propagation bits.
Trivial conversion.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
907c9d70042e38efc6a981d425a3d8d98b089cba 04-Jun-2007 Paul Mundt <lethal@linux-sh.org> sh: Fix SH4-202 clock fwk set_rate() mismatch.

With the SH7722 changes, ->set_rate() also takes an algo_id,
SH4-202 was overlooked when this change went in.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
1929cb340b74904c130fdf3de3fe5bbedb68a5aa 24-Apr-2007 dmitry pervushin <dimka@nomadgs.com> sh: SH7722 clock framework support.

This adds support for the SH7722 (MobileR) to the clock framework.

Signed-off-by: dmitry pervushin <dimka@nomadgs.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
1d118562c2067a42d0e8f70671a4ce27d7c6ffee 01-Dec-2006 Paul Mundt <lethal@linux-sh.org> sh: Clock framework tidying.

This syncs up the SH clock framework with the linux/clk.h API,
for which there were only some minor changes required, namely
the clk_get() dev_id and subsequent callsites.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c
36ddf31b689a8c11d424e43565d2aa440b77bbf4 17-Jan-2006 Paul Mundt <lethal@linux-sh.org> [PATCH] sh: Simplistic clock framework

This adds a relatively simplistic clock framework for sh. The initial goal
behind this is to clean up the arch/sh/kernel/time.c mess and to get the CPU
subtype-specific frequency setting and calculation code moved somewhere more
sensible.

This only deals with the core clocks at the moment, though it's trivial for
other drivers to define their own clocks as desired.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Cc: john stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
/arch/sh/kernel/cpu/sh4/clock-sh4-202.c