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>
This commit is contained in:
Nobuhiro Iwamatsu 2014-03-28 11:15:59 +09:00 committed by Nobuhiro Iwamatsu
parent 210f7b2d26
commit a028abea6c

View 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;
}