mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
[ARM] MXC: rework timer/clock initialisation
- rename mxc_clocks_init to architecture specific versions. This allows us to have more than one architecture compiled in. - call mxc_timer_init from clock initialisation instead from board code Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
a2865197a5
commit
30c730f8f9
13 changed files with 30 additions and 36 deletions
|
@ -1551,7 +1551,7 @@ static void __init probe_mxc_clocks(void)
|
|||
* must be called very early to get information about the
|
||||
* available clock rate when the timer framework starts
|
||||
*/
|
||||
int __init mxc_clocks_init(unsigned long fref)
|
||||
int __init mx27_clocks_init(unsigned long fref)
|
||||
{
|
||||
u32 cscr;
|
||||
struct clk **clkp;
|
||||
|
@ -1593,5 +1593,8 @@ int __init mxc_clocks_init(unsigned long fref)
|
|||
#ifdef CONFIG_DEBUG_LL_CONSOLE
|
||||
clk_enable(&uart1_clk[0]);
|
||||
#endif
|
||||
|
||||
mxc_timer_init(&gpt1_clk[0]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue