Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris...
[linux/fpc-iii.git] / arch / arm / mach-shmobile / include / mach / sdhi-sh7372.h
blob4a81b01f1e8fd46d665c69fed9ac816d38bf4d8a
1 #ifndef SDHI_SH7372_H
2 #define SDHI_SH7372_H
4 #define SDGENCNTA 0xfe40009c
6 /* The countdown of SDGENCNTA is controlled by
7 * ZB3D2CLK which runs at 149.5MHz.
8 * That is 149.5ticks/us. Approximate this as 150ticks/us.
9 */
10 static void udelay(int us)
12 __raw_writel(us * 150, SDGENCNTA);
13 while(__raw_readl(SDGENCNTA)) ;
16 static void msleep(int ms)
18 udelay(ms * 1000);
21 #endif