sandbox: mmc: Support fixed MMC devices
authorSimon Glass <sjg@chromium.org>
Mon, 5 Jul 2021 22:32:58 +0000 (16:32 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Jul 2021 16:27:35 +0000 (10:27 -0600)
commit6b165ab2b7b1dc89357afbe86c1977addf5aed3b
treed8d29576a4de5ab1a011abdbd29d1d9d713a2e52
parent7d84fbb57312ac0224dc67860f4d0306a3bb3f81
sandbox: mmc: Support fixed MMC devices

Add support for reading devicetree flags for MMC devices. With this we
can distinguish between fixed and removable drives. Note that this
information is only available when the device is probed, not when it is
bound, since it is read in the of_to_plat() method. This could be changed
if needed later.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
arch/sandbox/dts/test.dts
drivers/mmc/sandbox_mmc.c