summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-04-20 18:05:35 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2018-05-08 08:04:19 +0200
commit04754096b84130a6635df4eb56897539b312a44a (patch)
tree33ada790d99797b04c16180018dd661c7128df8a
parentc6489935da8ddbd71f95fe11fe317b79439ffd86 (diff)
downloadbarebox-04754096b84130a6635df4eb56897539b312a44a.tar.gz
barebox-04754096b84130a6635df4eb56897539b312a44a.tar.xz
ARM: i.MX: Print "revision unknown" if that is the case
Printing "revision 16.16" if i.MX SoC's revision is unknown is a bit confusing so modify the code to actually say "revision unknown" in such a case. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-imx/imx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/imx.c b/arch/arm/mach-imx/imx.c
index 7dee1433bd..32d8e11a70 100644
--- a/arch/arm/mach-imx/imx.c
+++ b/arch/arm/mach-imx/imx.c
@@ -30,7 +30,10 @@ void imx_set_silicon_revision(const char *soc, int revision)
{
__imx_silicon_revision = revision;
- pr_info("detected %s revision %d.%d\n", soc,
+ if (revision == IMX_CHIP_REV_UNKNOWN)
+ pr_info("detected %s revision unknown\n", soc);
+ else
+ pr_info("detected %s revision %d.%d\n", soc,
(revision >> 4) & 0xf,
revision & 0xf);
}