rockchip: Don't use spl_boot_device() with of-platdata
This function cannot look at the device tree when of-platdata is used. Update the code to handle this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
6efeeea79c
commit
6afc4661e0
@ -29,6 +29,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
|||||||
|
|
||||||
u32 spl_boot_device(void)
|
u32 spl_boot_device(void)
|
||||||
{
|
{
|
||||||
|
#if !CONFIG_IS_ENABLED(OF_PLATDATA)
|
||||||
const void *blob = gd->fdt_blob;
|
const void *blob = gd->fdt_blob;
|
||||||
struct udevice *dev;
|
struct udevice *dev;
|
||||||
const char *bootdev;
|
const char *bootdev;
|
||||||
@ -63,6 +64,7 @@ u32 spl_boot_device(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
fallback:
|
fallback:
|
||||||
|
#endif
|
||||||
return BOOT_DEVICE_MMC1;
|
return BOOT_DEVICE_MMC1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user