Neil Armstrong | 2fbfcbb | 2018-07-27 14:10:00 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (C) 2016 BayLibre, SAS |
| 4 | * Author: Neil Armstrong <narmstrong@baylibre.com> |
| 5 | */ |
| 6 | |
| 7 | #ifndef __MESON_BOOT_H__ |
| 8 | #define __MESON_BOOT_H__ |
| 9 | |
Pascal Vizeli | 0716854 | 2020-11-27 17:28:21 +0100 | [diff] [blame] | 10 | #include <linux/types.h> |
| 11 | |
Neil Armstrong | 2fbfcbb | 2018-07-27 14:10:00 +0200 | [diff] [blame] | 12 | /* Boot device */ |
| 13 | #define BOOT_DEVICE_RESERVED 0 |
| 14 | #define BOOT_DEVICE_EMMC 1 |
| 15 | #define BOOT_DEVICE_NAND 2 |
| 16 | #define BOOT_DEVICE_SPI 3 |
| 17 | #define BOOT_DEVICE_SD 4 |
| 18 | #define BOOT_DEVICE_USB 5 |
| 19 | |
| 20 | int meson_get_boot_device(void); |
| 21 | |
Pascal Vizeli | 0716854 | 2020-11-27 17:28:21 +0100 | [diff] [blame] | 22 | int meson_get_soc_rev(char *buff, size_t buff_len); |
| 23 | |
Neil Armstrong | 2fbfcbb | 2018-07-27 14:10:00 +0200 | [diff] [blame] | 24 | #endif /* __MESON_BOOT_H__ */ |