blob: 569236e6b2bc99f73f22f7b2d3ee415bb3aa6bf6 [file] [log] [blame]
Alan425f3742014-04-28 20:47:36 +01001#ifndef __LINUX_GOLDFISH_H
2#define __LINUX_GOLDFISH_H
3
4/* Helpers for Goldfish virtual platform */
5
6static inline void gf_write64(unsigned long data,
7 void __iomem *portl, void __iomem *porth)
8{
9 writel((u32)data, portl);
Alan Cox8d9e9852014-05-19 14:34:09 +010010#ifdef CONFIG_64BIT
Alan425f3742014-04-28 20:47:36 +010011 writel(data>>32, porth);
12#endif
13}
14
15#endif /* __LINUX_GOLDFISH_H */