]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ARCv2: [axs103_smp] Reduce clk for SMP FPGA configs
authorVineet Gupta <Vineet.Gupta1@synopsys.com>
Fri, 11 Sep 2015 23:32:22 +0000 (16:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:49:15 +0000 (14:49 -0700)
commit 3ebb0540c20d6670396ccee9ff6794c095fa9311 upstream.

Newer bitfiles needs the reduced clk even for SMP builds

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arc/plat-axs10x/axs10x.c

index e7769c3ab5f2b7793aff703ca5e926983b45ec29..ac79491ee2c0c551672d04c88ae1835456250f1c 100644 (file)
@@ -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) {