From: Huang, Tao Date: Wed, 20 May 2015 13:29:02 +0000 (+0800) Subject: arm: rockchip: cpu.h: only support on arm X-Git-Tag: firefly_0821_release~4152 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c215764f3f67b92a21e18fed2c30fbb5a544085d;p=firefly-linux-kernel-4.4.55.git arm: rockchip: cpu.h: only support on arm Signed-off-by: Huang, Tao --- diff --git a/include/linux/rockchip/cpu.h b/include/linux/rockchip/cpu.h index 3b3faa71d93e..17f0d589b2eb 100644 --- a/include/linux/rockchip/cpu.h +++ b/include/linux/rockchip/cpu.h @@ -35,11 +35,16 @@ static inline void rockchip_set_cpu_version(unsigned long ver) #define ROCKCHIP_CPU_RK319X 0x31900000 #define ROCKCHIP_CPU_RK3288 0x32880000 +#ifdef CONFIG_ARM #define ROCKCHIP_CPU(id, ID) \ static inline bool cpu_is_rk##id(void) \ { \ return (rockchip_soc_id & ROCKCHIP_CPU_MASK) == ROCKCHIP_CPU_RK ##ID; \ } +#else +#define ROCKCHIP_CPU(id, ID) \ +static inline bool cpu_is_rk##id(void) { return false; } +#endif ROCKCHIP_CPU(2928, 2928) ROCKCHIP_CPU(3026, 3026) @@ -72,11 +77,16 @@ ROCKCHIP_CPU(3288, 3288) #define ROCKCHIP_SOC_RK3190 (ROCKCHIP_CPU_RK319X | 0x00) #define ROCKCHIP_SOC_RK3288 (ROCKCHIP_CPU_RK3288 | 0x00) +#ifdef CONFIG_ARM #define ROCKCHIP_SOC(id, ID) \ static inline bool soc_is_rk##id(void) \ { \ return (rockchip_soc_id & ROCKCHIP_SOC_MASK) == ROCKCHIP_SOC_RK ##ID; \ } +#else +#define ROCKCHIP_SOC(id, ID) \ +static inline bool soc_is_rk##id(void) { return false; } +#endif ROCKCHIP_SOC(2926, 2926) ROCKCHIP_SOC(2928g, 2928G)