Siew Chin Lim | 612ee82 | 2021-03-15 15:59:16 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2020 Intel Corporation. All rights reserved |
| 4 | * |
| 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <spl.h> |
| 9 | |
| 10 | DECLARE_GLOBAL_DATA_PTR; |
| 11 | |
| 12 | u32 spl_boot_device(void) |
| 13 | { |
| 14 | return BOOT_DEVICE_MMC1; |
| 15 | } |
| 16 | |
Simon Glass | b58bfe0 | 2021-08-08 12:20:09 -0600 | [diff] [blame] | 17 | #if IS_ENABLED(CONFIG_SPL_MMC) |
Siew Chin Lim | 612ee82 | 2021-03-15 15:59:16 +0800 | [diff] [blame] | 18 | u32 spl_boot_mode(const u32 boot_device) |
| 19 | { |
| 20 | if (IS_ENABLED(CONFIG_SPL_FS_FAT) || IS_ENABLED(CONFIG_SPL_FS_EXT4)) |
| 21 | return MMCSD_MODE_FS; |
| 22 | else |
| 23 | return MMCSD_MODE_RAW; |
| 24 | } |
| 25 | #endif |