rpi: set devtype/devnum envs for the detected boot medium
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 25 Apr 2024 16:32:24 +0000 (18:32 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 28 Oct 2024 11:28:45 +0000 (20:28 +0900)
Set 'devtype' and 'devnum' envs (same as in the standard distro_boot) for
the detected boot medium, so they can be used in the boot scripts.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ibd828dc1e07cc23e9f4e89f609d475b56b8d9129

board/raspberrypi/rpi/rpi.c

index a72bf086a46212a1486f86f20c2adb922b0b326f..615222f22feb7435bef0595d9ac9460034250977 100644 (file)
@@ -501,6 +501,8 @@ int misc_init_r(void)
        set_board_info();
 #endif
        set_serial_number();
+       env_set("devtype", boot_interface);
+       env_set("devnum", "0");
 
        return 0;
 }