Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Ian Campbell | 49aeca3 | 2014-05-05 11:52:23 +0100 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2007-2012 |
| 4 | * Allwinner Technology Co., Ltd. <www.allwinnertech.com> |
| 5 | * Tom Cubie <tangliang@allwinnertech.com> |
Ian Campbell | 49aeca3 | 2014-05-05 11:52:23 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _SYS_PROTO_H_ |
| 9 | #define _SYS_PROTO_H_ |
| 10 | |
| 11 | #include <linux/types.h> |
| 12 | |
| 13 | void sdelay(unsigned long); |
| 14 | |
Simon Glass | 5debe1f | 2015-02-07 10:47:30 -0700 | [diff] [blame] | 15 | /* return_to_fel() - Return to BROM from SPL |
| 16 | * |
| 17 | * This returns back into the BROM after U-Boot SPL has performed its initial |
| 18 | * init. It uses the provided lr and sp to do so. |
| 19 | * |
| 20 | * @lr: BROM link register value (return address) |
| 21 | * @sp: BROM stack pointer |
| 22 | */ |
| 23 | void return_to_fel(uint32_t lr, uint32_t sp); |
| 24 | |
Hans de Goede | d690b39 | 2015-04-22 17:55:10 +0200 | [diff] [blame] | 25 | /* Board / SoC level designware gmac init */ |
Dave Prue | dc1436c | 2017-08-31 19:21:01 +0200 | [diff] [blame] | 26 | #if !defined CONFIG_SPL_BUILD && defined CONFIG_SUN7I_GMAC |
Hans de Goede | 42cbbe3 | 2016-03-17 13:53:03 +0100 | [diff] [blame] | 27 | void eth_init_board(void); |
| 28 | #else |
| 29 | static inline void eth_init_board(void) {} |
| 30 | #endif |
Hans de Goede | d690b39 | 2015-04-22 17:55:10 +0200 | [diff] [blame] | 31 | |
Ian Campbell | 49aeca3 | 2014-05-05 11:52:23 +0100 | [diff] [blame] | 32 | #endif |