imx: Kconfig: enable IMX_BOOTAUX for i.MX8M
[oweals/u-boot.git] / arch / arm / mach-uniphier / soc-info.c
index f9de3a9dda9e4c3c9cfa44db8425955462874cee..f021a8cab3309b61d8b70f0d1a09c762f3e6614b 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2017 Socionext Inc.
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <linux/io.h>
@@ -14,7 +13,7 @@
 static unsigned int __uniphier_get_revision_field(unsigned int mask,
                                                  unsigned int shift)
 {
-       u32 revision = readl(SG_REVISION);
+       u32 revision = readl(sg_base + SG_REVISION);
 
        return (revision >> shift) & mask;
 }