boot0.h 571 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Specialty padding for the Altera SoCFPGA preloader image
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef __BOOT0_H
  7. #define __BOOT0_H
  8. #ifdef CONFIG_SPL_BUILD
  9. #define ARM_SOC_BOOT0_HOOK \
  10. .balignl 64,0xf33db33f; \
  11. \
  12. .word 0x1337c0d3; /* SoCFPGA preloader validation word */ \
  13. .word 0xc01df00d; /* Version, flags, length */ \
  14. .word 0xcafec0d3; /* Checksum, zero-pad */ \
  15. nop; \
  16. \
  17. b reset; /* SoCFPGA jumps here */ \
  18. nop; \
  19. nop; \
  20. nop;
  21. #else
  22. #define ARM_SOC_BOOT0_HOOK
  23. #endif
  24. #endif /* __BOOT0_H */