Skip to content
Snippets Groups Projects
Commit eed2c331 authored by Gianfranco Mariotti's avatar Gianfranco Mariotti
Browse files

[SPLASH] select current bootdevice for image location

parent b36cc231
No related branches found
No related tags found
1 merge request!148[SPLASH] select current bootdevice for image location
#include <common.h>
#include <splash.h>
#include <mmc.h>
static struct splash_location splash_locations[] = {
{
......@@ -12,6 +13,12 @@ static struct splash_location splash_locations[] = {
int splash_screen_prepare(void)
{
char devpart[16] = {0};
int dev_no = (int)mmc_get_env_dev();
snprintf(devpart, ARRAY_SIZE(devpart), "%d:1", dev_no);
splash_locations[0].devpart = devpart;
return splash_source_load(splash_locations,
ARRAY_SIZE(splash_locations));
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment