romimage.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifdef __ASSEMBLY__
  3. /* EcoVec board specific boot code:
  4. * converts the "partner-jet-script.txt" script into assembly
  5. * the assembly code is the first code to be executed in the romImage
  6. */
  7. #include <asm/romimage-macros.h>
  8. #include <mach/partner-jet-setup.txt>
  9. /* execute icbi after enabling cache */
  10. mov.l 1f, r0
  11. icbi @r0
  12. /* jump to cached area */
  13. mova 2f, r0
  14. jmp @r0
  15. nop
  16. .align 2
  17. 1 : .long 0xa8000000
  18. 2 :
  19. #else /* __ASSEMBLY__ */
  20. /* Ecovec board specific information:
  21. *
  22. * Set the following to enable MMCIF boot from the MMC card in CN12:
  23. *
  24. * DS1.5 = OFF (SH BOOT pin set to L)
  25. * DS2.6 = OFF (Select MMCIF on CN12 instead of SDHI1)
  26. * DS2.7 = ON (Select MMCIF on CN12 instead of SDHI1)
  27. *
  28. */
  29. #define HIZCRA 0xa4050158
  30. #define PGDR 0xa405012c
  31. static inline void mmcif_update_progress(int nr)
  32. {
  33. /* disable Hi-Z for LED pins */
  34. __raw_writew(__raw_readw(HIZCRA) & ~(1 << 1), HIZCRA);
  35. /* update progress on LED4, LED5, LED6 and LED7 */
  36. __raw_writeb(1 << (nr - 1), PGDR);
  37. }
  38. #endif /* __ASSEMBLY__ */