Ian Campbell | 49aeca3 | 2014-05-05 11:52:23 +0100 | [diff] [blame] | 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 | |
Chen-Yu Tsai | 6daddfe | 2016-01-06 15:13:07 +0800 | [diff] [blame^] | 17 | __weak void clock_init_sec(void) |
| 18 | { |
| 19 | } |
| 20 | |
Ian Campbell | 49aeca3 | 2014-05-05 11:52:23 +0100 | [diff] [blame] | 21 | int clock_init(void) |
| 22 | { |
| 23 | #ifdef CONFIG_SPL_BUILD |
| 24 | clock_init_safe(); |
| 25 | #endif |
| 26 | clock_init_uart(); |
Chen-Yu Tsai | 6daddfe | 2016-01-06 15:13:07 +0800 | [diff] [blame^] | 27 | clock_init_sec(); |
Ian Campbell | 49aeca3 | 2014-05-05 11:52:23 +0100 | [diff] [blame] | 28 | |
| 29 | return 0; |
| 30 | } |