Troy Kisky | 0ca618c | 2012-08-15 10:31:20 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Boundary Devices Inc. |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Troy Kisky | 0ca618c | 2012-08-15 10:31:20 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _ASM_BOOT_MODE_H |
| 8 | #define _ASM_BOOT_MODE_H |
| 9 | #define MAKE_CFGVAL(cfg1, cfg2, cfg3, cfg4) \ |
| 10 | ((cfg4) << 24) | ((cfg3) << 16) | ((cfg2) << 8) | (cfg1) |
| 11 | |
| 12 | struct boot_mode { |
| 13 | const char *name; |
| 14 | unsigned cfg_val; |
| 15 | }; |
| 16 | |
| 17 | void add_board_boot_modes(const struct boot_mode *p); |
| 18 | void boot_mode_apply(unsigned cfg_val); |
| 19 | extern const struct boot_mode soc_boot_modes[]; |
| 20 | #endif |