aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Brodkin <abrodkin@synopsys.com>2016-02-01 08:31:14 -0500
committerVineet Gupta <vgupta@synopsys.com>2016-05-09 00:02:30 -0400
commit0e6e9b648d802fe6641fe543b6dc4828baded159 (patch)
tree5a39f97895548188134795411d9579882bf221a3
parentd21beffb0b9181c8823f71a5a7fabce6a0d4cf29 (diff)
ARC: use fixed frequencies in arc_set_early_base_baud()
UARTs usually have fixed clock so we're switching to use of constant values instead of something derived from core clock frequency. Among other things this will allow us to get rid of arc_{get|set}_core_freq() and switch to generic clock framework later on. Acked-by: Christian Ruppert <christian.ruppert@alitech.com> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-rw-r--r--arch/arc/kernel/devtree.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arc/kernel/devtree.c b/arch/arc/kernel/devtree.c
index 7e844fd8213f..fecbc96df828 100644
--- a/arch/arc/kernel/devtree.c
+++ b/arch/arc/kernel/devtree.c
@@ -28,14 +28,12 @@ unsigned int __init arc_early_base_baud(void)
28 28
29static void __init arc_set_early_base_baud(unsigned long dt_root) 29static void __init arc_set_early_base_baud(unsigned long dt_root)
30{ 30{
31 unsigned int core_clk = arc_get_core_freq();
32
33 if (of_flat_dt_is_compatible(dt_root, "abilis,arc-tb10x")) 31 if (of_flat_dt_is_compatible(dt_root, "abilis,arc-tb10x"))
34 arc_base_baud = core_clk/3; 32 arc_base_baud = 166666666; /* Fixed 166.6MHz clk (TB10x) */
35 else if (of_flat_dt_is_compatible(dt_root, "snps,arc-sdp")) 33 else if (of_flat_dt_is_compatible(dt_root, "snps,arc-sdp"))
36 arc_base_baud = 33333333; /* Fixed 33MHz clk (AXS10x) */ 34 arc_base_baud = 33333333; /* Fixed 33MHz clk (AXS10x) */
37 else 35 else
38 arc_base_baud = core_clk; 36 arc_base_baud = 50000000; /* Fixed default 50MHz */
39} 37}
40#else 38#else
41#define arc_set_early_base_baud(dt_root) 39#define arc_set_early_base_baud(dt_root)