VIM3: mmc_get_env_dev correct non emmc boot sources
authorArtem Lapkin <email2tema@gmail.com>
Thu, 27 May 2021 07:35:28 +0000 (15:35 +0800)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 27 Jul 2021 08:28:41 +0000 (10:28 +0200)
commit786c514946d485b009f49f8cb2231b83dfb22718
tree611609c2af1aa7c8afc59b09708662728847da34
parente38f55d2e58b2c05b95006d41c59211420e73e62
VIM3: mmc_get_env_dev correct non emmc boot sources

need return -1 if boot source is not EMMC or SD ( for example it will be
useful if we have multy env sources configuration and device was booted
from SPI flash and env need read from SPI not from mmc )

Signed-off-by: Artem Lapkin <art@khadas.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
board/amlogic/vim3/vim3.c