[PATCH] imx8m: Drop unused function env_get_offset

Michael Trimarchi michael at amarulasolutions.com
Wed Nov 17 15:34:56 CET 2021


This function is used in nxp u-boot tree.

Signed-off-by: Michael Trimarchi <michael at amarulasolutions.com>
---
 arch/arm/mach-imx/imx8m/soc.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
index 863508776d..e75d2fa255 100644
--- a/arch/arm/mach-imx/imx8m/soc.c
+++ b/arch/arm/mach-imx/imx8m/soc.c
@@ -1352,19 +1352,4 @@ enum env_location env_get_location(enum env_operation op, int prio)
 	return env_loc;
 }
 
-#ifndef ENV_IS_EMBEDDED
-long long env_get_offset(long long defautl_offset)
-{
-	enum boot_device dev = get_boot_device();
-
-	switch (dev) {
-	case NAND_BOOT:
-		return (60 << 20);  /* 60MB offset for NAND */
-	default:
-		break;
-	}
-
-	return defautl_offset;
-}
-#endif
 #endif
-- 
2.25.1



More information about the U-Boot mailing list