]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mvebu: Espressobin: Detect presence of emmc at runtime
authorPali Rohár <pali@kernel.org>
Wed, 25 Nov 2020 18:20:10 +0000 (19:20 +0100)
committerStefan Roese <sr@denx.de>
Mon, 7 Dec 2020 06:11:37 +0000 (07:11 +0100)
commit5d26cb595eb4f696cef0deca218cfbe504d4caae
tree5314df8bd46d936cd903936e845cb690102110b4
parent55024369b16b295a0bf76bd46318fc89e3a339cf
arm: mvebu: Espressobin: Detect presence of emmc at runtime

Try to initialize emmc in board_late_init() and if it fails then we know
that emmc device is not connected.

This allows to use in U-Boot just one DTS file for all Espressobin variants
and also to correctly set fdtfile env variable for Linux kernel.

Signed-off-by: Pali Rohár <pali@kernel.org>
Tested-by: Gérald Kerma <gerald@gk2.net>
Reviewed-by: Andre Heider <a.heider@gmail.com>
board/Marvell/mvebu_armada-37xx/board.c