From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07A4FC433F5 for ; Thu, 18 Nov 2021 13:58:19 +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 C451261A8A for ; Thu, 18 Nov 2021 13:58:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C451261A8A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E3667811DE; Thu, 18 Nov 2021 14:58:15 +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="hBZFAhEn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F1C1082F6F; Thu, 18 Nov 2021 14:58:13 +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 9342F811DE for ; Thu, 18 Nov 2021 14:58:10 +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=michael@amarulasolutions.com Received: by mail-ed1-x52d.google.com with SMTP id g14so27398290edb.8 for ; Thu, 18 Nov 2021 05:58:10 -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=5naPmw8ql50PtWrRuz5K/PPVHed++UMfLbEacGsPuDs=; b=hBZFAhEnT+dhiA8otKyeL93dnvlcrQvO1qfn/K64TNvZTbGfrzVutVbzsrY6zHQ2lp Tj9CsK657mpBStuwhzQvTu41mnfUv3WT8NmYsyprcqwTYXUMvLmTc3hgsERbKGI0fT4j 4tIilOymSbu29QNIedFjh6REEDz5izV0XOlSs= 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=5naPmw8ql50PtWrRuz5K/PPVHed++UMfLbEacGsPuDs=; b=cthTRg0pcX1Vx+Tw+qZvABkhqsHl2+OSGQIljj62T3QJqYgC9qs5+MQ0BrpzJu2gJB pCEl8axAVmsSoaCuJinuVkKgCghF3JlOJsvMzpzgK5PGVnVxNIFeVTjoA0bWr85WWTFk X+faV947BaXhzTJ6Wr70YCDaUHHTkWxXlZTd6TVj8/GrFxMWXXqZIiZ26XmX30lFJVVw SQ+XFctcs01gs2qmuHgGdqVY5M6M8nheUvwxEjj8wHSowTKjgDgPFNomoQ55Eomk/Mop mODTMfQ+OVcvA2Wdw3qaMYSkmMhZEGt/4mRdL+OVsifSHPu1Enp83aQTyrRMUxQfemzP DmGQ== X-Gm-Message-State: AOAM533l0RSM31ep2vIRWKxjpQlfakBzcK6wY5yzgpQbkgULNe2zwLH3 3PIoASLOoVE3eQ6/dZIkCUgnsAjpQ4Zh/w== X-Google-Smtp-Source: ABdhPJw4sPBi/vuT3WBxzf4p28wmkNOKMRPBIaoWPuUsB7M/zW851ioWLnfLKdekXxliTWjQQI/zYg== X-Received: by 2002:a17:907:3f24:: with SMTP id hq36mr34056520ejc.390.1637243890066; Thu, 18 Nov 2021 05:58:10 -0800 (PST) Received: from panicking.amarulasolutions.com ([62.18.234.25]) by smtp.gmail.com with ESMTPSA id j14sm1859055edw.96.2021.11.18.05.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Nov 2021 05:58:09 -0800 (PST) From: Michael Trimarchi To: Ye Li , Stefano Babic , Fabio Estevam Cc: u-boot@lists.denx.de, Ariel D'Alessandro , linux-amarula@amarulasolutions.com, Anthony Brandon Subject: [RFC PATCH] imx8m: Drop env_get_location for imx8mn and imx8mp Date: Thu, 18 Nov 2021 14:58:07 +0100 Message-Id: <20211118135807.325871-1-michael@amarulasolutions.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.35 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 function defined for two architecture is not really clean and can be generate problem when people add a new board Signed-off-by: Michael Trimarchi --- arch/arm/mach-imx/imx8m/soc.c | 42 ----------------------------------- 1 file changed, 42 deletions(-) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index e75d2fa255..83a515c973 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -1311,45 +1311,3 @@ void do_error(struct pt_regs *pt_regs, unsigned int esr) } #endif #endif - -#if defined(CONFIG_IMX8MN) || defined(CONFIG_IMX8MP) -enum env_location env_get_location(enum env_operation op, int prio) -{ - enum boot_device dev = get_boot_device(); - enum env_location env_loc = ENVL_UNKNOWN; - - if (prio) - return env_loc; - - switch (dev) { -#ifdef CONFIG_ENV_IS_IN_SPI_FLASH - case QSPI_BOOT: - env_loc = ENVL_SPI_FLASH; - break; -#endif -#ifdef CONFIG_ENV_IS_IN_NAND - case NAND_BOOT: - env_loc = ENVL_NAND; - break; -#endif -#ifdef CONFIG_ENV_IS_IN_MMC - case SD1_BOOT: - case SD2_BOOT: - case SD3_BOOT: - case MMC1_BOOT: - case MMC2_BOOT: - case MMC3_BOOT: - env_loc = ENVL_MMC; - break; -#endif - default: -#if defined(CONFIG_ENV_IS_NOWHERE) - env_loc = ENVL_NOWHERE; -#endif - break; - } - - return env_loc; -} - -#endif -- 2.25.1