linux/arch/mips/ath79
Gabor Juhos 65fc7f9957 MIPS: ath79: use correct fractional dividers for {CPU,DDR}_PLL on AR934x
The current dividers in the code are wrong and this
leads to broken CPU frequency calculation on boards
where the fractional part is used.

For example, if the SoC is running from a 40MHz
reference clock, refdiv=1, nint=14, outdiv=0 and
nfrac=31 the real frequency is 579.375MHz but the
current code calculates 569.687MHz instead.

Because the system time is indirectly related to
the CPU frequency the broken computation causes
drift in the system time.

The correct divider is 2^6 for the CPU PLL and 2^10
for the DDR PLL. Use the correct values to fix the
issue.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: stable@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/4305/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2012-10-01 11:36:34 +02:00
..
clock.c MIPS: ath79: use correct fractional dividers for {CPU,DDR}_PLL on AR934x 2012-10-01 11:36:34 +02:00
common.c MIPS: ath79: add AR934X specific glue to ath79_device_reset_{clear,set} 2012-05-15 17:49:09 +02:00
common.h MIPS: ath79: add GPIOLIB support 2011-01-18 19:30:25 +01:00
dev-common.c MIPS: ath79: register UART device for AR934X SoCs 2012-05-15 17:49:10 +02:00
dev-common.h MIPS: ath79: add common watchdog device 2011-01-18 19:30:26 +01:00
dev-gpio-buttons.c MIPS: ath79: Use kmemdup rather than duplicating its implementation 2012-05-15 17:49:00 +02:00
dev-gpio-buttons.h MIPS: ath79: add common GPIO buttons device 2011-01-18 19:30:27 +01:00
dev-leds-gpio.c MIPS: ath79: Use kmemdup rather than duplicating its implementation 2012-05-15 17:49:00 +02:00
dev-leds-gpio.h MIPS: ath79: add common GPIO LEDs device 2011-01-18 19:30:26 +01:00
dev-spi.c MIPS: ath79: add common SPI controller device 2011-01-18 19:30:27 +01:00
dev-spi.h MIPS: ath79: add common SPI controller device 2011-01-18 19:30:27 +01:00
dev-usb.c MIPS: ath79: add USB platform setup code for AR934X 2012-08-28 12:29:57 +02:00
dev-usb.h MIPS: ath79: add common USB Host Controller device 2011-12-07 22:02:44 +00:00
dev-wmac.c MIPS: ath79: add WMAC registration code for AR934X 2012-05-15 17:49:10 +02:00
dev-wmac.h MIPS: ath79: Rename dev-ar913x-wmac.h to dev-wmac.h 2011-12-07 22:02:48 +00:00
early_printk.c MIPS: ath79: add early_printk support for AR934X 2012-05-15 17:49:07 +02:00
gpio.c MIPS: ath79: Fix number of GPIO lines for AR724[12] 2012-08-17 10:57:26 +02:00
irq.c MIPS: ath79: add IRQ handling code for AR934X 2012-05-15 17:49:09 +02:00
Kconfig MIPS: ath79: add initial support for the Atheros DB120 board 2012-05-15 17:49:11 +02:00
mach-ap81.c MIPS: ath79: Rename dev-ar913x-wmac.h to dev-wmac.h 2011-12-07 22:02:48 +00:00
mach-ap121.c MIPS: ath79: Rename dev-ar913x-wmac.h to dev-wmac.h 2011-12-07 22:02:48 +00:00
mach-db120.c MIPS: ath79: register USB host controller on the DB120 board 2012-08-28 12:29:57 +02:00
mach-pb44.c MIPS: ath79: register PCI controller on the PB44 board 2012-05-15 17:49:06 +02:00
mach-ubnt-xm.c MIPS: ath79: remove ar724x_pci_add_data function 2012-05-15 17:49:06 +02:00
machtypes.h MIPS: ath79: add initial support for the Atheros DB120 board 2012-05-15 17:49:11 +02:00
Makefile MIPS: ath79: add initial support for the Atheros DB120 board 2012-05-15 17:49:11 +02:00
pci.c MIPS: ath79: add PCI registration code for AR934X 2012-05-15 17:49:11 +02:00
pci.h MIPS: ath79: update copyright headers of PCI related files 2012-05-15 17:49:07 +02:00
Platform
prom.c
setup.c MIPS: ath79: add SoC detection code for AR934X 2012-05-15 17:49:07 +02:00