Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7156AC11F64 for ; Thu, 1 Jul 2021 14:27:56 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6976861409 for ; Thu, 1 Jul 2021 14:27:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6976861409 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4E43382C01; Thu, 1 Jul 2021 16:27:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id B4E6F82C1A; Thu, 1 Jul 2021 16:27:51 +0200 (CEST) Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) (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 DCF8982C0A for ; Thu, 1 Jul 2021 16:27:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qt1-f173.google.com with SMTP id v10so4216448qto.1 for ; Thu, 01 Jul 2021 07:27:48 -0700 (PDT) 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; bh=7Iu85uWB0eDwvS/5gFzw9u8zn6v4TgD2THTg2C+Bi+Q=; b=XtghkqVJAfgvxkXAtqYfMtDjLMRU8o5/QQoULGZRSdVEhtD8d0eTudbOnvixwrguhc qSPPebAgcvwN5lO2zvoGtWHmsw5N6gSymY6BaW0lh0DckVhDoYGnnfu/GE6dBsiDnj3a OwzH314MFi/cglFxp1S+g0BlygzogrD4zRHrlfXoL5/O5EvSvEqLL8GmhATilGHHIvag 3glqaRxYf0c4jY0Vuk7ALzinkCxjp60HpoR0BDUrXRCdkwcpST7eu3PxEiePNmLbkHtV 5bdXQbbJj3I3RilVbvfbuNoRHRJgI3RHIkB6LBa1DSsYOoOPIug4gPRadqNcuBklrz/U IhVw== X-Gm-Message-State: AOAM5309KnnMgJKSsXeLDFHHKlVepB/iLFkpIBkX9frpTo0JsjxFRLiJ ocSshLs75A6ykNhC7+AxA1yfOSPq74Y0 X-Google-Smtp-Source: ABdhPJxLDh2/0CK5nQVHzr5qfxrPP2bWtkfS/vVIA1nfeA3+1340v5XyDozrKKGZ9YhkskPfhf+iGA== X-Received: by 2002:ac8:7499:: with SMTP id v25mr245592qtq.65.1625149667297; Thu, 01 Jul 2021 07:27:47 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-ad98-12b1-a1ff-34ae.res6.spectrum.com. [2603:6081:7b01:cbda:ad98:12b1:a1ff:34ae]) by smtp.gmail.com with ESMTPSA id l2sm8637qke.10.2021.07.01.07.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jul 2021 07:27:46 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: Lokesh Vutla Subject: [PATCH] configs: j721e_evm: Switch envboot out for distro_bootcmd Date: Thu, 1 Jul 2021 10:27:43 -0400 Message-Id: <20210701142743.26190-1-trini@konsulko.com> X-Mailer: git-send-email 2.17.1 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.103.2 at phobos.denx.de X-Virus-Status: Clean Swap out the TI-centric "envboot" logic for the generic distro_bootcmd logic for the bootcmd we run before trying to do something more complex involving additional firmware, etc. Cc: Lokesh Vutla (maintainer:J721E BOARD) Signed-off-by: Tom Rini --- configs/j721e_evm_a72_defconfig | 2 +- include/configs/j721e_evm.h | 24 ++++++++++++++++++++++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig index 365d66269003..2e890cdfe60a 100644 --- a/configs/j721e_evm_a72_defconfig +++ b/configs/j721e_evm_a72_defconfig @@ -29,7 +29,7 @@ CONFIG_DISTRO_DEFAULTS=y CONFIG_SPL_LOAD_FIT=y CONFIG_SPL_LOAD_FIT_ADDRESS=0x81000000 # CONFIG_USE_SPL_FIT_GENERATOR is not set -CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run boot_rprocs; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern" +CONFIG_BOOTCOMMAND="run findfdt; run distro_bootcmd; run init_${boot}; run boot_rprocs; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern" CONFIG_LOGLEVEL=7 CONFIG_SPL_BOARD_INIT=y CONFIG_SPL_SYS_MALLOC_SIMPLE=y diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index b707fc4e899f..62da8ff956f7 100644 --- a/include/configs/j721e_evm.h +++ b/include/configs/j721e_evm.h @@ -10,7 +10,6 @@ #define __CONFIG_J721E_EVM_H #include -#include #include #include #include @@ -160,6 +159,26 @@ #define EXTRA_ENV_J721E_BOARD_SETTINGS_MTD #endif +#if CONFIG_IS_ENABLED(CMD_PXE) +# define BOOT_TARGET_PXE(func) func(PXE, pxe, na) +#else +# define BOOT_TARGET_PXE(func) +#endif + +#if CONFIG_IS_ENABLED(CMD_DHCP) +# define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na) +#else +# define BOOT_TARGET_DHCP(func) +#endif + +#define BOOT_TARGET_DEVICES(func) \ + func(MMC, mmc, 1) \ + func(MMC, mmc, 0) \ + BOOT_TARGET_PXE(func) \ + BOOT_TARGET_DHCP(func) + +#include + /* Incorporate settings into the U-Boot environment */ #define CONFIG_EXTRA_ENV_SETTINGS \ DEFAULT_LINUX_BOOT_ENV \ @@ -170,7 +189,8 @@ EXTRA_ENV_RPROC_SETTINGS \ EXTRA_ENV_DFUARGS \ DEFAULT_UFS_TI_ARGS \ - EXTRA_ENV_J721E_BOARD_SETTINGS_MTD + EXTRA_ENV_J721E_BOARD_SETTINGS_MTD \ + BOOTENV /* Now for the remaining common defines */ #include -- 2.17.1