1643cf0eaSIan Campbell /* 2643cf0eaSIan Campbell * (C) Copyright 2007-2012 3643cf0eaSIan Campbell * Allwinner Technology Co., Ltd. <www.allwinnertech.com> 4643cf0eaSIan Campbell * Tom Cubie <tangliang@allwinnertech.com> 5643cf0eaSIan Campbell * 6643cf0eaSIan Campbell * SPDX-License-Identifier: GPL-2.0+ 7643cf0eaSIan Campbell */ 8643cf0eaSIan Campbell 9643cf0eaSIan Campbell #ifndef _SYS_PROTO_H_ 10643cf0eaSIan Campbell #define _SYS_PROTO_H_ 11643cf0eaSIan Campbell 12643cf0eaSIan Campbell #include <linux/types.h> 13643cf0eaSIan Campbell 14643cf0eaSIan Campbell void sdelay(unsigned long); 15643cf0eaSIan Campbell 16942cb0b6SSimon Glass /* return_to_fel() - Return to BROM from SPL 17942cb0b6SSimon Glass * 18942cb0b6SSimon Glass * This returns back into the BROM after U-Boot SPL has performed its initial 19942cb0b6SSimon Glass * init. It uses the provided lr and sp to do so. 20942cb0b6SSimon Glass * 21942cb0b6SSimon Glass * @lr: BROM link register value (return address) 22942cb0b6SSimon Glass * @sp: BROM stack pointer 23942cb0b6SSimon Glass */ 24942cb0b6SSimon Glass void return_to_fel(uint32_t lr, uint32_t sp); 25942cb0b6SSimon Glass 26aab09640SHans de Goede /* Board / SoC level designware gmac init */ 27*6ff005cfSDave Prue #if !defined CONFIG_SPL_BUILD && defined CONFIG_SUN7I_GMAC 28fc8991c6SHans de Goede void eth_init_board(void); 29fc8991c6SHans de Goede #else eth_init_board(void)30fc8991c6SHans de Goedestatic inline void eth_init_board(void) {} 31fc8991c6SHans de Goede #endif 32aab09640SHans de Goede 33643cf0eaSIan Campbell #endif 34