]>
Commit | Line | Data |
---|---|---|
e623a1a3 SR |
1 | /* |
2 | * (C) Copyright 2004 | |
3 | * Stefan Roese, esd gmbh germany, [email protected] | |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
e623a1a3 SR |
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 | |
16 | void lxt971_no_sleep(void) | |
17 | { | |
18 | unsigned short reg; | |
19 | ||
63ff004c | 20 | miiphy_read("ppc_4xx_eth0", CONFIG_PHY_ADDR, 0x10, ®); |
e623a1a3 | 21 | reg &= ~0x0040; /* disable sleep mode */ |
63ff004c | 22 | miiphy_write("ppc_4xx_eth0", CONFIG_PHY_ADDR, 0x10, reg); |
e623a1a3 SR |
23 | } |
24 | #endif /* CONFIG_LXT971_NO_SLEEP */ |