Lines Matching +full:uniphier +full:- +full:ld20 +full:- +full:reset
1 // SPDX-License-Identifier: GPL-2.0+
9 #include <reset-uclass.h>
22 #define UNIPHIER_RESET_ID_END (unsigned int)(-1)
42 /* System reset data */
59 UNIPHIER_RESETX(16, 0x2014, 4), /* USB30-PHY0 */
60 UNIPHIER_RESETX(17, 0x2014, 0), /* USB30-PHY1 */
61 UNIPHIER_RESETX(18, 0x2014, 2), /* USB30-PHY2 */
62 UNIPHIER_RESETX(20, 0x2014, 5), /* USB31-PHY0 */
63 UNIPHIER_RESETX(21, 0x2014, 1), /* USB31-PHY1 */
65 UNIPHIER_RESET(29, 0x2014, 8), /* SATA-PHY (active high) */
75 UNIPHIER_RESETX(16, 0x200c, 12), /* USB30-PHY0 */
76 UNIPHIER_RESETX(17, 0x200c, 13), /* USB30-PHY1 */
77 UNIPHIER_RESETX(18, 0x200c, 14), /* USB30-PHY2 */
78 UNIPHIER_RESETX(19, 0x200c, 15), /* USB30-PHY3 */
90 UNIPHIER_RESETX(16, 0x200c, 16), /* USB30-PHY0 */
91 UNIPHIER_RESETX(17, 0x200c, 18), /* USB30-PHY1 */
92 UNIPHIER_RESETX(18, 0x200c, 20), /* USB30-PHY2 */
93 UNIPHIER_RESETX(20, 0x200c, 17), /* USB31-PHY0 */
94 UNIPHIER_RESETX(21, 0x200c, 19), /* USB31-PHY1 */
98 /* Media I/O reset data */
137 /* Peripheral reset data */
193 struct uniphier_reset_priv *priv = dev_get_priv(reset_ctl->dev); in uniphier_reset_update()
194 unsigned long id = reset_ctl->id; in uniphier_reset_update()
197 for (p = priv->data; p->id != UNIPHIER_RESET_ID_END; p++) { in uniphier_reset_update()
200 if (p->id != id) in uniphier_reset_update()
203 val = readl(priv->base + p->reg); in uniphier_reset_update()
205 if (p->flags & UNIPHIER_RESET_ACTIVE_LOW) in uniphier_reset_update()
208 mask = BIT(p->bit); in uniphier_reset_update()
215 writel(val, priv->base + p->reg); in uniphier_reset_update()
220 dev_err(reset_ctl->dev, "reset_id=%lu was not handled\n", id); in uniphier_reset_update()
222 return -EINVAL; in uniphier_reset_update()
247 addr = devfdt_get_addr(dev->parent); in uniphier_reset_probe()
249 return -EINVAL; in uniphier_reset_probe()
251 priv->base = devm_ioremap(dev, addr, SZ_4K); in uniphier_reset_probe()
252 if (!priv->base) in uniphier_reset_probe()
253 return -ENOMEM; in uniphier_reset_probe()
255 priv->data = (void *)dev_get_driver_data(dev); in uniphier_reset_probe()
261 /* System reset */
263 .compatible = "socionext,uniphier-ld4-reset",
267 .compatible = "socionext,uniphier-pro4-reset",
271 .compatible = "socionext,uniphier-sld8-reset",
275 .compatible = "socionext,uniphier-pro5-reset",
279 .compatible = "socionext,uniphier-pxs2-reset",
283 .compatible = "socionext,uniphier-ld11-reset",
287 .compatible = "socionext,uniphier-ld20-reset",
291 .compatible = "socionext,uniphier-pxs3-reset",
294 /* Media I/O reset */
296 .compatible = "socionext,uniphier-ld4-mio-reset",
300 .compatible = "socionext,uniphier-pro4-mio-reset",
304 .compatible = "socionext,uniphier-sld8-mio-reset",
308 .compatible = "socionext,uniphier-pro5-mio-reset",
312 .compatible = "socionext,uniphier-pxs2-mio-reset",
316 .compatible = "socionext,uniphier-ld11-mio-reset",
320 .compatible = "socionext,uniphier-ld11-sd-reset",
324 .compatible = "socionext,uniphier-ld20-sd-reset",
328 .compatible = "socionext,uniphier-pxs3-sd-reset",
331 /* Peripheral reset */
333 .compatible = "socionext,uniphier-ld4-peri-reset",
337 .compatible = "socionext,uniphier-pro4-peri-reset",
341 .compatible = "socionext,uniphier-sld8-peri-reset",
345 .compatible = "socionext,uniphier-pro5-peri-reset",
349 .compatible = "socionext,uniphier-pxs2-peri-reset",
353 .compatible = "socionext,uniphier-ld11-peri-reset",
357 .compatible = "socionext,uniphier-ld20-peri-reset",
361 .compatible = "socionext,uniphier-pxs3-peri-reset",
368 .name = "uniphier-reset",