Lines Matching +full:uniphier +full:- +full:ld11 +full:- +full:mio +full:- +full:reset

5  * SPDX-License-Identifier:	GPL-2.0+
10 #include <reset-uclass.h>
23 #define UNIPHIER_RESET_ID_END (unsigned int)(-1)
43 /* System reset data */
58 UNIPHIER_RESETX(16, 0x2014, 4), /* USB30-PHY0 */
59 UNIPHIER_RESETX(17, 0x2014, 0), /* USB30-PHY1 */
60 UNIPHIER_RESETX(18, 0x2014, 2), /* USB30-PHY2 */
61 UNIPHIER_RESETX(20, 0x2014, 5), /* USB31-PHY0 */
62 UNIPHIER_RESETX(21, 0x2014, 1), /* USB31-PHY1 */
64 UNIPHIER_RESET(29, 0x2014, 8), /* SATA-PHY (active high) */
73 UNIPHIER_RESETX(16, 0x200c, 12), /* USB30-PHY0 */
74 UNIPHIER_RESETX(17, 0x200c, 13), /* USB30-PHY1 */
75 UNIPHIER_RESETX(18, 0x200c, 14), /* USB30-PHY2 */
76 UNIPHIER_RESETX(19, 0x200c, 15), /* USB30-PHY3 */
86 UNIPHIER_RESETX(16, 0x200c, 16), /* USB30-PHY */
87 UNIPHIER_RESETX(20, 0x200c, 17), /* USB31-PHY */
91 /* Media I/O reset data */
130 /* Peripheral reset data */
186 struct uniphier_reset_priv *priv = dev_get_priv(reset_ctl->dev); in uniphier_reset_update()
187 unsigned long id = reset_ctl->id; in uniphier_reset_update()
190 for (p = priv->data; p->id != UNIPHIER_RESET_ID_END; p++) { in uniphier_reset_update()
193 if (p->id != id) in uniphier_reset_update()
196 val = readl(priv->base + p->reg); in uniphier_reset_update()
198 if (p->flags & UNIPHIER_RESET_ACTIVE_LOW) in uniphier_reset_update()
201 mask = BIT(p->bit); in uniphier_reset_update()
208 writel(val, priv->base + p->reg); in uniphier_reset_update()
213 dev_err(priv->dev, "reset_id=%lu was not handled\n", id); in uniphier_reset_update()
214 return -EINVAL; in uniphier_reset_update()
239 addr = devfdt_get_addr(dev->parent); in uniphier_reset_probe()
241 return -EINVAL; in uniphier_reset_probe()
243 priv->base = devm_ioremap(dev, addr, SZ_4K); in uniphier_reset_probe()
244 if (!priv->base) in uniphier_reset_probe()
245 return -ENOMEM; in uniphier_reset_probe()
247 priv->data = (void *)dev_get_driver_data(dev); in uniphier_reset_probe()
253 /* System reset */
255 .compatible = "socionext,uniphier-ld4-reset",
259 .compatible = "socionext,uniphier-pro4-reset",
263 .compatible = "socionext,uniphier-sld8-reset",
267 .compatible = "socionext,uniphier-pro5-reset",
271 .compatible = "socionext,uniphier-pxs2-reset",
275 .compatible = "socionext,uniphier-ld11-reset",
279 .compatible = "socionext,uniphier-ld20-reset",
283 .compatible = "socionext,uniphier-pxs3-reset",
286 /* Media I/O reset */
288 .compatible = "socionext,uniphier-ld4-mio-reset",
292 .compatible = "socionext,uniphier-pro4-mio-reset",
296 .compatible = "socionext,uniphier-sld8-mio-reset",
300 .compatible = "socionext,uniphier-pro5-mio-reset",
304 .compatible = "socionext,uniphier-pxs2-mio-reset",
308 .compatible = "socionext,uniphier-ld11-mio-reset",
312 .compatible = "socionext,uniphier-ld11-sd-reset",
316 .compatible = "socionext,uniphier-ld20-sd-reset",
320 .compatible = "socionext,uniphier-pxs3-sd-reset",
323 /* Peripheral reset */
325 .compatible = "socionext,uniphier-ld4-peri-reset",
329 .compatible = "socionext,uniphier-pro4-peri-reset",
333 .compatible = "socionext,uniphier-sld8-peri-reset",
337 .compatible = "socionext,uniphier-pro5-peri-reset",
341 .compatible = "socionext,uniphier-pxs2-peri-reset",
345 .compatible = "socionext,uniphier-ld11-peri-reset",
349 .compatible = "socionext,uniphier-ld20-peri-reset",
353 .compatible = "socionext,uniphier-pxs3-peri-reset",
360 .name = "uniphier-reset",