blob: 79cd61273e205e45bbbc164b373b8dc6000650ab [file] [log] [blame]
stroesee623a1a2004-09-16 12:33:54 +00001/*
2 * (C) Copyright 2004
3 * Stefan Roese, esd gmbh germany, stefan.roese@esd-electronics.com
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
stroesee623a1a2004-09-16 12:33:54 +00006 */
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
Marian Balakowicz63ff0042005-10-28 22:30:33 +020020 miiphy_read("ppc_4xx_eth0", CONFIG_PHY_ADDR, 0x10, &reg);
stroesee623a1a2004-09-16 12:33:54 +000021 reg &= ~0x0040; /* disable sleep mode */
Marian Balakowicz63ff0042005-10-28 22:30:33 +020022 miiphy_write("ppc_4xx_eth0", CONFIG_PHY_ADDR, 0x10, reg);
stroesee623a1a2004-09-16 12:33:54 +000023}
24#endif /* CONFIG_LXT971_NO_SLEEP */