diff options
author | Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> | 2014-03-28 11:15:59 +0900 |
---|---|---|
committer | Nobuhiro Iwamatsu <iwamatsu@nigauri.org> | 2014-04-28 04:35:12 +0900 |
commit | a028abea6c804a3f6de76ad9eda23fbf9ecb8422 (patch) | |
tree | c81b9056c237eddaa4223ddd1970782b9034a66f /arch/arm/cpu | |
parent | 210f7b2d2601445c56e2528da5195942ee9965d2 (diff) | |
download | u-boot-imx-a028abea6c804a3f6de76ad9eda23fbf9ecb8422.zip u-boot-imx-a028abea6c804a3f6de76ad9eda23fbf9ecb8422.tar.gz u-boot-imx-a028abea6c804a3f6de76ad9eda23fbf9ecb8422.tar.bz2 |
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>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c b/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c index 65e89aa..42ee30f 100644 --- a/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c +++ b/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; +} |