blob: 79cd61273e205e45bbbc164b373b8dc6000650ab [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/*
2 * (C) Copyright 2004
3 * Stefan Roese, esd gmbh germany, stefan.roese@esd-electronics.com
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8#include <common.h>
9
10#ifdef CONFIG_LXT971_NO_SLEEP
11#include <miiphy.h>
12#endif
13
14
15#ifdef CONFIG_LXT971_NO_SLEEP
16void lxt971_no_sleep(void)
17{
18 unsigned short reg;
19
20 miiphy_read("ppc_4xx_eth0", CONFIG_PHY_ADDR, 0x10, &reg);
21 reg &= ~0x0040; /* disable sleep mode */
22 miiphy_write("ppc_4xx_eth0", CONFIG_PHY_ADDR, 0x10, reg);
23}
24#endif /* CONFIG_LXT971_NO_SLEEP */