From patchwork Mon Jan 31 16:58:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1586890 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=c9C4UWYU; dkim-atps=neutral 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=) 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4JnZGl3X0Xz9s5B for ; Tue, 1 Feb 2022 04:06:39 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 15645836BB; Mon, 31 Jan 2022 18:06:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="c9C4UWYU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0309983076; Mon, 31 Jan 2022 17:59:06 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) (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 3504483559 for ; Mon, 31 Jan 2022 17:59:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tommaso.merciai@amarulasolutions.com Received: by mail-ej1-x632.google.com with SMTP id p15so44915559ejc.7 for ; Mon, 31 Jan 2022 08:59:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IOlMSX9Pc3E8Dot0Dj+hOvG2WL6g9xOInHcqfIPnYmw=; b=c9C4UWYUtdUfrsQtUeisxTzrt9nXfiH4Ap18YoxRBlHR+LtRkQBQjdyDeTWX/jKt5R 6lLv9tSrMRgWIPbzCbRFYFO0FUQ7x7oCJeGemUJtb7Ozw0Jp+AVwQyqQoFBGmVamh6uO acMNki3S8V+3N3H+TJ4zF1k+p1MjMcWMHuabc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IOlMSX9Pc3E8Dot0Dj+hOvG2WL6g9xOInHcqfIPnYmw=; b=Z6p/vl4D4BXqSsttlhA195UtA2MvW1x5mSK5BzVEnx7DpN5MKuEa8U7tV47yHP4+LR es1HBhqQGZicvGJ7ZqrbW7CCIhftrJLXfDE3JH+oWiI77zM78o4a2nT0VAY2apsQspiz kZYKYKDn1Q786rhLOOhIxIoEeBRg28sUjpTNbopvqz7UZK2OUOqFMxahWYL8ijA4BnQ1 VRke2RM/G3OEZCvvvHVdwtmAX3/qrVF/5YDE5W6KgPrxEPQyJFk0fQVMrZviLHhta3/u v1GfaRce9gCgHlnW3TS0GX2GBJ40ONhcFGsu1HKHN17JrrJQIzgrFLlDTmNEUtdvtmLs TARQ== X-Gm-Message-State: AOAM532K5QYIzPQdfPKTKeDMCzMqYk4/8Qm2UwUVaDn3luTEP7ybpTAS 7aZy5dQRX6YIuRR9OeKlr1NVkw== X-Google-Smtp-Source: ABdhPJzGvVi4Iu5ofBi0TdClCV6z1tCvusoUs1FEtlEYs9SafGSdmyTWMjl5Xsh2y5MWaObHjeFnrg== X-Received: by 2002:a17:907:2d11:: with SMTP id gs17mr18190505ejc.189.1643648341740; Mon, 31 Jan 2022 08:59:01 -0800 (PST) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-50-123.cust.vodafonedsl.it. [188.217.50.123]) by smtp.gmail.com with ESMTPSA id jl17sm13949507ejc.16.2022.01.31.08.59.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jan 2022 08:59:01 -0800 (PST) From: Tommaso Merciai To: Cc: michael@amarulasolutions.com, aford173@gmail.com, tommaso.merciai@amarulasolutions.com, Stefano Babic , Fabio Estevam , "NXP i.MX U-Boot Team" , Peng Fan , Ye Li , Simon Glass , Marek Vasut , Frieder Schrempf , "Ying-Chun Liu (PaulLiu)" , u-boot@lists.denx.de Subject: [PATCH v4 0/4] imx8m: move env_get_location for imx8mn and imx8mp at board level Date: Mon, 31 Jan 2022 17:58:54 +0100 Message-Id: <20220131165859.261923-1-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 31 Jan 2022 18:06:21 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean This series move env_get_location from soc to board level. As suggested by Michael make no sense to define an unique way for multiple board. One board can boot from emmc and having env on spi flash etc.. Anyways, this function is kept in imx8mn_evk, imx8mp_evk, phycore-imx8mp and imx8mn_beacon boards instead of being completely dropped. Note for all imx8mp/imx8mn users: This patch move only the env_get_location function at board level in this way every users can override it depending on own needs. Test it. Tommaso Merciai (4): imx8m: drop env_get_location for imx8mn and imx8mp imx: imx8mn_evk: override env_get_location imx: imx8mp_evk: override env_get_location phytec: phycore_imx8mp: override env_get_location arch/arm/mach-imx/imx8m/soc.c | 39 -------------------- board/freescale/imx8mn_evk/imx8mn_evk.c | 35 ++++++++++++++++++ board/freescale/imx8mp_evk/imx8mp_evk.c | 34 +++++++++++++++++ board/phytec/phycore_imx8mp/phycore-imx8mp.c | 33 +++++++++++++++++ 4 files changed, 102 insertions(+), 39 deletions(-)