• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision5809d764a9c6860abd3b160fb674fb767df09748 (tree)
Time2022-07-25 22:35:34
AuthorRasmus Villemoes <rasmus.villemoes@prev...>
CommiterStefano Babic

Log Message

imx8ulp: soc.c: use rom_api_query_boot_infor() wrapper

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>

Change Summary

Incremental Difference

--- 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;
3636
3737 enum boot_device get_boot_device(void)
3838 {
39- volatile gd_t *pgd = gd;
4039 int ret;
4140 u32 boot;
4241 u16 boot_type;
4342 u8 boot_instance;
4443 enum boot_device boot_dev = SD1_BOOT;
4544
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);
4946
5047 if (ret != ROM_API_OKAY) {
5148 puts("ROMAPI: failure at query_boot_info\n");
@@ -91,15 +88,12 @@ __weak int board_mmc_get_env_dev(int devno)
9188
9289 int mmc_get_env_dev(void)
9390 {
94- volatile gd_t *pgd = gd;
9591 int ret;
9692 u32 boot;
9793 u16 boot_type;
9894 u8 boot_instance;
9995
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);
10397
10498 if (ret != ROM_API_OKAY) {
10599 puts("ROMAPI: failure at query_boot_info\n");