From patchwork Mon Feb 15 18:07:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 1440678 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=mq7u4Mr8; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4DfXCX60Pfz9sRN for ; Tue, 16 Feb 2021 05:08:24 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 62367826E8; Mon, 15 Feb 2021 19:08:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.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=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="mq7u4Mr8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CE47F826AD; Mon, 15 Feb 2021 19:07:54 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (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 5327C826A6 for ; Mon, 15 Feb 2021 19:07:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=fparent@baylibre.com Received: by mail-wr1-x42f.google.com with SMTP id t15so9983091wrx.13 for ; Mon, 15 Feb 2021 10:07:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wore6BUvT37/t+USs7+eVlo9Nmncv+8h11tmH1/jw1g=; b=mq7u4Mr8wdV8HJU8ZVjDzjOMu3hddbI5LUXL2nUWifNXAFI3ZGfjvmFup3UMYIaBLA Fhpkdmp9eJWyLF5yGWqaU2s5kMlEbpas/JT349CqWZJKONBXBp2kBBoPRbGmvTk3CLmb xB/Ljbu8BDklT/dgOVyUuPizymPoYLEP2lRHzuSkwe6hZqIvMaOtTSCT9BRVWvMzbJQL LqiJapWr5MsICu4BzQteR0JwZI5Ln96eIvOtPIcupNSaP9WZ5TAMMHor8qAgNYPjpKg+ FgehyvyyVhq2EkcFNEqqkwvBFYHIsoFL/FTgECQao5yazpk98FeTx7SVMsEUSqwLFNXC dttw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=wore6BUvT37/t+USs7+eVlo9Nmncv+8h11tmH1/jw1g=; b=asBxMWkMdYV5Bdk8db9+V8Kuv6rsDiwEhLLru15ij+Gam0NQu1/VLAefDL3WZnkF1W DbtGM1S1t3JbLtuPNFpwykad2wAfvqTsvxZGI2dHd4MkwJIHy/hj3UILVOztpJaGWyp2 2p217YZSdGFvIyyfdGlTNYvP5Yq/HH6jDezBUOGZBuF4opMrIpq8iO0Jz+HIbse+ibzz r0b2uSk0sPuQgCx7uA0ZWDmAEdo2ZE+zVfn7CHqpu9jmUuh16sD2wI6q7uWXBb5iTKUQ O8sGUhMZzrhb3QcfPqwN8TFJTFtaayxBIgO19BP78r5GnufepT9XSos7h7/0xGJjnwgo HzfQ== X-Gm-Message-State: AOAM532yAaTMMHdvxlFhYhMIuRIT9Etk07NHXg9/dpBSwXkh5X35x+g7 ahbk17udnXC7X0JPjPwv++Ateg== X-Google-Smtp-Source: ABdhPJxNQCMmGhqRjJjv7JIx8S9POyxwS1H+flUhSgVb9owJ4e0GjE+1iK/PBH/1dmTov0QIdTfzpw== X-Received: by 2002:a5d:6883:: with SMTP id h3mr19590231wru.90.1613412471813; Mon, 15 Feb 2021 10:07:51 -0800 (PST) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id u4sm23575597wrr.37.2021.02.15.10.07.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 10:07:51 -0800 (PST) From: Fabien Parent To: Fabien Parent , Ryder Lee , Weijie Gao , Chunfeng Yun , GSS_MTK_Uboot_upstream Cc: u-boot@lists.denx.de Subject: [PATCH 2/3] board: mediatek: mt8516: init USB Ether for pumpkin board Date: Mon, 15 Feb 2021 19:07:45 +0100 Message-Id: <20210215180746.2382067-2-fparent@baylibre.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210215180746.2382067-1-fparent@baylibre.com> References: <20210215180746.2382067-1-fparent@baylibre.com> 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 Init USB Ether if CONFIG_USB_ETHER is enabled. Signed-off-by: Fabien Parent --- board/mediatek/mt8516/mt8516_pumpkin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/board/mediatek/mt8516/mt8516_pumpkin.c b/board/mediatek/mt8516/mt8516_pumpkin.c index 37daf1c51b92..42f3863b92c3 100644 --- a/board/mediatek/mt8516/mt8516_pumpkin.c +++ b/board/mediatek/mt8516/mt8516_pumpkin.c @@ -5,6 +5,7 @@ #include #include +#include int board_init(void) { @@ -24,5 +25,8 @@ int board_late_init(void) } } + if (CONFIG_IS_ENABLED(USB_ETHER)) + usb_ether_init(); + return 0; }