From 7dc2834fd57e12b355ee80ae5edf134af7476a3b Mon Sep 17 00:00:00 2001 From: Paul Burton Date: Wed, 15 Jan 2014 10:31:55 +0000 Subject: MIPS: Malta: Probe CPC when supported When CPC support is compiled into the kernel (ie. CONFIG_MIPS_CPC=y), probe the CPC on boot for Malta in order to allow any users of the CPC to detect its presence & function correctly. Signed-off-by: Paul Burton Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/6363/ Signed-off-by: Ralf Baechle --- arch/mips/mti-malta/malta-init.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch/mips/mti-malta') diff --git a/arch/mips/mti-malta/malta-init.c b/arch/mips/mti-malta/malta-init.c index 85a62b036df0..1381365b8873 100644 --- a/arch/mips/mti-malta/malta-init.c +++ b/arch/mips/mti-malta/malta-init.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -110,6 +111,11 @@ static void __init mips_ejtag_setup(void) flush_icache_range((unsigned long)base, (unsigned long)base + 0x80); } +phys_t mips_cpc_default_phys_base(void) +{ + return CPC_BASE_ADDR; +} + extern struct plat_smp_ops msmtc_smp_ops; void __init prom_init(void) @@ -277,6 +283,7 @@ mips_pci_controller: #endif /* Early detection of CMP support */ mips_cm_probe(); + mips_cpc_probe(); if (!register_cmp_smp_ops()) return; -- cgit v1.2.2