android_kernel_oneplus_msm8998/arch/mips/include/asm/netlogic/xlp-hal
Jayachandran C 4e45e542cd MIPS: Netlogic: Use PIC timer as a clocksource
The XLR/XLS/XLP PIC has a 8 countdown timers which run at the PIC
frequencey. One of these can be used as a clocksource to provide
timestamps that is common across cores. This can be used in place
of the count/compare clocksource which is per-CPU.

On XLR/XLS PIC registers are 32-bit, so we just use the lower 32-bits
of the PIC counter. On XLP, the whole 64-bit can be used.

Provide common macros and functions for PIC timer registers on XLR/XLS
and XLP, and use them to register a PIC clocksource.

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Patchwork: http://patchwork.linux-mips.org/patch/4786/
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-02-17 00:15:20 +01:00
..
bridge.h
cpucontrol.h MIPS: Netlogic: Split XLP L1 i-cache among threads 2013-02-17 00:15:20 +01:00
iomap.h MIPS: Netlogic: USB support for XLP 2012-07-24 17:28:54 +02:00
pcibus.h MIPS: Netlogic: XLP PCIe controller support. 2012-07-24 17:28:54 +02:00
pic.h MIPS: Netlogic: Use PIC timer as a clocksource 2013-02-17 00:15:20 +01:00
sys.h MIPS: Netlogic: Support for multi-chip configuration 2012-11-09 11:37:19 +01:00
uart.h
usb.h MIPS: Netlogic: USB support for XLP 2012-07-24 17:28:54 +02:00
xlp.h MIPS: Netlogic: Add IRQ mappings for more devices 2012-07-24 17:28:54 +02:00