Revision | 5809d764a9c6860abd3b160fb674fb767df09748 (tree) |
---|---|
Time | 2022-07-25 22:35:34 |
Author | Rasmus Villemoes <rasmus.villemoes@prev...> |
Commiter | Stefano Babic |
imx8ulp: soc.c: use rom_api_query_boot_infor() wrapper
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
@@ -36,16 +36,13 @@ struct rom_api *g_rom_api = (struct rom_api *)0x1980; | ||
36 | 36 | |
37 | 37 | enum boot_device get_boot_device(void) |
38 | 38 | { |
39 | - volatile gd_t *pgd = gd; | |
40 | 39 | int ret; |
41 | 40 | u32 boot; |
42 | 41 | u16 boot_type; |
43 | 42 | u8 boot_instance; |
44 | 43 | enum boot_device boot_dev = SD1_BOOT; |
45 | 44 | |
46 | - ret = g_rom_api->query_boot_infor(QUERY_BT_DEV, &boot, | |
47 | - ((uintptr_t)&boot) ^ QUERY_BT_DEV); | |
48 | - set_gd(pgd); | |
45 | + ret = rom_api_query_boot_infor(QUERY_BT_DEV, &boot); | |
49 | 46 | |
50 | 47 | if (ret != ROM_API_OKAY) { |
51 | 48 | puts("ROMAPI: failure at query_boot_info\n"); |
@@ -91,15 +88,12 @@ __weak int board_mmc_get_env_dev(int devno) | ||
91 | 88 | |
92 | 89 | int mmc_get_env_dev(void) |
93 | 90 | { |
94 | - volatile gd_t *pgd = gd; | |
95 | 91 | int ret; |
96 | 92 | u32 boot; |
97 | 93 | u16 boot_type; |
98 | 94 | u8 boot_instance; |
99 | 95 | |
100 | - ret = g_rom_api->query_boot_infor(QUERY_BT_DEV, &boot, | |
101 | - ((uintptr_t)&boot) ^ QUERY_BT_DEV); | |
102 | - set_gd(pgd); | |
96 | + ret = rom_api_query_boot_infor(QUERY_BT_DEV, &boot); | |
103 | 97 | |
104 | 98 | if (ret != ROM_API_OKAY) { |
105 | 99 | puts("ROMAPI: failure at query_boot_info\n"); |