u-boot-arm.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * (C) Copyright 2002
  3. * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  4. * Marius Groeger <mgroeger@sysgo.de>
  5. *
  6. * (C) Copyright 2002
  7. * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  8. * Alex Zuepke <azu@sysgo.de>
  9. *
  10. * SPDX-License-Identifier: GPL-2.0+
  11. */
  12. #ifndef _U_BOOT_ARM_H_
  13. #define _U_BOOT_ARM_H_ 1
  14. /* for the following variables, see start.S */
  15. extern ulong IRQ_STACK_START; /* top of IRQ stack */
  16. extern ulong FIQ_STACK_START; /* top of FIQ stack */
  17. extern ulong _datarel_start_ofs;
  18. extern ulong _datarelrolocal_start_ofs;
  19. extern ulong _datarellocal_start_ofs;
  20. extern ulong _datarelro_start_ofs;
  21. extern ulong IRQ_STACK_START_IN; /* 8 bytes in IRQ stack */
  22. /* cpu/.../cpu.c */
  23. int cpu_init(void);
  24. int cleanup_before_linux(void);
  25. /* Set up ARMv7 MMU, caches and TLBs */
  26. void cpu_init_cp15(void);
  27. /* cpu/.../arch/cpu.c */
  28. int arch_cpu_init(void);
  29. int arch_misc_init(void);
  30. int arch_early_init_r(void);
  31. /* board/.../... */
  32. int board_init(void);
  33. int dram_init (void);
  34. void dram_init_banksize (void);
  35. /* cpu/.../interrupt.c */
  36. int arch_interrupt_init (void);
  37. void reset_timer_masked (void);
  38. ulong get_timer_masked (void);
  39. void udelay_masked (unsigned long usec);
  40. #endif /* _U_BOOT_ARM_H_ */