2 * Copyright (C) 2016 Socionext Inc.
4 * SPDX-License-Identifier: GPL-2.0+
8 #include <linux/bitops.h>
12 #include "../sg-regs.h"
14 void uniphier_ld11_clk_init(void)
16 if (readl(SG_PINMON0) & BIT(27)) {
17 /* if booted without stand-by MPU */
19 writel(1, SG_ETPHYPSHUT);
20 writel(1, SG_ETPHYCNT);
22 udelay(1); /* wait for regulator level 1.1V -> 2.5V */
24 writel(3, SG_ETPHYCNT);
25 writel(3, SG_ETPHYPSHUT);
26 writel(7, SG_ETPHYCNT);