Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id CEC90C433EF for ; Tue, 30 Nov 2021 20:18:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AAE1083081; Tue, 30 Nov 2021 21:18:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="RA5DHnAM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 13C0F83081; Tue, 30 Nov 2021 21:18:08 +0100 (CET) Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (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 37E908301D for ; Tue, 30 Nov 2021 21:18:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tomm.merciai@gmail.com Received: by mail-ed1-x52d.google.com with SMTP id e3so91837867edu.4 for ; Tue, 30 Nov 2021 12:18:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JJJkaGhiqzCxcmol6hjSGGyA0ME3/ocgYNpfd12ocJA=; b=RA5DHnAMotYQSEujHBVSTC8RgNW3oOLLWp06YvFl82n7OtNwiyxffOnqTWyFpZf+qn D/mvMK0WMY7mYFS9naL8ab8RAOTP5bxKDCBKOJFyH16WewkiFsF+cf4CeBoA401PDl9+ 55EQ7oAFpE8fk+ToBFAh7CeX9qSMAjQAJGDOUG5DCMtQ2xgJrDnOO9m+mX49UXIGoMKz vScHTtTjRGboOdianU1UjwZ62xy9tTyK4KNG1jX5OWOAM5zIDAHgr4TqxQTOBIs1sZ3z O8F6Nw75sHjhbwlalgcB10Ag3+q1jry30yuiSzX57yYSlhgSZJfZl7APiBMags6StMxY ffwg== 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=JJJkaGhiqzCxcmol6hjSGGyA0ME3/ocgYNpfd12ocJA=; b=ioYv3eyRWLxIasHHAiONr2taJKN9vEj+IISQzn2t9ZNHvrPb0hwAwx9H+FO32l4KdW jkjO8yGVYJk4IHMFxsSN6UylfvEdNB/JJnJ3hVdCy/edGwALJWMn92+jHquSJyCb9HqU FJB69HjLRLngK22KG1AxWXnYB7lPuvIDPrQ/q7Ze+Glh1e4j6FI17YsCgmiV1xKPUKZb tJ8wwzuyzY/5iJgl9U4fmOTmBBt1tokJF1gUf7hdXUtx0gqFUA/4k+32xplUEZG6daT6 /ysjHmwkLywHDRO2sn39m86yARjvzWIjoy1raf6jFaTSLNTkbuI5a3pkCZtd5p0D1wE4 u+dQ== X-Gm-Message-State: AOAM530yt7KeapnAKa5QE4eGRbkMBoKLz/081ybx3VQp99tAZ3Xugyxw 0co+BvekDyhTqzff994V2UI= X-Google-Smtp-Source: ABdhPJxubheNSwcUHP19r5Gu0m5UYI+sZ4NA5LMnjIAeHoeV3khI1QN1LQgeg9EabEEEidnzvxehLA== X-Received: by 2002:a05:6402:51cf:: with SMTP id r15mr1729023edd.271.1638303483677; Tue, 30 Nov 2021 12:18:03 -0800 (PST) Received: from tom-desktop.station (net-2-39-74-150.cust.vodafonedsl.it. [2.39.74.150]) by smtp.gmail.com with ESMTPSA id sg39sm9288064ejc.66.2021.11.30.12.18.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 12:18:02 -0800 (PST) From: Tommaso Merciai To: Cc: michael@amarulasolutions.com, Tommaso Merciai , Stefano Babic , Fabio Estevam , "NXP i.MX U-Boot Team" , Peng Fan , Ye Li , Simon Glass , Marek Vasut , Frieder Schrempf , =?UTF-8?q?Marek=20Beh=C3=BAn?= , "Ying-Chun Liu (PaulLiu)" , u-boot@lists.denx.de Subject: [RFC PATCH v2 0/3] imx8m: move env_get_location for imx8mn and imx8mp at board level Date: Tue, 30 Nov 2021 21:17:26 +0100 Message-Id: <20211130201729.32728-1-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 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 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 both imx8mn and imx8mp evk boards instead of being completely dropped. (as suggested by Andrey ) Tommaso Merciai (3): imx8m: drop env_get_location for imx8mn and imx8mp imx: imx8mn_evk: override env_get_location imx: imx8mp_evk: 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 +++++++++++++++++++++ 3 files changed, 69 insertions(+), 39 deletions(-) -- 2.25.1