b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | /* |
| 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 |
| 16 | void lxt971_no_sleep(void) |
| 17 | { |
| 18 | unsigned short reg; |
| 19 | |
| 20 | miiphy_read("ppc_4xx_eth0", CONFIG_PHY_ADDR, 0x10, ®); |
| 21 | reg &= ~0x0040; /* disable sleep mode */ |
| 22 | miiphy_write("ppc_4xx_eth0", CONFIG_PHY_ADDR, 0x10, reg); |
| 23 | } |
| 24 | #endif /* CONFIG_LXT971_NO_SLEEP */ |