]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita8c366a47bfd4a429530a880b74db2fb0553166c
treedeae691286c0680048a498b7719b015d24ca1582
parent7c9a1e26c6819dbe6c8d3659c3bf13f5a3013540
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