Replace TMS570_MMR_SELECT_GMII_SEL with TMS570_MMR_SELECT_MII_MODE and
TMS570_MMR_SELECT_RMII_MODE.
---
 bsps/arm/tms570/include/bsp/tms570lc4357-pins.h    | 5 +++++
 bsps/arm/tms570/include/bsp/tms570ls3137zwt-pins.h | 5 ++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/bsps/arm/tms570/include/bsp/tms570lc4357-pins.h 
b/bsps/arm/tms570/include/bsp/tms570lc4357-pins.h
index a7912d1547..fac705e60d 100644
--- a/bsps/arm/tms570/include/bsp/tms570lc4357-pins.h
+++ b/bsps/arm/tms570/include/bsp/tms570lc4357-pins.h
@@ -972,6 +972,11 @@
                 TMS570_PIN_AND_FNC(TMS570_PIN_MMR_ALT_HET2_07, 0))
 #define TMS570_BALL_N3_MIBSPI2NCS_0 TMS570_PIN_AND_FNC(TMS570_BALL_N3, 4)
 
+#define TMS570_MMR_SELECT_MII_MODE \
+  TMS570_PIN_AND_FNC(TMS570_BALL_WITH_MMR(160, 3), TMS570_PIN_FNC_CLEAR)
+#define TMS570_MMR_SELECT_RMII_MODE \
+  TMS570_PIN_AND_FNC(TMS570_BALL_WITH_MMR(160, 3), 0)
+
 /* Default pinmux select */
 
 #define TMS570_PINMMR_DEFAULT_INIT_LIST(per_pin_action, common_arg) \
diff --git a/bsps/arm/tms570/include/bsp/tms570ls3137zwt-pins.h 
b/bsps/arm/tms570/include/bsp/tms570ls3137zwt-pins.h
index 089f0d4248..aa3c0f2185 100644
--- a/bsps/arm/tms570/include/bsp/tms570ls3137zwt-pins.h
+++ b/bsps/arm/tms570/include/bsp/tms570ls3137zwt-pins.h
@@ -555,7 +555,10 @@
 #define TMS570_BALL_F2 TMS570_BALL_WITH_MMR(29, 2)
 #define TMS570_BALL_F2_GIOB_2 TMS570_PIN_AND_FNC(TMS570_BALL_F2, 0)
 
-#define TMS570_MMR_SELECT_GMII_SEL TMS570_PIN_AND_FNC(TMS570_BALL_WITH_MMR(29, 
3), 0)
+#define TMS570_MMR_SELECT_MII_MODE \
+  TMS570_PIN_AND_FNC(TMS570_BALL_WITH_MMR(29, 3), 0)
+#define TMS570_MMR_SELECT_RMII_MODE \
+  TMS570_PIN_AND_FNC(TMS570_BALL_WITH_MMR(29, 3), TMS570_PIN_FNC_CLEAR)
 
 #define TMS570_MMR_SELECT_ADC_TRG1 TMS570_PIN_AND_FNC(TMS570_BALL_WITH_MMR(30, 
0), 0)
 #define TMS570_MMR_SELECT_ADC_TRG2 TMS570_PIN_AND_FNC(TMS570_BALL_WITH_MMR(30, 
0), 1)
-- 
2.35.3

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to