igep00x0: Disable networking
authorTom Rini <trini@konsulko.com>
Tue, 2 Aug 2022 11:33:41 +0000 (07:33 -0400)
committerTom Rini <trini@konsulko.com>
Sun, 21 Aug 2022 01:18:15 +0000 (21:18 -0400)
This platform needs to be converted to use DM_ETH as the deadline is 2
years passed due.  Disable networking support for now.

Cc: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
board/isee/igep00x0/igep00x0.c
configs/igep00x0_defconfig

index 0932f62b9bebed4192f1bc96a706eb3b64f23c09..6c5e6fbbcb0de73e3659d625ecb88f35ea1ffbb8 100644 (file)
@@ -88,62 +88,6 @@ int onenand_board_init(struct mtd_info *mtd)
        return 1;
 }
 
-#if defined(CONFIG_CMD_NET)
-static void reset_net_chip(int gpio)
-{
-       if (!gpio_request(gpio, "eth nrst")) {
-               gpio_direction_output(gpio, 1);
-               udelay(1);
-               gpio_set_value(gpio, 0);
-               udelay(40);
-               gpio_set_value(gpio, 1);
-               mdelay(10);
-       }
-}
-
-/*
- * Routine: setup_net_chip
- * Description: Setting up the configuration GPMC registers specific to the
- *             Ethernet hardware.
- */
-static void setup_net_chip(void)
-{
-       struct ctrl *ctrl_base = (struct ctrl *)OMAP34XX_CTRL_BASE;
-       static const u32 gpmc_lan_config[] = {
-               NET_LAN9221_GPMC_CONFIG1,
-               NET_LAN9221_GPMC_CONFIG2,
-               NET_LAN9221_GPMC_CONFIG3,
-               NET_LAN9221_GPMC_CONFIG4,
-               NET_LAN9221_GPMC_CONFIG5,
-               NET_LAN9221_GPMC_CONFIG6,
-       };
-
-       enable_gpmc_cs_config(gpmc_lan_config, &gpmc_cfg->cs[5],
-                       CONFIG_SMC911X_BASE, GPMC_SIZE_16M);
-
-       /* Enable off mode for NWE in PADCONF_GPMC_NWE register */
-       writew(readw(&ctrl_base->gpmc_nwe) | 0x0E00, &ctrl_base->gpmc_nwe);
-       /* Enable off mode for NOE in PADCONF_GPMC_NADV_ALE register */
-       writew(readw(&ctrl_base->gpmc_noe) | 0x0E00, &ctrl_base->gpmc_noe);
-       /* Enable off mode for ALE in PADCONF_GPMC_NADV_ALE register */
-       writew(readw(&ctrl_base->gpmc_nadv_ale) | 0x0E00,
-               &ctrl_base->gpmc_nadv_ale);
-
-       reset_net_chip(64);
-}
-
-int board_eth_init(struct bd_info *bis)
-{
-#ifdef CONFIG_SMC911X
-       return smc911x_initialize(0, CONFIG_SMC911X_BASE);
-#else
-       return 0;
-#endif
-}
-#else
-static inline void setup_net_chip(void) {}
-#endif
-
 #ifdef CONFIG_OF_BOARD_SETUP
 static int ft_enable_by_compatible(void *blob, char *compat, int enable)
 {
@@ -234,8 +178,6 @@ int misc_init_r(void)
                                         OMAP34XX_CTRL_WKUP_CTRL_GPIO_IO_PWRDNZ,
                                         OMAP34XX_CTRL_WKUP_CTRL);
 
-       setup_net_chip();
-
        omap_die_id_display();
 
        set_led();
index 17c97ac27f7969c1fc3f7d895256c8bb85f85c66..25eda11dd45efc63ed37203499b11260e4c836de 100644 (file)
@@ -67,7 +67,7 @@ CONFIG_ENV_UBI_VOLUME="config"
 CONFIG_ENV_UBI_VOLUME_REDUND="config_r"
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_NET_RANDOM_ETHADDR=y
+# CONFIG_NET is not set
 CONFIG_SYS_I2C_LEGACY=y
 CONFIG_SPL_SYS_I2C_LEGACY=y
 CONFIG_MMC_OMAP_HS=y
@@ -81,9 +81,6 @@ CONFIG_SYS_NAND_PAGE_SIZE=0x800
 CONFIG_SYS_NAND_OOBSIZE=0x40
 CONFIG_SYS_NAND_BUSWIDTH_16BIT=y
 CONFIG_MTD_UBI_FASTMAP=y
-CONFIG_SMC911X=y
-CONFIG_SMC911X_BASE=0x2C000000
-CONFIG_SMC911X_32_BIT=y
 CONFIG_CONS_INDEX=3
 CONFIG_SPI=y
 CONFIG_DM_SPI=y