mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 23:47:24 +00:00
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:
parent
210f7b2d26
commit
a028abea6c
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue