From eb98f1e6f6a740938207021b78851c3e881fa90e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Tue, 30 Jul 2013 21:23:22 +0800 Subject: [PATCH] rk3026: fix cpu_is_rk3026, tag offset is 0x3ff0 --- arch/arm/plat-rk/include/plat/cpu.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/plat-rk/include/plat/cpu.h b/arch/arm/plat-rk/include/plat/cpu.h index b1547e24926c..21e9a9e180aa 100644 --- a/arch/arm/plat-rk/include/plat/cpu.h +++ b/arch/arm/plat-rk/include/plat/cpu.h @@ -72,10 +72,10 @@ static inline bool soc_is_rk3188plus(void) static inline bool cpu_is_rk3026(void) { - return readl_relaxed(RK30_ROM_BASE + 0x27f0) == 0x32393243 - && readl_relaxed(RK30_ROM_BASE + 0x27f4) == 0x32303133 - && readl_relaxed(RK30_ROM_BASE + 0x27f8) == 0x30353239 - && readl_relaxed(RK30_ROM_BASE + 0x27fc) == 0x56313031; + return readl_relaxed(RK30_ROM_BASE + 0x3ff0) == 0x32393243 + && readl_relaxed(RK30_ROM_BASE + 0x3ff4) == 0x32303133 + && readl_relaxed(RK30_ROM_BASE + 0x3ff8) == 0x30353239 + && readl_relaxed(RK30_ROM_BASE + 0x3ffc) == 0x56313031; } #else static inline bool cpu_is_rk30xx(void) { return false; } -- 2.34.1