mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
arm: rmobile: Add 1 to value of the CPU revision in rmobile_get_cpu_rev_integer()
Value that can be obtained in the rmobile_get_cpu_rev_integer() starts at 0. However, revisions to start from 1, which adds 1. Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
This commit is contained in:
parent
9b7fa2fed6
commit
210f7b2d26
1 changed files with 1 additions and 1 deletions
|
@ -17,5 +17,5 @@ u32 rmobile_get_cpu_type(void)
|
|||
|
||||
u32 rmobile_get_cpu_rev_integer(void)
|
||||
{
|
||||
return (readl(PRR) & 0x000000F0) >> 4;
|
||||
return ((readl(PRR) & 0x000000F0) >> 4) + 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue