ppc4xx: DU405 maintenance fix
-strip unused features
-fix resetting phy
Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
Signed-off-by: Stefan Roese <sr@denx.de>
diff --git a/board/esd/du405/du405.c b/board/esd/du405/du405.c
index 8a87d55..3bb34fd 100644
--- a/board/esd/du405/du405.c
+++ b/board/esd/du405/du405.c
@@ -191,10 +191,16 @@
*(volatile unsigned char *) FPGA_MODE_REG = 0xff; /* reset high active */
*(volatile unsigned char *) FPGA_MODE_REG = 0x00; /* low again */
+ return 0;
+}
+
+void reset_phy(void)
+{
+#if defined(CONFIG_LXT971_NO_SLEEP)
+
/*
* Disable sleep mode in LXT971
*/
lxt971_no_sleep();
-
- return 0;
+#endif
}