Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / arch / arm / mach-shmobile / include / mach / mmc-ap4eb.h
blobdb59fdbda860dcce372c585baa3c660f927b5a66
1 #ifndef MMC_AP4EB_H
2 #define MMC_AP4EB_H
4 #define PORT185CR (void __iomem *)0xe60520b9
5 #define PORT186CR (void __iomem *)0xe60520ba
6 #define PORT187CR (void __iomem *)0xe60520bb
7 #define PORT188CR (void __iomem *)0xe60520bc
9 #define PORTR191_160DR (void __iomem *)0xe6056014
11 static inline void mmc_init_progress(void)
13 /* Initialise LEDS1-4
14 * registers: PORT185CR-PORT188CR (LED1-LED4 Control)
15 * value: 0x10 - enable output
17 __raw_writeb(0x10, PORT185CR);
18 __raw_writeb(0x10, PORT186CR);
19 __raw_writeb(0x10, PORT187CR);
20 __raw_writeb(0x10, PORT188CR);
23 static inline void mmc_update_progress(int n)
25 __raw_writel((__raw_readl(PORTR191_160DR) & ~(0xf << 25)) |
26 (1 << (25 + n)), PORTR191_160DR);
29 #endif /* MMC_AP4EB_H */