mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
imx8m: soc.c: use rom_api_query_boot_infor() wrapper
Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
This commit is contained in:
parent
f8001fdd2c
commit
f963622f28
@ -602,16 +602,13 @@ struct rom_api *g_rom_api = (struct rom_api *)0x980;
|
|||||||
|
|
||||||
enum boot_device get_boot_device(void)
|
enum boot_device get_boot_device(void)
|
||||||
{
|
{
|
||||||
volatile gd_t *pgd = gd;
|
|
||||||
int ret;
|
int ret;
|
||||||
u32 boot;
|
u32 boot;
|
||||||
u16 boot_type;
|
u16 boot_type;
|
||||||
u8 boot_instance;
|
u8 boot_instance;
|
||||||
enum boot_device boot_dev = SD1_BOOT;
|
enum boot_device boot_dev = SD1_BOOT;
|
||||||
|
|
||||||
ret = g_rom_api->query_boot_infor(QUERY_BT_DEV, &boot,
|
ret = rom_api_query_boot_infor(QUERY_BT_DEV, &boot);
|
||||||
((uintptr_t)&boot) ^ QUERY_BT_DEV);
|
|
||||||
set_gd(pgd);
|
|
||||||
|
|
||||||
if (ret != ROM_API_OKAY) {
|
if (ret != ROM_API_OKAY) {
|
||||||
puts("ROMAPI: failure at query_boot_info\n");
|
puts("ROMAPI: failure at query_boot_info\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user