arm: rmobile: Add rmobile_get_cpu_rev_fraction() for R-Car SoCs

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>
master
Nobuhiro Iwamatsu 11 years ago committed by Nobuhiro Iwamatsu
parent 210f7b2d26
commit a028abea6c
  1. 5
      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;
}

Loading…
Cancel
Save