]> git.sur5r.net Git - u-boot/blobdiff - drivers/reset/reset-uniphier.c
mtd: nand: mxs_nand: use self init
[u-boot] / drivers / reset / reset-uniphier.c
index c74d16fe206577fbdd640d6789324906b8f6dda2..657243ae62073f8ae623112c98b3bcb037a6a07e 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2016 Socionext Inc.
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -43,6 +42,7 @@ struct uniphier_reset_data {
 /* System reset data */
 static const struct uniphier_reset_data uniphier_pro4_sys_reset_data[] = {
        UNIPHIER_RESETX(2, 0x2000, 2),          /* NAND */
+       UNIPHIER_RESETX(6, 0x2000, 12),         /* ETHER */
        UNIPHIER_RESETX(8, 0x2000, 10),         /* STDMAC */
        UNIPHIER_RESETX(12, 0x2000, 6),         /* GIO */
        UNIPHIER_RESETX(14, 0x2000, 17),        /* USB30 */
@@ -52,6 +52,7 @@ static const struct uniphier_reset_data uniphier_pro4_sys_reset_data[] = {
 
 static const struct uniphier_reset_data uniphier_pxs2_sys_reset_data[] = {
        UNIPHIER_RESETX(2, 0x2000, 2),          /* NAND */
+       UNIPHIER_RESETX(6, 0x2000, 12),         /* ETHER */
        UNIPHIER_RESETX(8, 0x2000, 10),         /* STDMAC */
        UNIPHIER_RESETX(14, 0x2000, 17),        /* USB30 */
        UNIPHIER_RESETX(15, 0x2004, 17),        /* USB31 */
@@ -68,6 +69,7 @@ static const struct uniphier_reset_data uniphier_pxs2_sys_reset_data[] = {
 static const struct uniphier_reset_data uniphier_ld20_sys_reset_data[] = {
        UNIPHIER_RESETX(2, 0x200c, 0),          /* NAND */
        UNIPHIER_RESETX(4, 0x200c, 2),          /* eMMC */
+       UNIPHIER_RESETX(6, 0x200c, 6),          /* ETHER */
        UNIPHIER_RESETX(8, 0x200c, 8),          /* STDMAC */
        UNIPHIER_RESETX(12, 0x200c, 5),         /* GIO */
        UNIPHIER_RESETX(16, 0x200c, 12),        /* USB30-PHY0 */
@@ -80,6 +82,8 @@ static const struct uniphier_reset_data uniphier_ld20_sys_reset_data[] = {
 static const struct uniphier_reset_data uniphier_pxs3_sys_reset_data[] = {
        UNIPHIER_RESETX(2, 0x200c, 0),          /* NAND */
        UNIPHIER_RESETX(4, 0x200c, 2),          /* eMMC */
+       UNIPHIER_RESETX(6, 0x200c, 9),          /* ETHER0 */
+       UNIPHIER_RESETX(7, 0x200c, 10),         /* ETHER1 */
        UNIPHIER_RESETX(8, 0x200c, 12),         /* STDMAC */
        UNIPHIER_RESETX(12, 0x200c, 5),         /* USB30 (GIO0) */
        UNIPHIER_RESETX(13, 0x200c, 6),         /* USB31 (GIO1) */
@@ -210,7 +214,8 @@ static int uniphier_reset_update(struct reset_ctl *reset_ctl, int assert)
                return 0;
        }
 
-       dev_err(priv->dev, "reset_id=%lu was not handled\n", id);
+       dev_err(reset_ctl->dev, "reset_id=%lu was not handled\n", id);
+
        return -EINVAL;
 }