1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2012 Boundary Devices Inc.
6 #ifndef _ASM_BOOT_MODE_H
7 #define _ASM_BOOT_MODE_H
8 #define MAKE_CFGVAL(cfg1, cfg2, cfg3, cfg4) \
9 ((cfg4) << 24) | ((cfg3) << 16) | ((cfg2) << 8) | (cfg1)
31 BOOT_DEV_NUM = UNKNOWN_BOOT,
34 /* Boot device type */
35 #define BOOT_TYPE_SD 0x1
36 #define BOOT_TYPE_MMC 0x2
37 #define BOOT_TYPE_NAND 0x3
38 #define BOOT_TYPE_QSPI 0x4
39 #define BOOT_TYPE_WEIM 0x5
40 #define BOOT_TYPE_SPINOR 0x6
41 #define BOOT_TYPE_USB 0xF
48 void add_board_boot_modes(const struct boot_mode *p);
49 void boot_mode_apply(unsigned cfg_val);
50 extern const struct boot_mode soc_boot_modes[];