From: Vineet Gupta Date: Fri, 11 Sep 2015 23:32:22 +0000 (-0700) Subject: ARCv2: [axs103_smp] Reduce clk for SMP FPGA configs X-Git-Tag: v4.2.4~226 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8ecfcb2611766e3721124d49bf62335ada1cc93;p=thirdparty%2Fkernel%2Fstable.git ARCv2: [axs103_smp] Reduce clk for SMP FPGA configs commit 3ebb0540c20d6670396ccee9ff6794c095fa9311 upstream. Newer bitfiles needs the reduced clk even for SMP builds Signed-off-by: Vineet Gupta Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/arc/plat-axs10x/axs10x.c b/arch/arc/plat-axs10x/axs10x.c index e7769c3ab5f2b..ac79491ee2c0c 100644 --- a/arch/arc/plat-axs10x/axs10x.c +++ b/arch/arc/plat-axs10x/axs10x.c @@ -402,6 +402,8 @@ static void __init axs103_early_init(void) unsigned int num_cores = (read_aux_reg(ARC_REG_MCIP_BCR) >> 16) & 0x3F; if (num_cores > 2) arc_set_core_freq(50 * 1000000); + else if (num_cores == 2) + arc_set_core_freq(75 * 1000000); #endif switch (arc_get_core_freq()/1000000) {