From patchwork Mon Feb 15 18:07:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 1440677 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; 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=jSUoPCmJ; 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 4DfXCJ5GFkz9sSC for ; Tue, 16 Feb 2021 05:08:05 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5235E826A6; Mon, 15 Feb 2021 19:07:56 +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="jSUoPCmJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DE38A826DB; Mon, 15 Feb 2021 19:07:53 +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-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (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 C0341826A5 for ; Mon, 15 Feb 2021 19:07:50 +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-wm1-x32b.google.com with SMTP id o24so10119793wmh.5 for ; Mon, 15 Feb 2021 10:07:50 -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:mime-version :content-transfer-encoding; bh=ceJ5aMnAGaaT9LwkMsdgcTjHl2Z8RpgmNBqg9cJMp84=; b=jSUoPCmJrKssDUVMdXD4gcsqMv6v+hWieZaPFZ77nJCUycu1V/6AN3273N+MRPdfHa z6WnEU5Af4GmebGmD31MNGaPPnIbyh1Mcj7dOUovqG3Rm4owRfU00H72rWV90mwEEpam 2wkbQc8t91P7/qSA9N2uk3WJRcXnM2LyfvpJQUiBvGUSBq/NAKLed030hk/e3au92rev gR8/ik/FPkXgIfeimeTHsF8/k5JOj4pTA5270KPMfv/tG3Ndd3hxM4a0HRXdUI6SR9RQ NksQ3wbegoYhUxTVdDEYNW4OZoqx0fMNn7cXeqVcJdTK/haNQ9/iVWVnRcOnrrRn0Udo YE5Q== 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=ceJ5aMnAGaaT9LwkMsdgcTjHl2Z8RpgmNBqg9cJMp84=; b=POUHIPfq327Gc8SFH73JA3pQY8eRzmrcQCWviOffbJrRkwbx9OwxoVK7R9ofBGf0vo 4gMgJhjv4nUunYcoPA+/aLIIs9FZ/A6VDX5959shSZpDTeVYIy0LAxLFnMz5XtdsdTWT RqEUkhKAXpVEOMKi1LcC3rrc5beB9pLMk8ePqXIIeKNL61QKk3Hyf1RuAkU8s5Ql/kok x8PxjjxVjXln1ETk1YPOoUchamnJ+j8ISnZJtwQkPyVqaFVSrYcs15+jdhf/Z3RU9ZLE ElMLOVbke2S11W1byjRDbPNapTpf4VTfimqI4h8aHWboFCYh76YM4ukRwSyRuHsnDB87 JXjA== X-Gm-Message-State: AOAM530mpOU3BnGmaBW+TZSAT6ZtjkHzPFbeOjwbkK4b15BSnqwe5hCy JFACR4+AOZinh8Ca5s9giX048Q== X-Google-Smtp-Source: ABdhPJxDv/Vt/MB+v2v1Wy5KbUZgnWT6LDUUE7NHTpHu+Nc4v5r6FuWnFt0/+dH7HEzMVLRciRRB/g== X-Received: by 2002:a1c:105:: with SMTP id 5mr89406wmb.89.1613412470380; Mon, 15 Feb 2021 10:07:50 -0800 (PST) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id u4sm23575597wrr.37.2021.02.15.10.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 10:07:49 -0800 (PST) From: Fabien Parent To: Ryder Lee , Weijie Gao , Chunfeng Yun , GSS_MTK_Uboot_upstream , Fabien Parent Cc: u-boot@lists.denx.de Subject: [PATCH 1/3] board: mediatek: rename pumpkin board into mt8516 Date: Mon, 15 Feb 2021 19:07:44 +0100 Message-Id: <20210215180746.2382067-1-fparent@baylibre.com> X-Mailer: git-send-email 2.30.0 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 More than one pumpkin board has been made with different MediaTek SoCs. Rename the pumpkin board to follow the naming convention of all other MediaTek boards and also to not be confusing when other pumpkin boards will be added in follow-up commits. Signed-off-by: Fabien Parent --- arch/arm/mach-mediatek/Kconfig | 2 +- board/mediatek/{pumpkin => mt8516}/Kconfig | 4 ++-- board/mediatek/mt8516/MAINTAINERS | 6 ++++++ board/mediatek/{pumpkin => mt8516}/Makefile | 2 +- .../mediatek/{pumpkin/pumpkin.c => mt8516/mt8516_pumpkin.c} | 0 board/mediatek/pumpkin/MAINTAINERS | 6 ------ configs/{pumpkin_defconfig => mt8516_pumpkin_defconfig} | 0 include/configs/{pumpkin.h => mt8516.h} | 4 ++-- 8 files changed, 12 insertions(+), 12 deletions(-) rename board/mediatek/{pumpkin => mt8516}/Kconfig (76%) create mode 100644 board/mediatek/mt8516/MAINTAINERS rename board/mediatek/{pumpkin => mt8516}/Makefile (58%) rename board/mediatek/{pumpkin/pumpkin.c => mt8516/mt8516_pumpkin.c} (100%) delete mode 100644 board/mediatek/pumpkin/MAINTAINERS rename configs/{pumpkin_defconfig => mt8516_pumpkin_defconfig} (100%) rename include/configs/{pumpkin.h => mt8516.h} (97%) diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig index 7f40ba93190b..2791b3dbda2b 100644 --- a/arch/arm/mach-mediatek/Kconfig +++ b/arch/arm/mach-mediatek/Kconfig @@ -76,7 +76,7 @@ source "board/mediatek/mt7622/Kconfig" source "board/mediatek/mt7623/Kconfig" source "board/mediatek/mt7629/Kconfig" source "board/mediatek/mt8512/Kconfig" +source "board/mediatek/mt8516/Kconfig" source "board/mediatek/mt8518/Kconfig" -source "board/mediatek/pumpkin/Kconfig" endif diff --git a/board/mediatek/pumpkin/Kconfig b/board/mediatek/mt8516/Kconfig similarity index 76% rename from board/mediatek/pumpkin/Kconfig rename to board/mediatek/mt8516/Kconfig index 34b1c0b09d47..a87d3872fe6e 100644 --- a/board/mediatek/pumpkin/Kconfig +++ b/board/mediatek/mt8516/Kconfig @@ -1,10 +1,10 @@ if TARGET_MT8516 config SYS_BOARD - default "pumpkin" + default "mt8516" config SYS_CONFIG_NAME - default "pumpkin" + default "mt8516" config MTK_BROM_HEADER_INFO string diff --git a/board/mediatek/mt8516/MAINTAINERS b/board/mediatek/mt8516/MAINTAINERS new file mode 100644 index 000000000000..2f0d8f646498 --- /dev/null +++ b/board/mediatek/mt8516/MAINTAINERS @@ -0,0 +1,6 @@ +MT8516 Pumpkin +M: Fabien Parent +S: Maintained +F: board/mediatek/mt8516 +F: include/configs/mt8516.h +F: configs/mt8516_pumpkin_defconfig diff --git a/board/mediatek/pumpkin/Makefile b/board/mediatek/mt8516/Makefile similarity index 58% rename from board/mediatek/pumpkin/Makefile rename to board/mediatek/mt8516/Makefile index 75fce4a393ab..1d4815d1370f 100644 --- a/board/mediatek/pumpkin/Makefile +++ b/board/mediatek/mt8516/Makefile @@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0 -obj-y += pumpkin.o +obj-y += mt8516_pumpkin.o diff --git a/board/mediatek/pumpkin/pumpkin.c b/board/mediatek/mt8516/mt8516_pumpkin.c similarity index 100% rename from board/mediatek/pumpkin/pumpkin.c rename to board/mediatek/mt8516/mt8516_pumpkin.c diff --git a/board/mediatek/pumpkin/MAINTAINERS b/board/mediatek/pumpkin/MAINTAINERS deleted file mode 100644 index 16beadc027a1..000000000000 --- a/board/mediatek/pumpkin/MAINTAINERS +++ /dev/null @@ -1,6 +0,0 @@ -Pumpkin -M: Fabien Parent -S: Maintained -F: board/mediatek/pumpkin -F: include/configs/pumpkin.h -F: configs/pumpkin_defconfig diff --git a/configs/pumpkin_defconfig b/configs/mt8516_pumpkin_defconfig similarity index 100% rename from configs/pumpkin_defconfig rename to configs/mt8516_pumpkin_defconfig diff --git a/include/configs/pumpkin.h b/include/configs/mt8516.h similarity index 97% rename from include/configs/pumpkin.h rename to include/configs/mt8516.h index 9c52cae41d71..e809a9c7e304 100644 --- a/include/configs/pumpkin.h +++ b/include/configs/mt8516.h @@ -6,8 +6,8 @@ * Author: Fabien Parent 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; } From patchwork Mon Feb 15 18:07:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 1440679 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=vTa7WtHA; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DfXCZ6mWBz9sRN for ; Tue, 16 Feb 2021 05:08:26 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6B3DA8271A; Mon, 15 Feb 2021 19:08:04 +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="vTa7WtHA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8BEDE826D4; Mon, 15 Feb 2021 19:07:57 +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-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 76AEF826D4 for ; Mon, 15 Feb 2021 19:07:53 +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-wm1-x333.google.com with SMTP id l17so6950914wmq.2 for ; Mon, 15 Feb 2021 10:07:53 -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=Q0E/5SYEUBLfE03jGobyX52u30EAyeV5YXZyQ+lhFVc=; b=vTa7WtHAgTxeet9SsGWy7Z5H8GZ1TlsjstwRUTx+un+DGn8YhNnCERLvFY0Jf9p1zH 6n2omFtilmlKTMeSJqpODd8DmKT2dku3eFeG1TjLJ1Dm5eTOHo8JZA9Ca126DWf3m4ky jYaH4SAU2hO/III5vtxnmQTHMireBZg5BFl2YFPSaIEj7RNI7KbiSlwI56w/lxQ9E3cQ 0dTI/d82TEnxSuHKuC/wyovHZRATN+Lv3FtMGSzVg7vFWzMbAO+A40fFHfkkBy9Oez3j 4C19Sag4xonLTlmIZdpeIiK9iq+sMCcjXdEFjxS+irJE0aYiPzjsL7ss0OEuODaTVz/x bSxw== 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=Q0E/5SYEUBLfE03jGobyX52u30EAyeV5YXZyQ+lhFVc=; b=mM09lOVx4gR0BZceVunFm0g18Hw7Se71+7yDrvB25IjIDhgw9MReV+IOuzYtP7HTMB ZPL4E9QLjUdGqxUncjqK/RtlhfLsM5/rWd6HX+yVuPP7fT2c8aZUeYm77V3C6hor3J/w u1NCsODq4M/lOq+Ezz0/NXibFGYqApiz3yJJHEfo2L2CJljSNpCiWszVWBvlQe5G6bOW CYlAyktcP2DamRAdl8DUuTEeR2X6jibLgO3kjVnzDwRxcNODi6uke3zN/xBmwH6NxtTh Ysu2iLIzwC0B+XSZp2q2uTAmIE0QmTejEFZKMpFV75A4Fs7M7HVpmHdqsJcTP3scQ7/3 r9yQ== X-Gm-Message-State: AOAM530HUXVOV9NqTIsxmcwav2ZU6E9LY8NT1z3TjVxbvgaBNcHOISeQ mSHvYNalt1TpWMEohYjkpK8jzw== X-Google-Smtp-Source: ABdhPJwIgTbxcdJw61S2CZB6jWQ3Bg3UQj+f+3HJpsAprUfMhIk3d5tRd6tMw7/9OBpV/TgctKDGBA== X-Received: by 2002:a05:600c:350a:: with SMTP id h10mr111017wmq.142.1613412473088; Mon, 15 Feb 2021 10:07:53 -0800 (PST) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id u4sm23575597wrr.37.2021.02.15.10.07.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 10:07:52 -0800 (PST) From: Fabien Parent To: Fabien Parent Cc: u-boot@lists.denx.de Subject: [PATCH 3/3] configs: mt8516: use bootcmd from config_distro_bootcmd.h Date: Mon, 15 Feb 2021 19:07:46 +0100 Message-Id: <20210215180746.2382067-3-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 Instead of redefining our own way to boot, let's just use config_distro_bootcmd.h. Signed-off-by: Fabien Parent --- include/configs/mt8516.h | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/include/configs/mt8516.h b/include/configs/mt8516.h index e809a9c7e304..a1c5d8174be7 100644 --- a/include/configs/mt8516.h +++ b/include/configs/mt8516.h @@ -31,23 +31,11 @@ /* Environment settings */ #include -#define MMCBOOT \ - "mmcdev=0\0" \ - "kernel_partition=2\0" \ - "rootfs_partition=3\0" \ - "mmc_discover_partition=" \ - "part start mmc ${mmcdev} ${kernel_partition} kernel_part_addr;" \ - "part size mmc ${mmcdev} ${kernel_partition} kernel_part_size;\0" \ - "mmcboot=" \ - "mmc dev ${mmcdev};" \ - "run mmc_discover_partition;" \ - "mmc read ${kerneladdr} ${kernel_part_addr} ${kernel_part_size};" \ - "setenv bootargs ${bootargs} root=/dev/mmcblk${mmcdev}p${rootfs_partition} rootwait; " \ - "bootm ${kerneladdr}; \0" +#define BOOT_TARGET_DEVICES(func) \ + func(MMC, mmc, 0) #define CONFIG_EXTRA_ENV_SETTINGS \ - "kerneladdr=0x4A000000\0" \ - MMCBOOT \ - "bootcmd=run mmcboot;\0" + "scriptaddr=0x40000000\0" \ + BOOTENV #endif