<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/mips/ath79/clock.c, branch linux-4.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.1.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.1.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2013-09-03T21:22:18Z</updated>
<entry>
<title>MIPS: ath79: Switch to the clkdev framework</title>
<updated>2013-09-03T21:22:18Z</updated>
<author>
<name>Gabor Juhos</name>
</author>
<published>2013-08-28T08:41:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2c4f1ac5623750e715ae2a5fc7e0569999b9bfc5'/>
<id>urn:sha1:2c4f1ac5623750e715ae2a5fc7e0569999b9bfc5</id>
<content type='text'>
The ath79 code uses static clock devices and
provides its own clk_{get,put} implementations.

Change the code to use dynamically allocated
clock devices and register the clocks within
the clkdev framework.

Additionally, remove the local clk_{get,put}
implementation. The clkdev framework has a
common implementation of those.

Also move the call of ath79_clock_init() from
plat_mem_init() to plat_time_init(). Otherwise
it would not be possible to use memory allocation
functions from ath79clock_init() becasuse the
memory subsystem is not yet initialized when
plat_mem_init() runs.

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5780/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: Use local variables for clock rates</title>
<updated>2013-09-03T21:22:18Z</updated>
<author>
<name>Gabor Juhos</name>
</author>
<published>2013-08-28T08:41:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6612a6885b47e73a55d159e5aa4654de89fbfc29'/>
<id>urn:sha1:6612a6885b47e73a55d159e5aa4654de89fbfc29</id>
<content type='text'>
Use local variables for ref, cpu, ddr and ahb
rates in SoC specific clock init functions.

The patch has no functional changes, it is
an interim change in preparation of the next
patch.

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5781/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: Use ath79_get_sys_clk_rate to get basic clock rates</title>
<updated>2013-09-03T21:22:17Z</updated>
<author>
<name>Gabor Juhos</name>
</author>
<published>2013-08-28T08:41:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=59a8c10b253358bebb263540e7ad67e986d66277'/>
<id>urn:sha1:59a8c10b253358bebb263540e7ad67e986d66277</id>
<content type='text'>
Instead of accessing the rate field of the static
clock devices directly, use the recently introduced
helper function to get the rate of the basic clocks.

The static ath79_{ahb,cpu,ddr,ref}_clk variables
will be removed by a subsequent patch. The actual
change is in preparation of that.

Also move the clock frequency printing code into
the plat_time_init function. We are getting the
cpu clock rate there already so we can save an
extra call of the helper.

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5782/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: Use a helper function to get system clock rates</title>
<updated>2013-09-03T21:22:17Z</updated>
<author>
<name>Gabor Juhos</name>
</author>
<published>2013-08-28T08:41:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2310780244d5c3b6cc843d4cc0b63332016678a0'/>
<id>urn:sha1:2310780244d5c3b6cc843d4cc0b63332016678a0</id>
<content type='text'>
The ath79 platform uses similar code to get the
rate of various clocks during init. Separate the
similar code into a new helper function and use
that to avoid code duplication.

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5778/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: Use local ref clock rate in ar934x_get_pll_freq</title>
<updated>2013-09-03T21:22:17Z</updated>
<author>
<name>Gabor Juhos</name>
</author>
<published>2013-08-28T08:41:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=837f036c8ab201965b9fb0f6b743a415f555493f'/>
<id>urn:sha1:837f036c8ab201965b9fb0f6b743a415f555493f</id>
<content type='text'>
The reference clock rate is passed in the first
argument of the function. Use that instead of the
rate of the global ath79_ref_clk variable.

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5779/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: Fix ar933x watchdog clock</title>
<updated>2013-09-03T21:22:16Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2013-08-28T08:41:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a1191927ace7e6f827132aa9e062779eb3f11fa5'/>
<id>urn:sha1:a1191927ace7e6f827132aa9e062779eb3f11fa5</id>
<content type='text'>
The watchdog device on the AR933x is connected to
the AHB clock, however the current code uses the
reference clock. Due to the wrong rate, the watchdog
driver can't calculate correct register values for
a given timeout value and the watchdog unexpectedly
restarts the system.

The code uses the wrong value since the initial
commit 04225e1d227c8e68d685936ecf42ac175fec0e54
(MIPS: ath79: add AR933X specific clock init)

The patch fixes the code to use the correct clock
rate to avoid the problem.

Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;
Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;
Cc: linux-mips@linux-mips.org
Cc: stable@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/5777/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mips-next-3.9' of git://git.linux-mips.org/pub/scm/john/linux-john into mips-for-linux-next</title>
<updated>2013-02-21T11:51:33Z</updated>
<author>
<name>Ralf Baechle</name>
</author>
<published>2013-02-21T11:51:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8bfc245f9ad7bd4e461179e4e7852ef99b8b6144'/>
<id>urn:sha1:8bfc245f9ad7bd4e461179e4e7852ef99b8b6144</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MIPS: ath79: add clock setup code for the QCA955X SoCs</title>
<updated>2013-02-19T08:36:25Z</updated>
<author>
<name>Gabor Juhos</name>
</author>
<published>2013-02-15T13:38:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=41583c05c15cd3adb848f9ee8316bf8084c961cb'/>
<id>urn:sha1:41583c05c15cd3adb848f9ee8316bf8084c961cb</id>
<content type='text'>
The patch adds code to get various clock frequencies
from the PLLs used in the QCA955x SoCs.

Cc: Rodriguez, Luis &lt;rodrigue@qca.qualcomm.com&gt;
Cc: Giori, Kathy &lt;kgiori@qca.qualcomm.com&gt;
Cc: QCA Linux Team &lt;qca-linux-team@qca.qualcomm.com&gt;
Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;
Patchwork: http://patchwork.linux-mips.org/patch/4945/
Signed-off-by: John Crispin &lt;blogic@openwrt.org&gt;
</content>
</entry>
<entry>
<title>MIPS: Whitespace cleanup.</title>
<updated>2013-02-01T09:00:22Z</updated>
<author>
<name>Ralf Baechle</name>
</author>
<published>2013-01-22T11:59:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7034228792cc561e79ff8600f02884bd4c80e287'/>
<id>urn:sha1:7034228792cc561e79ff8600f02884bd4c80e287</id>
<content type='text'>
Having received another series of whitespace patches I decided to do this
once and for all rather than dealing with this kind of patches trickling
in forever.

Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: ath79: Fix CPU/DDR frequency calculation for SRIF PLLs</title>
<updated>2012-10-01T09:37:15Z</updated>
<author>
<name>Gabor Juhos</name>
</author>
<published>2012-09-08T12:02:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=97541ccfb9db2bb9cd1dde6344d5834438d14bda'/>
<id>urn:sha1:97541ccfb9db2bb9cd1dde6344d5834438d14bda</id>
<content type='text'>
Besides the CPU and DDR PLLs, the CPU and DDR frequencies
can be derived from other PLLs in the SRIF block on the
AR934x SoCs. The current code does not checks if the SRIF
PLLs are used and this can lead to incorrectly calculated
CPU/DDR frequencies.

Fix it by calculating the frequencies from SRIF PLLs if
those are used on a given board.

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/4324/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
</feed>
