From: Nobuhiro Iwamatsu Date: Fri, 28 Mar 2014 02:15:59 +0000 (+0900) Subject: arm: rmobile: Add rmobile_get_cpu_rev_fraction() for R-Car SoCs X-Git-Tag: v2014.07-rc2~9^2~2^2~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a028abea6c804a3f6de76ad9eda23fbf9ecb8422;p=u-boot 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 Signed-off-by: Nobuhiro Iwamatsu --- diff --git a/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c b/arch/arm/cpu/armv7/rmobile/cpu_info-rcar.c index 65e89aa250..42ee30fbe7 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; +}