From: 黄涛 Date: Tue, 30 Jul 2013 13:23:22 +0000 (+0800) Subject: rk3026: fix cpu_is_rk3026, tag offset is 0x3ff0 X-Git-Tag: firefly_0821_release~6822 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eb98f1e6f6a740938207021b78851c3e881fa90e;p=firefly-linux-kernel-4.4.55.git rk3026: fix cpu_is_rk3026, tag offset is 0x3ff0 --- 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; }