sys_proto.h 780 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2007-2012
  4. * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
  5. * Tom Cubie <tangliang@allwinnertech.com>
  6. */
  7. #ifndef _SYS_PROTO_H_
  8. #define _SYS_PROTO_H_
  9. #include <linux/types.h>
  10. void sdelay(unsigned long);
  11. /* return_to_fel() - Return to BROM from SPL
  12. *
  13. * This returns back into the BROM after U-Boot SPL has performed its initial
  14. * init. It uses the provided lr and sp to do so.
  15. *
  16. * @lr: BROM link register value (return address)
  17. * @sp: BROM stack pointer
  18. */
  19. void return_to_fel(uint32_t lr, uint32_t sp);
  20. /* Board / SoC level designware gmac init */
  21. #if !defined CONFIG_SPL_BUILD && defined CONFIG_SUN7I_GMAC
  22. void eth_init_board(void);
  23. #else
  24. static inline void eth_init_board(void) {}
  25. #endif
  26. #endif