Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / arch / arm / mach-uniphier / memconf.c
index 3b34e4d372946bd08ad63544723c3511a2a61626..57192f0154aa21081e1482aadc4ce3a689e2386d 100644 (file)
@@ -1,12 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2011-2015 Panasonic Corporation
  * Copyright (C) 2016      Socionext Inc.
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
-#include <common.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
@@ -141,7 +139,7 @@ static int __uniphier_memconf_init(const struct uniphier_board_data *bd,
        }
 
 out:
-       writel(val, SG_MEMCONF);
+       writel(val, sg_base + SG_MEMCONF);
 
        return 0;
 }