romimage.h 1.0 KB

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