From: 黄涛 Date: Tue, 3 Jul 2012 02:40:29 +0000 (+0800) Subject: rk: plat: add io.h X-Git-Tag: firefly_0821_release~9047 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4e5be952a48d2726e9a53158e9b5a77eb7891d30;p=firefly-linux-kernel-4.4.55.git rk: plat: add io.h --- diff --git a/arch/arm/mach-rk30/include/mach/io.h b/arch/arm/mach-rk30/include/mach/io.h index 0e6d8652c66c..c50f9dec074d 100644 --- a/arch/arm/mach-rk30/include/mach/io.h +++ b/arch/arm/mach-rk30/include/mach/io.h @@ -1,16 +1,7 @@ #ifndef __MACH_IO_H #define __MACH_IO_H -#define IO_SPACE_LIMIT 0xffffffff - -#define __io(a) __typesafe_io(a) -#define __mem_pci(a) (a) - -#ifdef __ASSEMBLER__ -#define IOMEM(x) (x) -#else -#define IOMEM(x) ((void __force __iomem *)(x)) -#endif +#include /* * RK30 IO memory map: diff --git a/arch/arm/plat-rk/include/plat/io.h b/arch/arm/plat-rk/include/plat/io.h new file mode 100644 index 000000000000..b48bc42ee7a8 --- /dev/null +++ b/arch/arm/plat-rk/include/plat/io.h @@ -0,0 +1,15 @@ +#ifndef __PLAT_IO_H +#define __PLAT_IO_H + +#define IO_SPACE_LIMIT 0xffffffff + +#define __io(a) __typesafe_io(a) +#define __mem_pci(a) (a) + +#ifdef __ASSEMBLER__ +#define IOMEM(x) (x) +#else +#define IOMEM(x) ((void __force __iomem *)(x)) +#endif + +#endif