]> git.sur5r.net Git - u-boot/commitdiff
ARM: uniphier: fix MODEL field of REVISION register
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 9 May 2017 08:14:55 +0000 (17:14 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 17 May 2017 12:46:14 +0000 (21:46 +0900)
The MODEL field is 3 bit wide.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/soc-info.c

index baf1be6a01bfaf978fe7d912588d0de9baeaf7a0..f9de3a9dda9e4c3c9cfa44db8425955462874cee 100644 (file)
@@ -26,7 +26,7 @@ unsigned int uniphier_get_soc_id(void)
 
 unsigned int uniphier_get_soc_model(void)
 {
-       return __uniphier_get_revision_field(0x3, 8);
+       return __uniphier_get_revision_field(0x7, 8);
 }
 
 unsigned int uniphier_get_soc_revision(void)