[U-Boot] [PATCH 2/8] arm: rmobile: Add 1 to value of the CPU revision in rmobile_get_cpu_rev_integer()

Nobuhiro Iwamatsu nobuhiro.iwamatsu.yj at renesas.com
Thu Apr 3 07:19:04 CEST 2014


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 at renesas.com>
---
 arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c b/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c
index 0289ece..65e89aa 100644
--- a/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c
+++ b/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c
@@ -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;
 }
-- 
1.8.5



More information about the U-Boot mailing list