[U-Boot] [PATCH 3/8] arm: rmobile: Add rmobile_get_cpu_rev_fraction() for R-Car SoCs

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


This adds rmobile_get_cpu_rev_fraction to get fraction revision for R-Car SoCs.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj at renesas.com>
---
 arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c b/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c
index 65e89aa..42ee30f 100644
--- a/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c
+++ b/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c
@@ -19,3 +19,8 @@ u32 rmobile_get_cpu_rev_integer(void)
 {
 	return ((readl(PRR) & 0x000000F0) >> 4) + 1;
 }
+
+u32 rmobile_get_cpu_rev_fraction(void)
+{
+	return readl(PRR) & 0x0000000F;
+}
-- 
1.8.5



More information about the U-Boot mailing list