mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-09 12:46:17 +09: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
|
@ -19,3 +19,8 @@ u32 rmobile_get_cpu_rev_integer(void)
|
||||||
{
|
{
|
||||||
return ((readl(PRR) & 0x000000F0) >> 4) + 1;
|
return ((readl(PRR) & 0x000000F0) >> 4) + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
u32 rmobile_get_cpu_rev_fraction(void)
|
||||||
|
{
|
||||||
|
return readl(PRR) & 0x0000000F;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user