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