mx25: fix time accounting

The gpt_clk rate function doesn't consider the PER divider. This causes a
significant drift in time accounting. Fix this by introducing the correct rate
calculation function.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

authored by Baruch Siach and committed by Sascha Hauer faed4066 828df43f

+6 -1
+6 -1
arch/arm/mach-mx25/clock.c
··· 119 119 return get_rate_per(8); 120 120 } 121 121 122 + static unsigned long get_rate_gpt(struct clk *clk) 123 + { 124 + return get_rate_per(5); 125 + } 126 + 122 127 static unsigned long get_rate_otg(struct clk *clk) 123 128 { 124 129 return 48000000; /* FIXME */ ··· 161 156 .secondary = s, \ 162 157 } 163 158 164 - DEFINE_CLOCK(gpt_clk, 0, CCM_CGCR0, 5, get_rate_ipg, NULL, NULL); 159 + DEFINE_CLOCK(gpt_clk, 0, CCM_CGCR0, 5, get_rate_gpt, NULL, NULL); 165 160 DEFINE_CLOCK(uart_per_clk, 0, CCM_CGCR0, 15, get_rate_uart, NULL, NULL); 166 161 DEFINE_CLOCK(cspi1_clk, 0, CCM_CGCR1, 5, get_rate_ipg, NULL, NULL); 167 162 DEFINE_CLOCK(cspi2_clk, 0, CCM_CGCR1, 6, get_rate_ipg, NULL, NULL);