kernel_optimize_test/arch/mips/ralink
Gabor Juhos ded1e9d727 MIPS: ralink: mt7620: Improve clock frequency detection
The current code assumes that the peripheral clock always
runs at 40MHz which is not true in all configuration. The
peripheral clock can also use the reference clock instead
of the fixed 40MHz rate. If the reference clock runs at a
different rate, various peripheries are behaving incorrectly.

Additionally, the currectly calculated system clock is also
wrong. The actual value what the code computes is the rate
of the DRAM which can be different from the system clock.

Add new helper functions to get the rate of the different
clocks and use the correct values for the registered clock
devices.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5755/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2013-09-04 16:57:05 +02:00
..
dts MIPS: ralink: use the dwc2 driver for the rt305x USB controller 2013-05-17 21:16:59 +02:00
cevt-rt3352.c MIPS: ralink: Add support for systick timer found on newer ralink SoC 2013-09-04 16:55:29 +02:00
clk.c MIPS: ralink: Probe clocksources from OF 2013-09-04 16:55:50 +02:00
common.h MIPS: ralink: add memory definition to struct ralink_soc_info 2013-05-08 01:19:11 +02:00
early_printk.c MIPS: ralink: make early_printk work on RT2880 2013-05-08 01:19:08 +02:00
irq.c MIPS: Delete __cpuinit/__CPUINIT usage from MIPS code 2013-07-14 19:36:51 -04:00
Kconfig MIPS: ralink: mt7620: This SoC has EHCI and OHCI hosts 2013-09-04 16:56:43 +02:00
Makefile MIPS: ralink: Add support for systick timer found on newer ralink SoC 2013-09-04 16:55:29 +02:00
mt7620.c MIPS: ralink: mt7620: Improve clock frequency detection 2013-09-04 16:57:05 +02:00
of.c MIPS: Ralink: Use strlcpy() instead of strncpy(). 2013-06-10 18:01:26 +02:00
Platform MIPS: ralink: add cpu-feature-overrides.h 2013-05-08 01:19:10 +02:00
prom.c MIPS: ralink: adds prom and cmdline code 2013-02-17 01:25:30 +01:00
reset.c MIPS: ralink: adds reset code 2013-02-17 01:25:29 +01:00
rt288x.c MIPS: ralink: add memory definition for RT2880 2013-05-08 01:19:11 +02:00
rt305x.c MIPS: ralink: add memory definition for RT305x 2013-05-08 01:19:11 +02:00
rt3883.c MIPS: ralink: add memory definition for RT3883 2013-05-08 01:19:12 +02:00
timer.c MIPS: ralink: Add support for periodic timer irq 2013-09-04 16:55:05 +02:00