Merge tag 'lsk-v3.10-android-15.02'
[firefly-linux-kernel-4.4.55.git] / include / linux / rockchip / iomap.h
index 8aca1604b15ea209ae52024088ab1a02ee66e902..f8785fa69803f2217bb9521d0400d9d9c8a60fc6 100755 (executable)
@@ -5,7 +5,11 @@
 #include <asm/io.h>
 #endif
 
+#ifdef IOMEM
 #define RK_IO_ADDRESS(x)                IOMEM(0xFED00000 + x)
+#else
+#define RK_IO_ADDRESS(x)                ((void __force __iomem *)(0xFED00000 + x))
+#endif
 
 #define RK_CRU_VIRT                     RK_IO_ADDRESS(0x00000000)
 #define RK_GRF_VIRT                     RK_IO_ADDRESS(0x00010000)
 #define RK3036_GPIO_SIZE               SZ_4K
 #define RK3036_EFUSE_PHYS              0x20090000
 #define RK3036_EFUSE_SIZE              SZ_4K
+#define RK3036_PWM_PHYS                0x20050000
+#define RK3036_PWM_SIZE                SZ_16K
 
 #define RK312X_IMEM_PHYS                RK3036_IMEM_PHYS
 #define RK312X_IMEM_SIZE                RK3036_IMEM_SIZE