From patchwork Thu Nov 18 13:58:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nazzareno Trimarchi X-Patchwork-Id: 1777 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D43383F1CD for ; Thu, 18 Nov 2021 14:58:11 +0100 (CET) Received: by mail-ed1-f71.google.com with SMTP id b15-20020aa7c6cf000000b003e7cf0f73dasf5288663eds.22 for ; Thu, 18 Nov 2021 05:58:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1637243891; cv=pass; d=google.com; s=arc-20160816; b=OhPz3qdNTrvTHoYsWANRs79kZS7DQCuatO5ZejOIGlryIhJZ46H1jG6j6zc12Zhvqx xbsiVHGi38vTAYD7YsDqTG2HOMUU+gp9Ewc1IGhvJ3pieQbHk+O/KPN6Im/XcWehDvaU psZur1ep3nPuahUl2bR8iTEFN1xwZ3Jj01rtuh3A4OgSu8nNwOJcHAjHkO9aYtERvxYu Dam4ZnFUmLuVKtlWGl1EaOGWjhEWum4HpvJvryO8fZf199Jbyv81UgCzS0vaVHxDUKmM 3gZYaaUFOlJhku7XPk7VS5GBGn64wZtjUeXKqoAhBTHski92qiu2O5dHyPLayd+c2239 wR0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=Yx28SQBRHzUZiuzkJGUlOd1dkl0zBmiSN6OGqWL2gL0=; b=SEP+BIY1sizHFDc7jN6w6/qhsH3+Jyb1GY1p+alw0m+D4UqxuHY0KGLSjsWQA4c5yd wT+NKBiWQ5NZ8Dl5/j88H1ZFUX4eyKxBIYvEAN97FKn38t9Ho9FhMEqfHEgy16X4pOjy 5zHMOcrbQrk6+Fs8BjmR7VAwP8aSKk/EPN7vyg3ggOZoK54S4BAA9ZkfKzY5J4a/H9gi b5c/8Kf9eDRKO771feGOCbIUJMpElyj4FhR2r4EoESvyDTeknllLMP+OJgVSnTtbkbnY kLTmKTct/mkZYjyEk2sEu2IhM42GnmcP9JPk+4mO2Vdtn12UzgjCi4nhST0LQLhle0zv vnyg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hBZFAhEn; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=Yx28SQBRHzUZiuzkJGUlOd1dkl0zBmiSN6OGqWL2gL0=; b=hIXjunwz2uj857bDmNZBaQfmh7pJrJu37/gnHZxKv5dfllDIguypuKHmDfcetJb9F/ yYsBIez4g+f2zx6kBckHcU5lXXtVh3JJ4+yhuBbuJ6lwyG5bGOM2EmmFZULnZHsCNPao E4Oz9Sekz2/6ck7DVzVW310qyldi+vIcKQ+WQ= 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 :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=Yx28SQBRHzUZiuzkJGUlOd1dkl0zBmiSN6OGqWL2gL0=; b=3B//P+ZxrurJgwXHsddX0XZUFqPyNoyyuckkCki9EV/fLoU4ZfbWVWMZ3PvNAGEXo0 OPbMnLebRohiLF6EKLjW84vzGLf6zlXvia0RY2ggvZNQrT9KKwIsMPbOhA5ATE/ETgMR 10EQskuW8jbfyLrHSMOPGi/2pO9fEUoY2xVv2amdFG2tQx2uYXQ4igMNRq07GB217H5d +3jLDfb0d60Rws0damkaI+tHzeWf1k6tFIAPc8gZr+beR2/pdA3PWmMpXbfEbAy6PEAU //p/tBT/DNLI0nLSFlYkVZNZ+9FmwY2pYqahO3bNxVrhaW/GO2fQgPniUilChwWIvd1r e3NA== X-Gm-Message-State: AOAM533QhiygUZtPvKqSnn8l5FUW7tKoaNpUkwHJRvArVBNDed+mBjVm LHyYCjuOSCUglZ5eEHsrnEeMJudB X-Google-Smtp-Source: ABdhPJyAZeawn/g4Y+x17xZtdj0mqyWDy5eB1+5jtxHDz160la6SfEAHvnwtW8IfNcK3jVsYwdg+ag== X-Received: by 2002:a17:907:948a:: with SMTP id dm10mr33746002ejc.455.1637243891496; Thu, 18 Nov 2021 05:58:11 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a50:fd09:: with SMTP id i9ls3422551eds.3.gmail; Thu, 18 Nov 2021 05:58:10 -0800 (PST) X-Received: by 2002:a05:6402:5110:: with SMTP id m16mr11623290edd.15.1637243890459; Thu, 18 Nov 2021 05:58:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637243890; cv=none; d=google.com; s=arc-20160816; b=bsuimaxww2oVtNoKPeFR3euGcV7Cxfmhw08GCzQb3TacuAjmqCJUV1CRtuuma4IGMV KLwpxZJ6FzMBotNyiM25W7gzIUwt1Tllzfyg0mp7k5j1XDfMlaUc241iN93H+Nl7oTYT EP/0sEYk2pTwq7TtBZ+OaIbY8OymQqzS8SlAue5UL7NPuWUdWwPljI0setm/wO75ofMi F4ryt4S9f6pU1X3ZK4tnivMc/249Ukilj8AzTgivrXBMnGNluMoj5GZpT8PPGsJzwieh OErCkU/PCwqweOJikvYYNIuF1bTTGJiJosMSj52uTCAPm4SWO9BrZtXNdC0eQ+wXGWT8 BIDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=5naPmw8ql50PtWrRuz5K/PPVHed++UMfLbEacGsPuDs=; b=Y8FOST976RnLeu424IAW1Jbse1xx+sUF66j81+fVvpsPnjfFR2i91rGPb5MrC/bgm2 jfWkRW8HyD3Xrvm7n+cbpffYdnHYv12omBLvCkzyeUj6SKaqhefAnr4zTkjuWbQgJI/I j7D15wgy47difxf9rHWUeoFg7AMnO9PyW3KurGYTmrB8rLT65ElQwEbvlVYCvbRTZMUA Gs/P5UO855qghngR2fLhLuZodebKEx91GRCvzMv1QqmzSdeljJbVVJxHr5TRiK4uoZjH cfMhs39UlYG1uazBkND+QvKitXqo+QKkQN1MpTyMuPltiQwPRIIKx0570qDiBR8H3qr7 I+Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hBZFAhEn; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id hq21sor2070436ejc.87.2021.11.18.05.58.10 for (Google Transport Security); Thu, 18 Nov 2021 05:58:10 -0800 (PST) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; 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 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hBZFAhEn; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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