]> git.sur5r.net Git - u-boot/blob - arch/arm/cpu/armv7/sunxi/clock.c
Merge branch 'master' of http://git.denx.de/u-boot-sunxi
[u-boot] / arch / arm / cpu / armv7 / sunxi / clock.c
1 /*
2  * (C) Copyright 2007-2012
3  * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
4  * Tom Cubie <tangliang@allwinnertech.com>
5  *
6  * (C) Copyright 2013 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
7  *
8  * SPDX-License-Identifier:     GPL-2.0+
9  */
10
11 #include <common.h>
12 #include <asm/io.h>
13 #include <asm/arch/clock.h>
14 #include <asm/arch/gpio.h>
15 #include <asm/arch/sys_proto.h>
16
17 __weak void clock_init_sec(void)
18 {
19 }
20
21 int clock_init(void)
22 {
23 #ifdef CONFIG_SPL_BUILD
24         clock_init_safe();
25 #endif
26         clock_init_uart();
27         clock_init_sec();
28
29         return 0;
30 }