stroese | bc6b274 | 2004-09-16 12:33:54 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2004 |
| 3 | * Stefan Roese, esd gmbh germany, stefan.roese@esd-electronics.com |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
stroese | bc6b274 | 2004-09-16 12:33:54 +0000 | [diff] [blame] | 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 | |
Marian Balakowicz | aab8c49 | 2005-10-28 22:30:33 +0200 | [diff] [blame] | 20 | miiphy_read("ppc_4xx_eth0", CONFIG_PHY_ADDR, 0x10, ®); |
stroese | bc6b274 | 2004-09-16 12:33:54 +0000 | [diff] [blame] | 21 | reg &= ~0x0040; /* disable sleep mode */ |
Marian Balakowicz | aab8c49 | 2005-10-28 22:30:33 +0200 | [diff] [blame] | 22 | miiphy_write("ppc_4xx_eth0", CONFIG_PHY_ADDR, 0x10, reg); |
stroese | bc6b274 | 2004-09-16 12:33:54 +0000 | [diff] [blame] | 23 | } |
| 24 | #endif /* CONFIG_LXT971_NO_SLEEP */ |