blob: 5cc5d25d2bd3ee4dc3e8a12cfa17be6fd4a343fe [file] [log] [blame]
Ian Campbell49aeca32014-05-05 11:52:23 +01001/*
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
Chen-Yu Tsai6daddfe2016-01-06 15:13:07 +080017__weak void clock_init_sec(void)
18{
19}
20
Ian Campbell49aeca32014-05-05 11:52:23 +010021int clock_init(void)
22{
23#ifdef CONFIG_SPL_BUILD
24 clock_init_safe();
25#endif
26 clock_init_uart();
Chen-Yu Tsai6daddfe2016-01-06 15:13:07 +080027 clock_init_sec();
Ian Campbell49aeca32014-05-05 11:52:23 +010028
29 return 0;
30}