From patchwork Thu Sep 3 11:43:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 514007 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 95F1C1401E7 for ; Thu, 3 Sep 2015 21:43:05 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=PrRL//fY; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 388D74B82B; Thu, 3 Sep 2015 13:42:35 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id njpQARzq_7tk; Thu, 3 Sep 2015 13:42:35 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ACB8B4B845; Thu, 3 Sep 2015 13:42:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F047D4B808 for ; Thu, 3 Sep 2015 13:41:49 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bIJ5XXpwgN_w for ; Thu, 3 Sep 2015 13:41:49 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by theia.denx.de (Postfix) with ESMTPS id 3643B4B7DE for ; Thu, 3 Sep 2015 13:41:35 +0200 (CEST) Received: by pacwi10 with SMTP id wi10so44588353pac.3 for ; Thu, 03 Sep 2015 04:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dE9JVydgIeFwmnVBEujvqt10RyN8jp4djX8VGfUXjPw=; b=PrRL//fYsq6wEMvUsxnQsazrJwaINAqNFtRfoIdYOMPQ+ebQqTPuNZQOw8Y/B7E12E 38xu6XtWJb+S9bxWBZEn9JGxwhmc1WFQvv5qlErZERdDIWGaVItei4klqRd9xenVTyya X8E57RXj01r3LUni1+jaP1OFm1ne8A/O6Ey7gAJCUPIiQD4hsirhT0kqPzjvWDsR61Cj WbDPG0X/np3LgIkZId+fNXdncKX3xcmd0ehNSTunTuFLLhi0JYIyvn5XQ/7D1997f4bC /xIZVhw8VmHdCVYzJYxtRq6fiXGskNj3hMCfO9muEX3Y/Sd0KMMnRPv2dG0DqSaswr5+ mtog== X-Received: by 10.66.102.71 with SMTP id fm7mr66436834pab.5.1441280493866; Thu, 03 Sep 2015 04:41:33 -0700 (PDT) Received: from ala-d2121-lx1.wrs.com (unknown-157-139.windriver.com. [147.11.157.139]) by smtp.gmail.com with ESMTPSA id o3sm24849880pap.37.2015.09.03.04.41.33 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Sep 2015 04:41:33 -0700 (PDT) From: Bin Meng To: Simon Glass , U-Boot Mailing List Date: Thu, 3 Sep 2015 04:43:46 -0700 Message-Id: <1441280627-29714-11-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1441280627-29714-1-git-send-email-bmeng.cn@gmail.com> References: <1441280627-29714-1-git-send-email-bmeng.cn@gmail.com> Cc: Joe Hershberger Subject: [U-Boot] [PATCH v3 10/11] x86: Convert to use driver model eth on quark/galileo X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Convert to use DM version of Designware ethernet driver on Intel quark/galileo. Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/cpu/quark/quark.c | 19 ------------------- configs/galileo_defconfig | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/arch/x86/cpu/quark/quark.c b/arch/x86/cpu/quark/quark.c index 637c370..caa3875 100644 --- a/arch/x86/cpu/quark/quark.c +++ b/arch/x86/cpu/quark/quark.c @@ -6,8 +6,6 @@ #include #include -#include -#include #include #include #include @@ -231,23 +229,6 @@ int cpu_mmc_init(bd_t *bis) ARRAY_SIZE(mmc_supported)); } -int cpu_eth_init(bd_t *bis) -{ - u32 base; - int ret0, ret1; - - qrk_pci_read_config_dword(QUARK_EMAC0, PCI_BASE_ADDRESS_0, &base); - ret0 = designware_initialize(base, PHY_INTERFACE_MODE_RMII); - - qrk_pci_read_config_dword(QUARK_EMAC1, PCI_BASE_ADDRESS_0, &base); - ret1 = designware_initialize(base, PHY_INTERFACE_MODE_RMII); - - if (ret0 < 0 && ret1 < 0) - return -1; - else - return 0; -} - void cpu_irq_init(void) { struct quark_rcba *rcba; diff --git a/configs/galileo_defconfig b/configs/galileo_defconfig index 55a002f..481b964 100644 --- a/configs/galileo_defconfig +++ b/configs/galileo_defconfig @@ -13,7 +13,7 @@ CONFIG_CMD_BOOTSTAGE=y CONFIG_OF_CONTROL=y CONFIG_DM_PCI=y CONFIG_SPI_FLASH=y -CONFIG_NETDEVICES=y +CONFIG_DM_ETH=y CONFIG_ETH_DESIGNWARE=y CONFIG_USB=y CONFIG_DM_USB=y