summaryrefslogtreecommitdiff
path: root/arch/mips/pistachio/time.c
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2015-04-17 09:44:16 (GMT)
committerRalf Baechle <ralf@linux-mips.org>2015-07-10 09:02:20 (GMT)
commit6b5e741e9a834a8cf2d5b895319045ab17ad37fe (patch)
tree10d4c9b99b07063abcf28eb8aba7a2e569bd86ad /arch/mips/pistachio/time.c
parent6249ecbbb75cd635025cc681fcf51fb8659edbab (diff)
downloadlinux-6b5e741e9a834a8cf2d5b895319045ab17ad37fe.tar.xz
MIPS: Pistachio: Support CDMM & Fast Debug Channel
Implement the mips_cdmm_phys_base() platform callback to provide a default Common Device Memory Map (CDMM) physical base address for the Pistachio SoC. This allows the CDMM in each VPE to be configured and probed for devices, such as the Fast Debug Channel (FDC). The physical address chosen is just below the default CPC address, which appears to also be unallocated. The FDC IRQ is also usable on Pistachio, and is routed through the GIC, so implement the get_c0_fdc_int() platform callback using gic_get_c0_fdc_int(), so the FDC driver doesn't have to fall back to polling. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Andrew Bresticker <abrestic@chromium.org> Cc: James Hartley <james.hartley@imgtec.com> Cc: linux-mips@linux-mips.org Reviewed-by: Andrew Bresticker <abrestic@chromium.org> Patchwork: http://patchwork.linux-mips.org/patch/9749/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/pistachio/time.c')
-rw-r--r--arch/mips/pistachio/time.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/pistachio/time.c b/arch/mips/pistachio/time.c
index 67889fc..7c73fcb 100644
--- a/arch/mips/pistachio/time.c
+++ b/arch/mips/pistachio/time.c
@@ -27,6 +27,11 @@ int get_c0_perfcount_int(void)
return gic_get_c0_perfcount_int();
}
+int get_c0_fdc_int(void)
+{
+ return gic_get_c0_fdc_int();
+}
+
void __init plat_time_init(void)
{
struct device_node *np;