]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: rmobile: Add 1 to value of the CPU revision in rmobile_get_cpu_rev_integer()
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Fri, 28 Mar 2014 02:12:49 +0000 (11:12 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Sun, 27 Apr 2014 19:35:12 +0000 (04:35 +0900)
Value that can be obtained in the rmobile_get_cpu_rev_integer() starts at 0.
However, revisions to start from 1, which adds 1.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c

index 0289ece2f4a2292d720e7debf8828271e77a1915..65e89aa250d4f8331e7c6be87b6ce790bcac2c51 100644 (file)
@@ -17,5 +17,5 @@ u32 rmobile_get_cpu_type(void)
 
 u32 rmobile_get_cpu_rev_integer(void)
 {
-       return (readl(PRR) & 0x000000F0) >> 4;
+       return ((readl(PRR) & 0x000000F0) >> 4) + 1;
 }