]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv8: layerscape: env: Switch to arch_env_get_location()
authorMarek Vasut <marex@denx.de>
Wed, 6 Apr 2022 00:21:33 +0000 (02:21 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 21 Apr 2022 13:08:41 +0000 (09:08 -0400)
Implement arch_env_get_location() instead of env_get_location(), so that
the env_get_location() can be implemented on board level and override the
arch_env_get_location() architecture defaults.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Adam Ford <aford173@gmail.com>
Cc: Fabio Estevam <festevam@denx.de>
Cc: Marek BehĂșn <marek.behun@nic.cz>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Tim Harvey <tharvey@gateworks.com>
Cc: Tom Rini <trini@konsulko.com>
Cc: Tommaso Merciai <tomm.merciai@gmail.com>
Cc: Vladimir Oltean <vladimir.oltean@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/cpu.c

index 14678a367080bb652f76372cd798535a32c624af..cf469804c5114361ee99fb2f42a1e04a343d9c66 100644 (file)
@@ -819,7 +819,7 @@ int mmc_get_env_dev(void)
 }
 #endif
 
-enum env_location env_get_location(enum env_operation op, int prio)
+enum env_location arch_env_get_location(enum env_operation op, int prio)
 {
        enum boot_src src = get_boot_src();
        enum env_location env_loc = ENVL_NOWHERE;