blob: 54495d7f97d34777483970238932d4a80660d2e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// SPDX-License-Identifier: GPL-2.0
#include <common.h>
#include <bootsource.h>
#include <mach/layerscape.h>
#include <mach/xload.h>
int ls1046a_xload_start_image(unsigned long r0, unsigned long r1,
unsigned long r2)
{
enum bootsource src;
src = ls1046_bootsource_get();
switch (src) {
case BOOTSOURCE_SPI_NOR:
return ls1046a_qspi_start_image(r0, r1, r2);
case BOOTSOURCE_MMC:
return ls1046a_esdhc_start_image(r0, r1, r2);
default:
pr_err("Unknown bootsource\n");
return -EINVAL;
}
}
|