From patchwork Fri Jul 3 13:27:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 1322380 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=qgSnN2TB; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49ywk723VYz9sR4 for ; Fri, 3 Jul 2020 23:27:27 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4873E81B54; Fri, 3 Jul 2020 15:27:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qgSnN2TB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AC99581B4C; Fri, 3 Jul 2020 15:27:22 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DD31A81B4C for ; Fri, 3 Jul 2020 15:27:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=aford173@gmail.com Received: by mail-io1-xd42.google.com with SMTP id i4so32404064iov.11 for ; Fri, 03 Jul 2020 06:27:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UOyhV8g5/5870wNJk21R2OVyQCcxkkkjPBHtDgJS/cA=; b=qgSnN2TB2yOGg7KnoZXUVemVZ+zlX4mpgKZ6KChzdBxkOt6BQfm1fyqfwDkP7BF8HA 6caHR8+w8+mGwm30rmE7XVt4aZFEe8l4IPISapBqf3q5Cleskf7a1at9o+I+BS95kiVo e0VqiD5Q1bJZren1bUTc3eWNydzDgRJW1/oxT/gFVbjXi4q3zSE00EcgRniENLQLQWaB hXF2wyDM2bfqOm1qAc9YuyEx7GES95Vt4lEmIbzQjhPZoH9lrf04njP96Ot4LQJVD2sy UzuBa6uwsmdaDQZWmEiCULuUDOS1mGOPQQJSKBRVBrzvkqyP8Dwal2ndkWQ+k8w6WPS2 iQFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UOyhV8g5/5870wNJk21R2OVyQCcxkkkjPBHtDgJS/cA=; b=JVRyqLqCL2C/0dp9ECIMrL9yX7cpNIup+1p5aLU5BHNt4oRyxrEjvcCFKxQCjt3i1Y xz7/7m2jDJWFo9AHMXYB3LBtpVToYkdNgE5ItCIPrHWGfKm1x0coBCdLieHU8GJe8IkU ZrCnjeamdfSffwyw/Lnc3dK4a1Lhc4o9+qYb2mYfl99OhKPCj37v1U86A0EVaCmfpMiI 9FX1VieQHFdv5NEKPa3L+cUWcjVoFNE/yUoI18bx8yCbRNVDFpks9Ql7X4XjNOsQWFza L4A7ibyb5O0ds4ROUEXUmGJSXDTfbwyA9Jsu7UGLquYuV4y+xU8wOLZ7z6E5AodJ2UEt E/SA== X-Gm-Message-State: AOAM532uFRXplX2WNCZ/rKgZ2Yyqv8jjGBk+JmltKj6rotg7Iwpc4JRP aaggT+7tbHGTYQNBXPCTpgNh0g/k X-Google-Smtp-Source: ABdhPJz6EfQpfVzno4PYwplFtexu0DpL/j29yYkh0swEqdzpntakofFPbOedAKb5JuxhV2QS1IsFrw== X-Received: by 2002:a05:6602:58a:: with SMTP id v10mr12279603iox.203.1593782838440; Fri, 03 Jul 2020 06:27:18 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan (c-73-37-219-234.hsd1.mn.comcast.net. [73.37.219.234]) by smtp.gmail.com with ESMTPSA id i9sm6774349ile.48.2020.07.03.06.27.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jul 2020 06:27:17 -0700 (PDT) From: Adam Ford To: u-boot@lists.denx.de Cc: Adam Ford Subject: [PATCH] Convert CONFIG_DRIVER_TI_EMAC_USE_RMII to Kconfig Date: Fri, 3 Jul 2020 08:27:12 -0500 Message-Id: <20200703132712.3592506-1-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean This converts the following to Kconfig: CONFIG_DRIVER_TI_EMAC_USE_RMII Signed-off-by: Adam Ford diff --git a/configs/am3517_evm_defconfig b/configs/am3517_evm_defconfig index 58fb91c1c5..a78a596d4d 100644 --- a/configs/am3517_evm_defconfig +++ b/configs/am3517_evm_defconfig @@ -62,6 +62,7 @@ CONFIG_SYS_NAND_U_BOOT_OFFS=0x80000 CONFIG_DM_ETH=y CONFIG_MII=y CONFIG_DRIVER_TI_EMAC=y +CONFIG_DRIVER_TI_EMAC_USE_RMII=y CONFIG_PINCTRL=y CONFIG_PINCTRL_SINGLE=y CONFIG_DM_PMIC=y diff --git a/drivers/net/ti/Kconfig b/drivers/net/ti/Kconfig index ecf642de10..f2dbbd0128 100644 --- a/drivers/net/ti/Kconfig +++ b/drivers/net/ti/Kconfig @@ -14,6 +14,12 @@ config DRIVER_TI_EMAC help Support for davinci emac +config DRIVER_TI_EMAC_USE_RMII + depends on DRIVER_TI_EMAC + bool "Use RMII" + help + Configure the TI EMAC driver to use RMII + config DRIVER_TI_KEYSTONE_NET bool "TI Keystone 2 Ethernet" help diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h index 18d0568287..f61bb1d44d 100644 --- a/include/configs/am3517_evm.h +++ b/include/configs/am3517_evm.h @@ -34,7 +34,6 @@ /* I2C */ /* Ethernet */ -#define CONFIG_DRIVER_TI_EMAC_USE_RMII #define CONFIG_BOOTP_DEFAULT #define CONFIG_BOOTP_DNS2 #define CONFIG_BOOTP_SEND_HOSTNAME diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h index 114c773fd9..2d588d9003 100644 --- a/include/configs/omapl138_lcdk.h +++ b/include/configs/omapl138_lcdk.h @@ -152,7 +152,6 @@ * Network & Ethernet Configuration */ #ifdef CONFIG_DRIVER_TI_EMAC -#undef CONFIG_DRIVER_TI_EMAC_USE_RMII #define CONFIG_BOOTP_DEFAULT #define CONFIG_BOOTP_DNS2 #define CONFIG_BOOTP_SEND_HOSTNAME diff --git a/include/configs/tam3517-common.h b/include/configs/tam3517-common.h index b127a774ac..31c582bde6 100644 --- a/include/configs/tam3517-common.h +++ b/include/configs/tam3517-common.h @@ -118,7 +118,6 @@ * ethernet support, EMAC * */ -#define CONFIG_DRIVER_TI_EMAC_USE_RMII #define CONFIG_BOOTP_DNS2 #define CONFIG_BOOTP_SEND_HOSTNAME #define CONFIG_NET_RETRY_COUNT 10 diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 61d0d8cc6f..9a7f0fba0c 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -341,7 +341,6 @@ CONFIG_DRIVER_DM9000 CONFIG_DRIVER_EP93XX_MAC CONFIG_DRIVER_NE2000 CONFIG_DRIVER_NE2000_BASE -CONFIG_DRIVER_TI_EMAC_USE_RMII CONFIG_DSP_CLUSTER_START CONFIG_DUOVERO CONFIG_DWC2_DFLT_SPEED_FULL