sys_proto.h 780 B

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