]> git.baikalelectronics.ru Git - uboot.git/commit
env: sf: Allow to use env_sf_init_addr() at any stage
authorPali Rohár <pali@kernel.org>
Wed, 2 Mar 2022 11:47:51 +0000 (12:47 +0100)
committerStefan Roese <sr@denx.de>
Mon, 2 May 2022 05:28:25 +0000 (07:28 +0200)
commit44db334d351175437b8981fdea842d365bf53d8e
treecf94d051b5dc070c599384faf930a210c579d16c
parent106efe907cd47663b15b303a94c87e35d6788523
env: sf: Allow to use env_sf_init_addr() at any stage

In some cases it makes sense to use env_sf_init_addr() also in SPL mode.
Allow it for boards by providing custom implementation of weak function
env_sf_get_env_addr(). When this function returns NULL it signals that
address is invalid, like config option CONFIG_ENV_ADDR.

There is no change in default behavior or in config options.

Signed-off-by: Pali Rohár <pali@kernel.org>
env/sf.c