MIPS: Netlogic: XLP2XX CPU and PIC frequency
authorGanesan Ramalingam <ganesanr@broadcom.com>
Sun, 11 Aug 2013 09:13:56 +0000 (14:43 +0530)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 3 Sep 2013 21:22:19 +0000 (23:22 +0200)
commit57ceb4b02045bd677b70f9e2b3d41e8c1bb86598
treed8745a3424a87b5fa8ca56208943a21e16282550
parent5b6ff35d33cb0310c36f9081b9e39cd016715e9c
MIPS: Netlogic: XLP2XX CPU and PIC frequency

Add code to calculate the CPU and PIC frequency for XLP2XX SoCs.

Since the PIC frequency on XLP2XX can be configured, add a new macro
pic_timer_freq() to be used in netlogic/common/time.c.

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