diff options
| author | Rasmus Villemoes <[email protected]> | 2022-06-20 10:53:22 +0200 |
|---|---|---|
| committer | Stefano Babic <[email protected]> | 2022-07-25 15:35:34 +0200 |
| commit | 5809d764a9c6860abd3b160fb674fb767df09748 (patch) | |
| tree | 826dd3c174cac2ba3ec8bd786f2b7560736f5ad5 | |
| parent | f963622f2892652d72fc59838a022a6ab92b0829 (diff) | |
imx8ulp: soc.c: use rom_api_query_boot_infor() wrapper
Signed-off-by: Rasmus Villemoes <[email protected]>
| -rw-r--r-- | arch/arm/mach-imx/imx8ulp/soc.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c index 35020c9714d..c0f0df356ea 100644 --- a/arch/arm/mach-imx/imx8ulp/soc.c +++ b/arch/arm/mach-imx/imx8ulp/soc.c @@ -36,16 +36,13 @@ struct rom_api *g_rom_api = (struct rom_api *)0x1980; enum boot_device get_boot_device(void) { - volatile gd_t *pgd = gd; int ret; u32 boot; u16 boot_type; u8 boot_instance; enum boot_device boot_dev = SD1_BOOT; - ret = g_rom_api->query_boot_infor(QUERY_BT_DEV, &boot, - ((uintptr_t)&boot) ^ QUERY_BT_DEV); - set_gd(pgd); + ret = rom_api_query_boot_infor(QUERY_BT_DEV, &boot); if (ret != ROM_API_OKAY) { puts("ROMAPI: failure at query_boot_info\n"); @@ -91,15 +88,12 @@ __weak int board_mmc_get_env_dev(int devno) int mmc_get_env_dev(void) { - volatile gd_t *pgd = gd; int ret; u32 boot; u16 boot_type; u8 boot_instance; - ret = g_rom_api->query_boot_infor(QUERY_BT_DEV, &boot, - ((uintptr_t)&boot) ^ QUERY_BT_DEV); - set_gd(pgd); + ret = rom_api_query_boot_infor(QUERY_BT_DEV, &boot); if (ret != ROM_API_OKAY) { puts("ROMAPI: failure at query_boot_info\n"); |
