Commit 776d7f16 authored by Alexey Brodkin's avatar Alexey Brodkin Committed by Vineet Gupta

arc: axs103_smp: Fix CPU frequency to 100MHz for dual-core

The most recent release of AXS103 [v1.1] is proven to work
at 100 MHz in dual-core mode so this change uses mentioned feature.
For that we:
 * Update axc003_idu.dtsi with mention of really-used CPU clock freq
 * Remove clock override in AXS platform code for dual-core HW

Note we're still leaving a hack for clock "downgrade" on early boot
for quad-core hardware.

Also note this change will break functionality of AXS103 v1.0 hardware.
That means all users of AXS103 __must__ upgrade their boards with the
most recent firmware.
Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
parent 445a6421
...@@ -28,7 +28,7 @@ cpu_card { ...@@ -28,7 +28,7 @@ cpu_card {
core_clk: core_clk { core_clk: core_clk {
#clock-cells = <0>; #clock-cells = <0>;
compatible = "fixed-clock"; compatible = "fixed-clock";
clock-frequency = <90000000>; clock-frequency = <100000000>;
}; };
core_intc: archs-intc@cpu { core_intc: archs-intc@cpu {
......
...@@ -410,8 +410,6 @@ static void __init axs103_early_init(void) ...@@ -410,8 +410,6 @@ static void __init axs103_early_init(void)
unsigned int num_cores = (read_aux_reg(ARC_REG_MCIP_BCR) >> 16) & 0x3F; unsigned int num_cores = (read_aux_reg(ARC_REG_MCIP_BCR) >> 16) & 0x3F;
if (num_cores > 2) if (num_cores > 2)
freq = 50; freq = 50;
else if (num_cores == 2)
freq = 75;
#endif #endif
switch (freq) { switch (freq) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment