]> git.sur5r.net Git - u-boot/commitdiff
reset: uniphier: add PXs3 support
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 29 Aug 2017 03:20:51 +0000 (12:20 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 30 Aug 2017 00:07:04 +0000 (09:07 +0900)
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/reset/reset-uniphier.c

index 8a037cf735dd30aff1c9596740a08f97bb7d9705..c74d16fe206577fbdd640d6789324906b8f6dda2 100644 (file)
@@ -77,6 +77,17 @@ static const struct uniphier_reset_data uniphier_ld20_sys_reset_data[] = {
        UNIPHIER_RESET_END,
 };
 
+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(8, 0x200c, 12),         /* STDMAC */
+       UNIPHIER_RESETX(12, 0x200c, 5),         /* USB30 (GIO0) */
+       UNIPHIER_RESETX(13, 0x200c, 6),         /* USB31 (GIO1) */
+       UNIPHIER_RESETX(16, 0x200c, 16),        /* USB30-PHY */
+       UNIPHIER_RESETX(20, 0x200c, 17),        /* USB31-PHY */
+       UNIPHIER_RESET_END,
+};
+
 /* Media I/O reset data */
 #define UNIPHIER_MIO_RESET_SD(id, ch)                  \
        UNIPHIER_RESETX((id), 0x110 + 0x200 * (ch), 0)
@@ -268,6 +279,10 @@ static const struct udevice_id uniphier_reset_match[] = {
                .compatible = "socionext,uniphier-ld20-reset",
                .data = (ulong)uniphier_ld20_sys_reset_data,
        },
+       {
+               .compatible = "socionext,uniphier-pxs3-reset",
+               .data = (ulong)uniphier_pxs3_sys_reset_data,
+       },
        /* Media I/O reset */
        {
                .compatible = "socionext,uniphier-ld4-mio-reset",
@@ -301,6 +316,10 @@ static const struct udevice_id uniphier_reset_match[] = {
                .compatible = "socionext,uniphier-ld20-sd-reset",
                .data = (ulong)uniphier_mio_reset_data,
        },
+       {
+               .compatible = "socionext,uniphier-pxs3-sd-reset",
+               .data = (ulong)uniphier_mio_reset_data,
+       },
        /* Peripheral reset */
        {
                .compatible = "socionext,uniphier-ld4-peri-reset",
@@ -330,6 +349,10 @@ static const struct udevice_id uniphier_reset_match[] = {
                .compatible = "socionext,uniphier-ld20-peri-reset",
                .data = (ulong)uniphier_pro4_peri_reset_data,
        },
+       {
+               .compatible = "socionext,uniphier-pxs3-peri-reset",
+               .data = (ulong)uniphier_pro4_peri_reset_data,
+       },
        { /* sentinel */ }
 };