blob: 064602292b6e779353ad1b57559c222e54cfb301 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Ian Campbell49aeca32014-05-05 11:52:23 +01002/*
3 * (C) Copyright 2007-2012
4 * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
5 * Tom Cubie <tangliang@allwinnertech.com>
Ian Campbell49aeca32014-05-05 11:52:23 +01006 */
7
8#ifndef _SYS_PROTO_H_
9#define _SYS_PROTO_H_
10
11#include <linux/types.h>
12
13void sdelay(unsigned long);
14
Simon Glass5debe1f2015-02-07 10:47:30 -070015/* 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 */
23void return_to_fel(uint32_t lr, uint32_t sp);
24
Hans de Goeded690b392015-04-22 17:55:10 +020025/* Board / SoC level designware gmac init */
Dave Pruedc1436c2017-08-31 19:21:01 +020026#if !defined CONFIG_SPL_BUILD && defined CONFIG_SUN7I_GMAC
Hans de Goede42cbbe32016-03-17 13:53:03 +010027void eth_init_board(void);
28#else
29static inline void eth_init_board(void) {}
30#endif
Hans de Goeded690b392015-04-22 17:55:10 +020031
Ian Campbell49aeca32014-05-05 11:52:23 +010032#endif