1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2023 PHYTEC Messtechnik GmbH
4 * Author: Christoph Stoidner <c.stoidner@phytec.de>
5 * Copyright (C) 2024 Mathieu Othacehe <m.othacehe@gmail.com>
8 #include <asm/arch-imx9/ccm_regs.h>
9 #include <asm/arch/sys_proto.h>
10 #include <asm/arch-imx9/imx93_pins.h>
11 #include <asm/arch/clock.h>
12 #include <asm/global_data.h>
13 #include <asm/mach-imx/boot_mode.h>
16 DECLARE_GLOBAL_DATA_PTR;
23 int board_mmc_get_env_dev(int devno)
28 int board_late_init(void)
30 switch (get_boot_device()) {
32 env_set_ulong("mmcdev", 1);
35 env_set_ulong("mmcdev", 0);