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