MIPS: Netlogic: Fix frequency calculation register
authorGanesan Ramalingam <ganesanr@broadcom.com>
Wed, 7 Jan 2015 11:28:27 +0000 (16:58 +0530)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 1 Apr 2015 15:21:49 +0000 (17:21 +0200)
commita3613be442aaf435d7d3b224c81cea0b0f702d6a
treedeae691286c0680048a498b7719b015d24ca1582
parent72e0605b4346c3b018a5926ab0b3f535ab1f9b82
MIPS: Netlogic: Fix frequency calculation register

Change the PIC frequency calculation to use the register that has the
current configuration. The existing code used the register that is
written to change frequency, which can have an invalid value if the
firmware did not set it up correctly.

Signed-off-by: Ganesan Ramalingam <ganesanr@broadcom.com>
Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8885/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/netlogic/xlp-hal/sys.h
arch/mips/netlogic/xlp/nlm_hal.c