The omapl138-lcdk does not need to care about RMII code. It appears
to be more legacy code when branched from the da850-evm.  This patch
removes the #ifdefs and #defines related to the enabling/disabling
and checking for that option.

Signed-off-by: Adam Ford <aford...@gmail.com>

diff --git a/board/davinci/da8xxevm/omapl138_lcdk.c 
b/board/davinci/da8xxevm/omapl138_lcdk.c
index 27a51d6a78..ce146550f9 100644
--- a/board/davinci/da8xxevm/omapl138_lcdk.c
+++ b/board/davinci/da8xxevm/omapl138_lcdk.c
@@ -108,12 +108,6 @@ const struct pinmux_config nand_pins[] = {
 
 #endif
 
-#ifdef CONFIG_DRIVER_TI_EMAC_USE_RMII
-#define HAS_RMII 1
-#else
-#define HAS_RMII 0
-#endif
-
 const struct pinmux_resource pinmuxes[] = {
        PINMUX_ITEM(uart_pins),
        PINMUX_ITEM(i2c_pins),
@@ -216,7 +210,7 @@ int board_init(void)
 #ifdef CONFIG_DRIVER_TI_EMAC
        if (davinci_configure_pin_mux(emac_pins, ARRAY_SIZE(emac_pins)) != 0)
                return 1;
-       davinci_emac_mii_mode_sel(HAS_RMII);
+       davinci_emac_mii_mode_sel(0);
 #endif /* CONFIG_DRIVER_TI_EMAC */
 
        /* enable the console UART */
@@ -289,17 +283,6 @@ static void dspwake(void)
        REG(PSC0_MDCTL + (15 * 4)) |= 0x100;
 }
 
-#ifdef CONFIG_DRIVER_TI_EMAC_USE_RMII
-/**
- * rmii_hw_init
- *
- */
-int rmii_hw_init(void)
-{
-       return 0;
-}
-#endif /* CONFIG_DRIVER_TI_EMAC_USE_RMII */
-
 int misc_init_r(void)
 {
        uint8_t tmp[20], addr[10];
@@ -325,12 +308,6 @@ int misc_init_r(void)
                }
        }
 
-#ifdef CONFIG_DRIVER_TI_EMAC_USE_RMII
-       /* Select RMII fucntion through the expander */
-       if (rmii_hw_init())
-               printf("RMII hardware init failed!!!\n");
-#endif
-
        dspwake();
 
        return 0;
-- 
2.17.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to