]> git.sur5r.net Git - u-boot/commitdiff
arm: rmobile: Add rmobile_get_cpu_rev_fraction() for R-Car SoCs
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Fri, 28 Mar 2014 02:15:59 +0000 (11:15 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Sun, 27 Apr 2014 19:35:12 +0000 (04:35 +0900)
This adds rmobile_get_cpu_rev_fraction to get fraction revision for R-Car SoCs.

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 65e89aa250d4f8331e7c6be87b6ce790bcac2c51..42ee30fbe7acf29ac423ac966f8490aaf13ff0a8 100644 (file)
@@ -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;
+}