mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
arm: rockchip: cpu.h: only support on arm
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
This commit is contained in:
parent
a3cebb509a
commit
c215764f3f
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user