mmc-ap4eb.h 814 B

1234567891011121314151617181920212223242526272829
  1. #ifndef MMC_AP4EB_H
  2. #define MMC_AP4EB_H
  3. #define PORT185CR (void __iomem *)0xe60520b9
  4. #define PORT186CR (void __iomem *)0xe60520ba
  5. #define PORT187CR (void __iomem *)0xe60520bb
  6. #define PORT188CR (void __iomem *)0xe60520bc
  7. #define PORTR191_160DR (void __iomem *)0xe6056014
  8. static inline void mmc_init_progress(void)
  9. {
  10. /* Initialise LEDS1-4
  11. * registers: PORT185CR-PORT188CR (LED1-LED4 Control)
  12. * value: 0x10 - enable output
  13. */
  14. __raw_writeb(0x10, PORT185CR);
  15. __raw_writeb(0x10, PORT186CR);
  16. __raw_writeb(0x10, PORT187CR);
  17. __raw_writeb(0x10, PORT188CR);
  18. }
  19. static inline void mmc_update_progress(int n)
  20. {
  21. __raw_writel((__raw_readl(PORTR191_160DR) & ~(0xf << 25)) |
  22. (1 << (25 + n)), PORTR191_160DR);
  23. }
  24. #endif /* MMC_AP4EB_H */